From 8c1c700b93d9322183f2e29f9d7050db005195d9 Mon Sep 17 00:00:00 2001 From: malik1004x Date: Thu, 4 Jun 2026 18:08:11 +0200 Subject: [PATCH] fix sizing (#3298) --- .../currency_picker_sheet.dart | 31 ++++++++++--------- .../multi_network_currency_picker.dart | 1 - .../single_network_currency_picker.dart | 1 - lib/src/screens/ur/widgets/urqr.dart | 2 +- 4 files changed, 18 insertions(+), 17 deletions(-) diff --git a/lib/new-ui/widgets/currency_picker/currency_picker_sheet.dart b/lib/new-ui/widgets/currency_picker/currency_picker_sheet.dart index 185d7a201..be6600d52 100644 --- a/lib/new-ui/widgets/currency_picker/currency_picker_sheet.dart +++ b/lib/new-ui/widgets/currency_picker/currency_picker_sheet.dart @@ -35,20 +35,23 @@ class CurrencyPickerSheet extends StatelessWidget { borderRadius: const BorderRadius.vertical(top: Radius.circular(24)), color: colors.surface, ), - child: Column( - mainAxisSize: MainAxisSize.max, - children: [ - ModalTopBar( - title: S.of(context).select_asset, - leadingIcon: const Icon(Icons.close), - onLeadingPressed: () => Navigator.of(context).maybePop(), - ), - Expanded( - child: args.isPreFiltered - ? SingleNetworkCurrencyPicker(args: args) - : MultiNetworkCurrencyPicker(args: args), - ), - ], + child: SafeArea( + top: false, + child: Column( + mainAxisSize: MainAxisSize.max, + children: [ + ModalTopBar( + title: S.of(context).select_asset, + leadingIcon: const Icon(Icons.close), + onLeadingPressed: () => Navigator.of(context).maybePop(), + ), + Expanded( + child: args.isPreFiltered + ? SingleNetworkCurrencyPicker(args: args) + : MultiNetworkCurrencyPicker(args: args), + ), + ], + ), ), ), ); diff --git a/lib/new-ui/widgets/currency_picker/multi_network_currency_picker.dart b/lib/new-ui/widgets/currency_picker/multi_network_currency_picker.dart index fad7475d7..9b31b8a38 100644 --- a/lib/new-ui/widgets/currency_picker/multi_network_currency_picker.dart +++ b/lib/new-ui/widgets/currency_picker/multi_network_currency_picker.dart @@ -174,7 +174,6 @@ class _MultiNetworkCurrencyPickerState extends State controller: _searchController, hintText: S.of(context).search, ), - const SizedBox(height: 24), ], ); } diff --git a/lib/new-ui/widgets/currency_picker/single_network_currency_picker.dart b/lib/new-ui/widgets/currency_picker/single_network_currency_picker.dart index d2bedf813..79bb99622 100644 --- a/lib/new-ui/widgets/currency_picker/single_network_currency_picker.dart +++ b/lib/new-ui/widgets/currency_picker/single_network_currency_picker.dart @@ -120,7 +120,6 @@ class _SingleNetworkCurrencyPickerState extends State { child: QrImage( data: frames[frame % frames.length], version: -1, - size: null, + size: MediaQuery.of(context).size.width * 0.7, ), ), ),