chore: small cleanup

This commit is contained in:
PartyDonut 2024-11-03 10:44:05 +01:00
parent 44c3763848
commit 4ffba50330
2 changed files with 4 additions and 3 deletions

View file

@ -21,6 +21,7 @@ class LibraryFiltersModel with _$LibraryFiltersModel {
factory LibraryFiltersModel._internal({
required String id,
required String name,
// ignore: unused_element
@Default(false) isFavourite,
required List<String> ids,
required Map<String, bool> genres,

View file

@ -84,7 +84,7 @@ class LibrarySavedFiltersDialogue extends ConsumerWidget {
IconButton.filledTonal(
tooltip: context.localized.updateFilterForLibrary,
onPressed: () => provider.updateFilter(filter),
icon: Icon(IconsaxBold.refresh),
icon: const Icon(IconsaxBold.refresh),
),
IconButton.filledTonal(
tooltip: context.localized.delete,
@ -110,7 +110,7 @@ class LibrarySavedFiltersDialogue extends ConsumerWidget {
foregroundColor:
WidgetStatePropertyAll(Theme.of(context).colorScheme.onErrorContainer),
),
icon: Icon(IconsaxOutline.trash),
icon: const Icon(IconsaxOutline.trash),
),
].addInBetween(const SizedBox(width: 8)),
),
@ -138,7 +138,7 @@ class LibrarySavedFiltersDialogue extends ConsumerWidget {
const SizedBox(width: 6),
FilledButton.tonal(
onPressed: () => provider.saveFiltersNew(controller.text),
child: Icon(IconsaxOutline.save_2),
child: const Icon(IconsaxOutline.save_2),
),
],
)