From e5f016e637bd17fcc667939ee3e6c3afeb174cad Mon Sep 17 00:00:00 2001 From: Micah Morrison Date: Thu, 5 Dec 2024 10:12:33 -0500 Subject: [PATCH] Fix TextField height --- lib/account/pages/login_page.dart | 4 ---- lib/post/utils/user_label_utils.dart | 1 - lib/post/widgets/post_post_action_bottom_sheet.dart | 2 -- lib/post/widgets/report_comment_dialog.dart | 1 - lib/post/widgets/user_post_action_bottom_sheet.dart | 1 - lib/settings/pages/general_settings_page.dart | 1 - lib/shared/input_dialogs.dart | 1 - 7 files changed, 11 deletions(-) diff --git a/lib/account/pages/login_page.dart b/lib/account/pages/login_page.dart index dc6e1a103..921e9a876 100644 --- a/lib/account/pages/login_page.dart +++ b/lib/account/pages/login_page.dart @@ -319,7 +319,6 @@ class _LoginPageState extends State with SingleTickerProviderStateMix focusNode: focusNode, inputFormatters: [LowerCaseTextFormatter()], decoration: InputDecoration( - isDense: true, border: const OutlineInputBorder(), labelText: AppLocalizations.of(context)!.instance(1), errorText: instanceValidated ? null : instanceError, @@ -364,7 +363,6 @@ class _LoginPageState extends State with SingleTickerProviderStateMix focusNode: _usernameFieldFocusNode, autofillHints: const [AutofillHints.username], decoration: InputDecoration( - isDense: true, border: const OutlineInputBorder(), labelText: AppLocalizations.of(context)!.username, ), @@ -385,7 +383,6 @@ class _LoginPageState extends State with SingleTickerProviderStateMix maxLength: 60, // This is what lemmy retricts password length to autofillHints: const [AutofillHints.password], decoration: InputDecoration( - isDense: true, border: const OutlineInputBorder(), labelText: AppLocalizations.of(context)!.password, suffixIcon: Padding( @@ -415,7 +412,6 @@ class _LoginPageState extends State with SingleTickerProviderStateMix keyboardType: TextInputType.number, inputFormatters: [FilteringTextInputFormatter.digitsOnly], decoration: InputDecoration( - isDense: true, border: const OutlineInputBorder(), labelText: AppLocalizations.of(context)!.totp, hintText: '000000', diff --git a/lib/post/utils/user_label_utils.dart b/lib/post/utils/user_label_utils.dart index 83f1d118b..604334b49 100644 --- a/lib/post/utils/user_label_utils.dart +++ b/lib/post/utils/user_label_utils.dart @@ -33,7 +33,6 @@ Future<({UserLabel? userLabel, bool deleted})> showUserLabelEditorDialog(BuildCo keyboardType: TextInputType.text, controller: controller, decoration: InputDecoration( - isDense: true, border: const OutlineInputBorder(), labelText: l10n.label, hintText: l10n.userLabelHint, diff --git a/lib/post/widgets/post_post_action_bottom_sheet.dart b/lib/post/widgets/post_post_action_bottom_sheet.dart index 57b4a473b..f9ea50c5b 100644 --- a/lib/post/widgets/post_post_action_bottom_sheet.dart +++ b/lib/post/widgets/post_post_action_bottom_sheet.dart @@ -202,7 +202,6 @@ class _PostPostActionBottomSheetState extends State { onSecondaryButtonPressed: (context) => context.pop(), contentWidgetBuilder: (_) => TextFormField( decoration: InputDecoration( - isDense: true, border: const OutlineInputBorder(), labelText: l10n.message(0), ), @@ -238,7 +237,6 @@ class _PostPostActionBottomSheetState extends State { onSecondaryButtonPressed: (context) => context.pop(), contentWidgetBuilder: (_) => TextFormField( decoration: InputDecoration( - isDense: true, border: const OutlineInputBorder(), labelText: l10n.message(0), ), diff --git a/lib/post/widgets/report_comment_dialog.dart b/lib/post/widgets/report_comment_dialog.dart index f5ee6bd6c..d0eedfa96 100644 --- a/lib/post/widgets/report_comment_dialog.dart +++ b/lib/post/widgets/report_comment_dialog.dart @@ -53,7 +53,6 @@ class _ReportCommentDialogState extends State { ), TextFormField( decoration: InputDecoration( - isDense: true, border: const OutlineInputBorder(), labelText: AppLocalizations.of(context)!.message(0), ), diff --git a/lib/post/widgets/user_post_action_bottom_sheet.dart b/lib/post/widgets/user_post_action_bottom_sheet.dart index 1625e85e8..236657daa 100644 --- a/lib/post/widgets/user_post_action_bottom_sheet.dart +++ b/lib/post/widgets/user_post_action_bottom_sheet.dart @@ -182,7 +182,6 @@ class _UserPostActionBottomSheetState extends State { const SizedBox(height: 16.0), TextFormField( decoration: InputDecoration( - isDense: true, border: const OutlineInputBorder(), labelText: l10n.message(0), ), diff --git a/lib/settings/pages/general_settings_page.dart b/lib/settings/pages/general_settings_page.dart index dbc279b44..84c986c2d 100644 --- a/lib/settings/pages/general_settings_page.dart +++ b/lib/settings/pages/general_settings_page.dart @@ -1021,7 +1021,6 @@ class _GeneralSettingsPageState extends State with SingleTi autocorrect: false, controller: controller, decoration: InputDecoration( - isDense: true, border: const OutlineInputBorder(), labelText: l10n.url, hintText: THUNDER_SERVER_URL, diff --git a/lib/shared/input_dialogs.dart b/lib/shared/input_dialogs.dart index 7089684a2..d97ec5c7a 100644 --- a/lib/shared/input_dialogs.dart +++ b/lib/shared/input_dialogs.dart @@ -500,7 +500,6 @@ void showInputDialog({ }, autofocus: true, decoration: InputDecoration( - isDense: true, border: const OutlineInputBorder(), labelText: inputLabel, errorText: contentWidgetError,