Merge branch 'master' of bitbucket.org:jubilian/nhance_partner

This commit is contained in:
venbaittech 2025-12-24 17:49:39 +05:30
commit 2b9dddc9a0

View File

@ -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
),
),
);