diff --git a/lib/dashboard/drawer/blockchain_settings/manage_accounts/widgets/manage_accounts_item.dart b/lib/dashboard/drawer/blockchain_settings/manage_accounts/widgets/manage_accounts_item.dart index 9eb615476..34dea61b6 100644 --- a/lib/dashboard/drawer/blockchain_settings/manage_accounts/widgets/manage_accounts_item.dart +++ b/lib/dashboard/drawer/blockchain_settings/manage_accounts/widgets/manage_accounts_item.dart @@ -35,7 +35,6 @@ class ManageAccountsItem extends StatelessWidget { return BackgroundCard( child: Container( margin: const EdgeInsets.only(bottom: Sizes.spaceSmall), - padding: const EdgeInsets.symmetric(horizontal: Sizes.spaceSmall), child: Column( mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, @@ -114,50 +113,51 @@ class ManageAccountsItem extends StatelessWidget { Row( mainAxisSize: MainAxisSize.min, children: [ - SeeAddressButton( - onTap: () { - Navigator.of(context).push( - AccountPublicAddressPage.route( - accountName: accountName, - accountAddress: cryptoAccountData.walletAddress, - ), - ); - }, + Expanded( + child: SeeAddressButton( + onTap: () { + Navigator.of(context).push( + AccountPublicAddressPage.route( + accountName: accountName, + accountAddress: cryptoAccountData.walletAddress, + ), + ); + }, + ), ), const SizedBox(width: Sizes.spaceSmall), - RevealPrivateKeyButton( - onTap: () async { - final confirm = await showDialog( - context: context, - builder: (context) => ConfirmDialog( - title: l10n.warningDialogTitle, - subtitle: l10n.accountPrivateKeyAlert, - yes: l10n.showDialogYes, - no: l10n.showDialogNo, - ), - ) ?? - false; - - if (confirm) { - await securityCheck( - context: context, - localAuthApi: LocalAuthApi(), - onSuccess: () { - Navigator.of(context).push( - AccountPrivateKeyPage.route( - privateKey: cryptoAccountData.secretKey, + Expanded( + child: RevealPrivateKeyButton( + onTap: () async { + final confirm = await showDialog( + context: context, + builder: (context) => ConfirmDialog( + title: l10n.warningDialogTitle, + subtitle: l10n.accountPrivateKeyAlert, + yes: l10n.showDialogYes, + no: l10n.showDialogNo, ), - ); - }, - ); - } - }, + ) ?? + false; + + if (confirm) { + await securityCheck( + context: context, + localAuthApi: LocalAuthApi(), + onSuccess: () { + Navigator.of(context).push( + AccountPrivateKeyPage.route( + privateKey: cryptoAccountData.secretKey, + ), + ); + }, + ); + } + }, + ), ), ], ), - const SizedBox( - height: Sizes.spaceSmall, - ), ], ), ), diff --git a/lib/dashboard/drawer/blockchain_settings/manage_accounts/widgets/reveal_private_key_button.dart b/lib/dashboard/drawer/blockchain_settings/manage_accounts/widgets/reveal_private_key_button.dart index 8368b8cf6..939fb6f32 100644 --- a/lib/dashboard/drawer/blockchain_settings/manage_accounts/widgets/reveal_private_key_button.dart +++ b/lib/dashboard/drawer/blockchain_settings/manage_accounts/widgets/reveal_private_key_button.dart @@ -31,11 +31,13 @@ class RevealPrivateKeyButton extends StatelessWidget { width: Sizes.icon, color: Theme.of(context).colorScheme.onSurface, ), - Text( - l10n.revealPrivateKey.toUpperCase(), - style: Theme.of(context).textTheme.bodyMedium!.copyWith( - color: Theme.of(context).colorScheme.onSurface, - ), + Expanded( + child: MyText( + l10n.revealPrivateKey.toUpperCase(), + style: Theme.of(context).textTheme.bodyMedium!.copyWith( + color: Theme.of(context).colorScheme.onSurface, + ), + ), ), ], ), diff --git a/lib/dashboard/drawer/blockchain_settings/manage_accounts/widgets/see_address_button.dart b/lib/dashboard/drawer/blockchain_settings/manage_accounts/widgets/see_address_button.dart index 86cba1cf0..b2316e257 100644 --- a/lib/dashboard/drawer/blockchain_settings/manage_accounts/widgets/see_address_button.dart +++ b/lib/dashboard/drawer/blockchain_settings/manage_accounts/widgets/see_address_button.dart @@ -35,11 +35,13 @@ class SeeAddressButton extends StatelessWidget { color: Theme.of(context).colorScheme.onPrimaryContainer, ), ), - Text( - l10n.seeAddress.toUpperCase(), - style: Theme.of(context).textTheme.bodyMedium!.copyWith( - color: Theme.of(context).colorScheme.onPrimaryContainer, - ), + Expanded( + child: MyText( + l10n.seeAddress.toUpperCase(), + style: Theme.of(context).textTheme.bodyMedium!.copyWith( + color: Theme.of(context).colorScheme.onPrimaryContainer, + ), + ), ), ], ),