From 850657cc638a0a95640bcbff5961cf81b00e7884 Mon Sep 17 00:00:00 2001 From: xsahil03x Date: Wed, 25 Nov 2020 15:54:19 +0530 Subject: [PATCH] fix icon --- example/lib/new_group_chat_screen.dart | 2 +- lib/src/stream_svg_icon.dart | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/example/lib/new_group_chat_screen.dart b/example/lib/new_group_chat_screen.dart index dfa4b000..11b6aa14 100644 --- a/example/lib/new_group_chat_screen.dart +++ b/example/lib/new_group_chat_screen.dart @@ -73,7 +73,7 @@ class _NewGroupChatScreenState extends State { actions: [ if (_selectedUsers.isNotEmpty) IconButton( - icon: StreamSvgIcon.right( + icon: StreamSvgIcon.arrow_right( color: Color(0xFF006CFF), ), onPressed: () async { diff --git a/lib/src/stream_svg_icon.dart b/lib/src/stream_svg_icon.dart index 2851df3a..7ed1fca8 100644 --- a/lib/src/stream_svg_icon.dart +++ b/lib/src/stream_svg_icon.dart @@ -373,4 +373,16 @@ class StreamSvgIcon extends StatelessWidget { height: size, ); } + + factory StreamSvgIcon.arrow_right({ + double size, + Color color, + }) { + return StreamSvgIcon( + assetName: 'Icon_arrow_right.svg', + color: color, + width: size, + height: size, + ); + } }