Skip to content

Commit

Permalink
feat: Update UI for remove account and bug fix #2065
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Jul 25, 2024
1 parent a6e18ef commit f81cfa4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,14 @@ class _CryptoBottomSheetPageState extends State<CryptoBottomSheetPage> {
dragDismissible: false,
children: [
SlidableAction(
backgroundColor: Colors.red,
backgroundColor:
Colors.transparent,
foregroundColor:
Theme.of(context)
.colorScheme
.primary,
.onSurface,
icon: Icons.delete,
label: l10n.delete,
onPressed: (_) async {
// cannot delete current account
final currentIndex =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,11 @@ class _ManageAccountsPageState extends State<ManageAccountsPage> {
dragDismissible: false,
children: [
SlidableAction(
backgroundColor: Colors.red,
backgroundColor: Colors.transparent,
foregroundColor:
Theme.of(context).colorScheme.primary,
Theme.of(context).colorScheme.onSurface,
icon: Icons.delete,
label: l10n.delete,
onPressed: (_) async {
// cannot delete current account
final currentIndex =
Expand Down
2 changes: 1 addition & 1 deletion lib/wallet/cubit/wallet_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ class WalletCubit extends Cubit<WalletState> {
account.walletAddress == currentCryptoAccountData.walletAddress &&
account.blockchainType == currentCryptoAccountData.blockchainType,
);
emit(state.copyWith(currentCryptoIndex: newIndex));
await setCurrentWalletAccount(newIndex);

emitCryptoAccount(cryptoAccount);

Expand Down

0 comments on commit f81cfa4

Please sign in to comment.