From ffeb8bb08e197537bcb2316d842d597d257d8f85 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Thu, 22 Feb 2024 16:22:04 +0100 Subject: [PATCH] chore: Follow up fix textfield design for flutter 3.19.0 --- lib/config/themes.dart | 3 ++- lib/pages/chat_list/chat_list_header.dart | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/config/themes.dart b/lib/config/themes.dart index e8e7312b..47d2cfa7 100644 --- a/lib/config/themes.dart +++ b/lib/config/themes.dart @@ -89,10 +89,11 @@ abstract class FluffyThemes { ), ), inputDecorationTheme: InputDecorationTheme( - border: UnderlineInputBorder( + border: OutlineInputBorder( borderSide: BorderSide.none, borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2), ), + contentPadding: const EdgeInsets.symmetric(horizontal: 12), filled: true, ), appBarTheme: AppBarTheme( diff --git a/lib/pages/chat_list/chat_list_header.dart b/lib/pages/chat_list/chat_list_header.dart index 3cf2bde7..bfbc2056 100644 --- a/lib/pages/chat_list/chat_list_header.dart +++ b/lib/pages/chat_list/chat_list_header.dart @@ -50,10 +50,11 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget { onChanged: controller.onSearchEnter, decoration: InputDecoration( fillColor: Theme.of(context).colorScheme.secondaryContainer, - border: UnderlineInputBorder( + border: OutlineInputBorder( borderSide: BorderSide.none, borderRadius: BorderRadius.circular(99), ), + contentPadding: EdgeInsets.zero, hintText: L10n.of(context)!.searchChatsRooms, hintStyle: TextStyle( color: Theme.of(context).colorScheme.onPrimaryContainer,