From ac0e1decf2c6e2c4f5de142d9d5bfe9764b2f066 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Sat, 20 Jan 2024 08:10:58 +0100 Subject: [PATCH] fix(neon_framework): Fix settings page height Signed-off-by: provokateurin --- packages/neon_framework/lib/src/theme/dialog.dart | 1 - packages/neon_framework/lib/src/widgets/dialog.dart | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/neon_framework/lib/src/theme/dialog.dart b/packages/neon_framework/lib/src/theme/dialog.dart index 33949ac9c28..9c003b6fb4a 100644 --- a/packages/neon_framework/lib/src/theme/dialog.dart +++ b/packages/neon_framework/lib/src/theme/dialog.dart @@ -14,7 +14,6 @@ class NeonDialogTheme { this.constraints = const BoxConstraints( minWidth: 280, maxWidth: 560, - maxHeight: 560 * 1.5, ), this.padding = const EdgeInsets.all(24), }); diff --git a/packages/neon_framework/lib/src/widgets/dialog.dart b/packages/neon_framework/lib/src/widgets/dialog.dart index 4956b80b810..f8350ead138 100644 --- a/packages/neon_framework/lib/src/widgets/dialog.dart +++ b/packages/neon_framework/lib/src/widgets/dialog.dart @@ -537,10 +537,12 @@ class NeonEmojiPickerDialog extends StatelessWidget { @override Widget build(BuildContext context) { final theme = Theme.of(context); + final constraints = NeonDialogTheme.of(context).constraints; return NeonDialog( content: SizedBox( - width: NeonDialogTheme.of(context).constraints.maxWidth, + width: constraints.maxWidth, + height: constraints.maxWidth * 1.5, child: EmojiPicker( config: Config( emojiSizeMax: 25,