use up svg icon

This commit is contained in:
Salvatore Giordano
2021-07-20 11:17:12 +02:00
parent dff0ad9af2
commit ab35409b15
3 changed files with 22 additions and 6 deletions
@@ -710,12 +710,13 @@ class _MessageListViewState extends State<MessageListView> {
);
}
},
child: Transform.rotate(
angle: widget.reverse ? 0 : pi,
child: StreamSvgIcon.down(
color: _streamTheme.colorTheme.textHighEmphasis,
),
),
child: widget.reverse
? StreamSvgIcon.down(
color: _streamTheme.colorTheme.textHighEmphasis,
)
: StreamSvgIcon.up(
color: _streamTheme.colorTheme.textHighEmphasis,
),
),
if (showUnreadCount)
Positioned(
@@ -37,6 +37,18 @@ class StreamSvgIcon extends StatelessWidget {
height: size,
);
/// [StreamSvgIcon] type
factory StreamSvgIcon.up({
double? size,
Color? color,
}) =>
StreamSvgIcon(
assetName: 'Icon_up.svg',
color: color,
width: size,
height: size,
);
/// [StreamSvgIcon] type
factory StreamSvgIcon.attach({
double? size,