fix sizing (#3298)

This commit is contained in:
malik1004x
2026-06-04 18:08:11 +02:00
committed by GitHub
parent 73187e6d5e
commit 8c1c700b93
4 changed files with 18 additions and 17 deletions
@@ -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),
),
],
),
),
),
);
@@ -174,7 +174,6 @@ class _MultiNetworkCurrencyPickerState extends State<MultiNetworkCurrencyPicker>
controller: _searchController,
hintText: S.of(context).search,
),
const SizedBox(height: 24),
],
);
}
@@ -120,7 +120,6 @@ class _SingleNetworkCurrencyPickerState extends State<SingleNetworkCurrencyPicke
controller: _searchController,
hintText: S.of(context).search,
),
const SizedBox(height: 24),
],
);
}
+1 -1
View File
@@ -79,7 +79,7 @@ class _URQRState extends State<URQR> {
child: QrImage(
data: frames[frame % frames.length],
version: -1,
size: null,
size: MediaQuery.of(context).size.width * 0.7,
),
),
),