mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
don't scroll in scroll, size debug log dialog down on small screens
This commit is contained in:
parent
2bb00d561f
commit
8c7f9b491d
2 changed files with 5 additions and 4 deletions
|
@ -321,9 +321,7 @@ class _AdvancedSettings extends ConsumerState<AdvancedSettings> {
|
||||||
useSafeArea: false,
|
useSafeArea: false,
|
||||||
barrierDismissible: true,
|
barrierDismissible: true,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return const SingleChildScrollView(
|
return const DebugInfoDialog();
|
||||||
child: DebugInfoDialog(),
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
@ -98,7 +98,10 @@ class _DebugInfoDialog extends ConsumerState<DebugInfoDialog> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return DesktopDialog(
|
return DesktopDialog(
|
||||||
maxHeight: 850,
|
// Max height of 850 unless the screen is smaller than that.
|
||||||
|
maxHeight: MediaQuery.of(context).size.height < 850
|
||||||
|
? MediaQuery.of(context).size.height
|
||||||
|
: 850,
|
||||||
maxWidth: 600,
|
maxWidth: 600,
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
|
Loading…
Reference in a new issue