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(
|
||||
filters: [FavouriteFilter(), VideoFilter(), GifFilter()].where((f) => containQuery(f.label)),
|
||||
),
|
||||
..._buildFilterRow(
|
||||
title: 'Countries',
|
||||
filters: source.sortedCountries.where(containQuery).map((s) => CountryFilter(s)),
|
||||
),
|
||||
..._buildFilterRow(
|
||||
title: 'Albums',
|
||||
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(
|
||||
title: 'Tags',
|
||||
filters: source.sortedTags.where(containQuery).map((s) => TagFilter(s)),
|
||||
|
|
|
@ -79,7 +79,9 @@ class _AvesFilterChipState extends State<AvesFilterChip> {
|
|||
borderRadius: BorderRadius.circular(42),
|
||||
);
|
||||
|
||||
return ConstrainedBox(
|
||||
return ButtonTheme(
|
||||
minWidth: 0,
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: AvesFilterChip.maxChipWidth),
|
||||
child: 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),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: LinearPercentIndicator(
|
||||
LinearPercentIndicator(
|
||||
percent: percent,
|
||||
lineHeight: 16,
|
||||
backgroundColor: Colors.white24,
|
||||
|
@ -198,7 +197,6 @@ class StatsPage extends StatelessWidget {
|
|||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
center: Text(NumberFormat.percentPattern().format(percent)),
|
||||
),
|
||||
),
|
||||
Text(
|
||||
'${count}',
|
||||
style: const TextStyle(color: Colors.white70),
|
||||
|
|
Loading…
Reference in a new issue