From 1c42db37dae8fb6f8cf98439e28dadff65aa7620 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Thu, 26 Nov 2020 11:56:56 +0530 Subject: [PATCH] Fix search icon Signed-off-by: xsahil03x --- example/lib/search_text_field.dart | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/example/lib/search_text_field.dart b/example/lib/search_text_field.dart index 8461d735..f46a48b0 100644 --- a/example/lib/search_text_field.dart +++ b/example/lib/search_text_field.dart @@ -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(