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(
controller: _controller,
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: 'Search',
hintStyle: TextStyle(
+1 -1
View File
@@ -1,6 +1,6 @@
name: example
description: A new Flutter project.
version: 1.0.72+74
version: 1.0.73+75
environment:
sdk: ">=2.2.2 <3.0.0"
-2
View File
@@ -25,7 +25,6 @@ class StreamSvgIcon extends StatelessWidget {
height: height,
key: key,
color: color,
fit: BoxFit.scaleDown,
alignment: Alignment.center,
)
: SvgPicture.asset(
@@ -35,7 +34,6 @@ class StreamSvgIcon extends StatelessWidget {
width: width,
height: height,
color: color,
fit: BoxFit.scaleDown,
alignment: Alignment.center,
);
}