Fix search icon

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2020-11-26 11:56:56 +05:30
committed by xsahil03x
parent 973ab806d7
commit 1c42db37da
+10 -3
View File
@@ -40,9 +40,16 @@ class SearchTextField extends StatelessWidget {
controller: controller,
onChanged: onChanged,
decoration: InputDecoration(
prefixIcon: StreamSvgIcon.search(
color: Colors.black,
size: 24,
prefixIconConstraints: BoxConstraints.tight(Size(40, 24)),
prefixIcon: Padding(
padding: const EdgeInsets.only(
left: 8,
right: 8,
),
child: StreamSvgIcon.search(
color: Colors.black,
size: 24,
),
),
hintText: hintText,
hintStyle: TextStyle(