From 613c8d3392fc4bd874e200828c60dbe69bfd29a0 Mon Sep 17 00:00:00 2001 From: "sanjeev.p" Date: Wed, 24 Dec 2025 17:48:38 +0530 Subject: [PATCH] FIX_search center alignment --- lib/presentation/themes/indicators/search_field_theme.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/presentation/themes/indicators/search_field_theme.dart b/lib/presentation/themes/indicators/search_field_theme.dart index 3df2101..ec5a3af 100644 --- a/lib/presentation/themes/indicators/search_field_theme.dart +++ b/lib/presentation/themes/indicators/search_field_theme.dart @@ -51,6 +51,8 @@ class ThemedSearchField extends HookWidget { final boxDecoration = BoxDecoration(borderRadius: BorderRadius.circular(2)); final inputDecoration = InputDecoration( + isDense: true, + contentPadding: const EdgeInsets.symmetric(horizontal: 15), // 2. Remove vertical padding to let it center filled: true, fillColor: backgroundColor ?? Colors.white, // contentPadding: const EdgeInsets.symmetric(vertical: 12, horizontal: 15), @@ -99,8 +101,10 @@ class ThemedSearchField extends HookWidget { child: TextFormField( controller: controller, onChanged: onChanged, + textAlignVertical: TextAlignVertical.center, // 4. This centers the typing text and hint decoration: inputDecoration, validator: validator, + style: GoogleFonts.poppins(fontSize: 12), // Keep text size appropriate for height 30 ), ), );