mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-13 01:10:31 -07:00
chore: small cleanup
This commit is contained in:
parent
44c3763848
commit
4ffba50330
2 changed files with 4 additions and 3 deletions
|
|
@ -21,6 +21,7 @@ class LibraryFiltersModel with _$LibraryFiltersModel {
|
||||||
factory LibraryFiltersModel._internal({
|
factory LibraryFiltersModel._internal({
|
||||||
required String id,
|
required String id,
|
||||||
required String name,
|
required String name,
|
||||||
|
// ignore: unused_element
|
||||||
@Default(false) isFavourite,
|
@Default(false) isFavourite,
|
||||||
required List<String> ids,
|
required List<String> ids,
|
||||||
required Map<String, bool> genres,
|
required Map<String, bool> genres,
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ class LibrarySavedFiltersDialogue extends ConsumerWidget {
|
||||||
IconButton.filledTonal(
|
IconButton.filledTonal(
|
||||||
tooltip: context.localized.updateFilterForLibrary,
|
tooltip: context.localized.updateFilterForLibrary,
|
||||||
onPressed: () => provider.updateFilter(filter),
|
onPressed: () => provider.updateFilter(filter),
|
||||||
icon: Icon(IconsaxBold.refresh),
|
icon: const Icon(IconsaxBold.refresh),
|
||||||
),
|
),
|
||||||
IconButton.filledTonal(
|
IconButton.filledTonal(
|
||||||
tooltip: context.localized.delete,
|
tooltip: context.localized.delete,
|
||||||
|
|
@ -110,7 +110,7 @@ class LibrarySavedFiltersDialogue extends ConsumerWidget {
|
||||||
foregroundColor:
|
foregroundColor:
|
||||||
WidgetStatePropertyAll(Theme.of(context).colorScheme.onErrorContainer),
|
WidgetStatePropertyAll(Theme.of(context).colorScheme.onErrorContainer),
|
||||||
),
|
),
|
||||||
icon: Icon(IconsaxOutline.trash),
|
icon: const Icon(IconsaxOutline.trash),
|
||||||
),
|
),
|
||||||
].addInBetween(const SizedBox(width: 8)),
|
].addInBetween(const SizedBox(width: 8)),
|
||||||
),
|
),
|
||||||
|
|
@ -138,7 +138,7 @@ class LibrarySavedFiltersDialogue extends ConsumerWidget {
|
||||||
const SizedBox(width: 6),
|
const SizedBox(width: 6),
|
||||||
FilledButton.tonal(
|
FilledButton.tonal(
|
||||||
onPressed: () => provider.saveFiltersNew(controller.text),
|
onPressed: () => provider.saveFiltersNew(controller.text),
|
||||||
child: Icon(IconsaxOutline.save_2),
|
child: const Icon(IconsaxOutline.save_2),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue