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
+8 -1
View File
@@ -40,10 +40,17 @@ class SearchTextField extends StatelessWidget {
controller: controller, controller: controller,
onChanged: onChanged, onChanged: onChanged,
decoration: InputDecoration( decoration: InputDecoration(
prefixIcon: StreamSvgIcon.search( prefixIconConstraints: BoxConstraints.tight(Size(40, 24)),
prefixIcon: Padding(
padding: const EdgeInsets.only(
left: 8,
right: 8,
),
child: StreamSvgIcon.search(
color: Colors.black, color: Colors.black,
size: 24, size: 24,
), ),
),
hintText: hintText, hintText: hintText,
hintStyle: TextStyle( hintStyle: TextStyle(
color: Colors.black.withOpacity(0.5), color: Colors.black.withOpacity(0.5),