Merge branch 'master' of bitbucket.org:jubilian/nhance_partner
This commit is contained in:
commit
2b9dddc9a0
@ -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
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user