Skip to content

Commit

Permalink
fix: delete unnecessary svg in delete wallet modals
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Nov 12, 2024
1 parent 2faa72b commit 6bf2ceb
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions lib/screens/preferences/delete_wallet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:my_wit_wallet/screens/preferences/logout.dart';
import 'package:my_wit_wallet/shared/api_database.dart';
import 'package:my_wit_wallet/shared/locator.dart';
import 'package:my_wit_wallet/theme/extended_theme.dart';
import 'package:my_wit_wallet/theme/wallet_theme.dart';
import 'package:my_wit_wallet/util/get_localization.dart';
import 'package:my_wit_wallet/screens/dashboard/bloc/dashboard_bloc.dart';
import 'package:my_wit_wallet/util/storage/database/wallet.dart';
Expand Down Expand Up @@ -113,29 +112,24 @@ class DeleteSingleWalletState extends State<DeleteSingleWallet> {
],
icon: FontAwesomeIcons.circleExclamation,
title: localization.deleteWalletWarning,
content: Column(mainAxisSize: MainAxisSize.min, children: [
SizedBox(height: 16),
svgThemeImage(theme, name: 'general-warning', height: 100),
]));
content: Container());
}

void showStorageDeletedMessage() {
final theme = Theme.of(context);
return buildAlertDialog(
context: context,
actions: [
PaddedButton(
padding: EdgeInsets.all(8),
text: localization.continueLabel,
type: ButtonType.text,
type: ButtonType.primary,
sizeCover: false,
enabled: true,
onPressed: () => logout(context))
],
icon: FontAwesomeIcons.check,
title: localization.deleteWalletSuccess,
content: Column(mainAxisSize: MainAxisSize.min, children: [
SizedBox(height: 16),
svgThemeImage(theme, name: 'transaction-success', height: 100),
]));
content: Container());
}

void toggleCheckBox(bool? value) {
Expand All @@ -149,9 +143,6 @@ class DeleteSingleWalletState extends State<DeleteSingleWallet> {
final theme = Theme.of(context);

TextStyle bodyLarge = theme.textTheme.bodyLarge!;
TextStyle bodyLargeBold = bodyLarge.copyWith(
fontWeight: FontWeight.bold,
);

return BlocBuilder<DashboardBloc, DashboardState>(
builder: (previous, current) {
Expand All @@ -163,7 +154,7 @@ class DeleteSingleWalletState extends State<DeleteSingleWallet> {
SizedBox(height: 10),
Text(localization.reestablishInstructions, style: bodyLarge),
SizedBox(height: 10),
Text(localization.whatToDo, style: bodyLargeBold),
Text(localization.whatToDo, style: theme.textTheme.titleMedium),
SizedBox(height: 10),
buildOrderedListItem(
'1. ', localization.reestablishSteps01, context),
Expand Down

0 comments on commit 6bf2ceb

Please sign in to comment.