fix svgs icons

This commit is contained in:
Salvatore Giordano
2020-11-25 15:29:08 +01:00
parent d59e89c700
commit 58b079abba
3 changed files with 16 additions and 6 deletions
+15 -3
View File
@@ -100,9 +100,21 @@ class _NewGroupChatScreenState extends State<NewGroupChatScreen> {
child: TextField( child: TextField(
controller: _controller, controller: _controller,
decoration: InputDecoration( decoration: InputDecoration(
prefixIcon: StreamSvgIcon.search( prefixIconConstraints: BoxConstraints.tight(
color: Colors.black, Size(
size: 24, 40,
24,
),
),
prefixIcon: Padding(
padding: const EdgeInsets.only(
left: 8,
right: 8,
),
child: StreamSvgIcon.search(
color: Colors.black,
size: 24,
),
), ),
hintText: 'Search', hintText: 'Search',
hintStyle: TextStyle( hintStyle: TextStyle(
+1 -1
View File
@@ -1,6 +1,6 @@
name: example name: example
description: A new Flutter project. description: A new Flutter project.
version: 1.0.72+74 version: 1.0.73+75
environment: environment:
sdk: ">=2.2.2 <3.0.0" sdk: ">=2.2.2 <3.0.0"
-2
View File
@@ -25,7 +25,6 @@ class StreamSvgIcon extends StatelessWidget {
height: height, height: height,
key: key, key: key,
color: color, color: color,
fit: BoxFit.scaleDown,
alignment: Alignment.center, alignment: Alignment.center,
) )
: SvgPicture.asset( : SvgPicture.asset(
@@ -35,7 +34,6 @@ class StreamSvgIcon extends StatelessWidget {
width: width, width: width,
height: height, height: height,
color: color, color: color,
fit: BoxFit.scaleDown,
alignment: Alignment.center, alignment: Alignment.center,
); );
} }