add factory constructor

This commit is contained in:
Salvatore Giordano
2020-11-24 13:39:36 +01:00
parent 93c324ac56
commit 6b62eadaa4
22 changed files with 424 additions and 166 deletions
+2 -4
View File
@@ -33,10 +33,8 @@ class StreamBackButton extends StatelessWidget {
Navigator.of(context).pop();
}
},
child: StreamSvgIcon(
assetName: 'Icon_left.svg',
height: 24,
width: 24,
child: StreamSvgIcon.left(
size: 24,
color: Theme.of(context).brightness == Brightness.dark
? Colors.white
: Colors.black,