minor fix for decorated chip without entry
This commit is contained in:
parent
e137ee6e57
commit
2809f976e4
1 changed files with 11 additions and 12 deletions
|
@ -34,18 +34,17 @@ class DecoratedFilterChip extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
Widget backgroundImage;
|
final backgroundImage = entry == null
|
||||||
if (entry != null) {
|
? Container(color: Colors.white)
|
||||||
backgroundImage = entry.isSvg
|
: entry.isSvg
|
||||||
? ThumbnailVectorImage(
|
? ThumbnailVectorImage(
|
||||||
entry: entry,
|
entry: entry,
|
||||||
extent: FilterGridPage.maxCrossAxisExtent,
|
extent: FilterGridPage.maxCrossAxisExtent,
|
||||||
)
|
)
|
||||||
: ThumbnailRasterImage(
|
: ThumbnailRasterImage(
|
||||||
entry: entry,
|
entry: entry,
|
||||||
extent: FilterGridPage.maxCrossAxisExtent,
|
extent: FilterGridPage.maxCrossAxisExtent,
|
||||||
);
|
);
|
||||||
}
|
|
||||||
return AvesFilterChip(
|
return AvesFilterChip(
|
||||||
filter: filter,
|
filter: filter,
|
||||||
showGenericIcon: false,
|
showGenericIcon: false,
|
||||||
|
|
Loading…
Reference in a new issue