minor fixes
This commit is contained in:
parent
ef130eb820
commit
1c18cc320e
3 changed files with 33 additions and 32 deletions
|
@ -61,14 +61,14 @@ class ImageSearchDelegate extends SearchDelegate<CollectionFilter> {
|
||||||
..._buildFilterRow(
|
..._buildFilterRow(
|
||||||
filters: [FavouriteFilter(), VideoFilter(), GifFilter()].where((f) => containQuery(f.label)),
|
filters: [FavouriteFilter(), VideoFilter(), GifFilter()].where((f) => containQuery(f.label)),
|
||||||
),
|
),
|
||||||
..._buildFilterRow(
|
|
||||||
title: 'Countries',
|
|
||||||
filters: source.sortedCountries.where(containQuery).map((s) => CountryFilter(s)),
|
|
||||||
),
|
|
||||||
..._buildFilterRow(
|
..._buildFilterRow(
|
||||||
title: 'Albums',
|
title: 'Albums',
|
||||||
filters: source.sortedAlbums.where(containQuery).map((s) => AlbumFilter(s, CollectionSource.getUniqueAlbumName(s, source.sortedAlbums))).where((f) => containQuery(f.uniqueName)),
|
filters: source.sortedAlbums.where(containQuery).map((s) => AlbumFilter(s, CollectionSource.getUniqueAlbumName(s, source.sortedAlbums))).where((f) => containQuery(f.uniqueName)),
|
||||||
),
|
),
|
||||||
|
..._buildFilterRow(
|
||||||
|
title: 'Countries',
|
||||||
|
filters: source.sortedCountries.where(containQuery).map((s) => CountryFilter(s)),
|
||||||
|
),
|
||||||
..._buildFilterRow(
|
..._buildFilterRow(
|
||||||
title: 'Tags',
|
title: 'Tags',
|
||||||
filters: source.sortedTags.where(containQuery).map((s) => TagFilter(s)),
|
filters: source.sortedTags.where(containQuery).map((s) => TagFilter(s)),
|
||||||
|
|
|
@ -79,7 +79,9 @@ class _AvesFilterChipState extends State<AvesFilterChip> {
|
||||||
borderRadius: BorderRadius.circular(42),
|
borderRadius: BorderRadius.circular(42),
|
||||||
);
|
);
|
||||||
|
|
||||||
return ConstrainedBox(
|
return ButtonTheme(
|
||||||
|
minWidth: 0,
|
||||||
|
child: ConstrainedBox(
|
||||||
constraints: const BoxConstraints(maxWidth: AvesFilterChip.maxChipWidth),
|
constraints: const BoxConstraints(maxWidth: AvesFilterChip.maxChipWidth),
|
||||||
child: Tooltip(
|
child: Tooltip(
|
||||||
message: filter.tooltip,
|
message: filter.tooltip,
|
||||||
|
@ -99,6 +101,7 @@ class _AvesFilterChipState extends State<AvesFilterChip> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -188,8 +188,7 @@ class StatsPage extends StatelessWidget {
|
||||||
onPressed: (filter) => _goToFilteredCollection(context, filter),
|
onPressed: (filter) => _goToFilteredCollection(context, filter),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
LinearPercentIndicator(
|
||||||
child: LinearPercentIndicator(
|
|
||||||
percent: percent,
|
percent: percent,
|
||||||
lineHeight: 16,
|
lineHeight: 16,
|
||||||
backgroundColor: Colors.white24,
|
backgroundColor: Colors.white24,
|
||||||
|
@ -198,7 +197,6 @@ class StatsPage extends StatelessWidget {
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||||
center: Text(NumberFormat.percentPattern().format(percent)),
|
center: Text(NumberFormat.percentPattern().format(percent)),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
Text(
|
Text(
|
||||||
'${count}',
|
'${count}',
|
||||||
style: const TextStyle(color: Colors.white70),
|
style: const TextStyle(color: Colors.white70),
|
||||||
|
|
Loading…
Reference in a new issue