minor fix for decorated chip without entry

This commit is contained in:
Thibault Deckers 2020-09-28 10:12:38 +09:00
parent e137ee6e57
commit 2809f976e4

View file

@ -34,9 +34,9 @@ class DecoratedFilterChip extends StatelessWidget {
@override
Widget build(BuildContext context) {
Widget backgroundImage;
if (entry != null) {
backgroundImage = entry.isSvg
final backgroundImage = entry == null
? Container(color: Colors.white)
: entry.isSvg
? ThumbnailVectorImage(
entry: entry,
extent: FilterGridPage.maxCrossAxisExtent,
@ -45,7 +45,6 @@ class DecoratedFilterChip extends StatelessWidget {
entry: entry,
extent: FilterGridPage.maxCrossAxisExtent,
);
}
return AvesFilterChip(
filter: filter,
showGenericIcon: false,