From 51f6d93de516ba321e12b8ece22619b95203f1a5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 10 Jul 2025 20:16:21 -0700 Subject: [PATCH] fix overflow in dialogs --- lib/main_screen.dart | 1 + lib/password_service.dart | 1 + lib/settings_screen.dart | 2 ++ 3 files changed, 4 insertions(+) diff --git a/lib/main_screen.dart b/lib/main_screen.dart index fbf815e..5548491 100644 --- a/lib/main_screen.dart +++ b/lib/main_screen.dart @@ -52,6 +52,7 @@ class _MainScreenState extends State { showDialog( context: context, builder: (_) => AlertDialog( + scrollable: true, content: Text(AppLocalizations.of(context)!.optimizationMessage), actions: [ TextButton( diff --git a/lib/password_service.dart b/lib/password_service.dart index 45512d0..508af32 100644 --- a/lib/password_service.dart +++ b/lib/password_service.dart @@ -14,6 +14,7 @@ class PasswordService { result = await showDialog( context: context, builder: (context) => AlertDialog( + scrollable: true, content: TextField( controller: controller, autofocus: true, diff --git a/lib/settings_screen.dart b/lib/settings_screen.dart index 6355a26..ccc8b1c 100644 --- a/lib/settings_screen.dart +++ b/lib/settings_screen.dart @@ -41,6 +41,7 @@ class _SettingsScreenState extends State { final result = await showDialog( context: context, builder: (context) => AlertDialog( + scrollable: true, title: Text(title), content: TextField( controller: controller, @@ -89,6 +90,7 @@ class _SettingsScreenState extends State { final result = await showDialog( context: context, builder: (context) => AlertDialog( + scrollable: true, content: TextField( controller: controller, decoration: InputDecoration(labelText: AppLocalizations.of(context)!.passwordLabel),