diff --git a/lib/screens/collections/add_to_collection.dart b/lib/screens/collections/add_to_collection.dart index fbe85bc..311f898 100644 --- a/lib/screens/collections/add_to_collection.dart +++ b/lib/screens/collections/add_to_collection.dart @@ -43,32 +43,29 @@ class _AddToCollectionState extends ConsumerState { Widget build(BuildContext context) { final collectonOptions = ref.watch(provider); return ActionContent( - title: Container( - color: Theme.of(context).colorScheme.surface, - child: Column( - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - if (widget.items.length == 1) - Text( - context.localized.addToCollection, - style: Theme.of(context).textTheme.titleLarge, - ) - else - Text( - context.localized.addItemsToCollection(widget.items.length), - style: Theme.of(context).textTheme.titleLarge, - ), - IconButton( - onPressed: () => ref.read(provider.notifier).setItems(widget.items), - icon: const Icon(IconsaxOutline.refresh), + title: Column( + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + if (widget.items.length == 1) + Text( + context.localized.addToCollection, + style: Theme.of(context).textTheme.titleLarge, ) - ], - ), - if (widget.items.length == 1) ItemBottomSheetPreview(item: widget.items.first), - ], - ), + else + Text( + context.localized.addItemsToCollection(widget.items.length), + style: Theme.of(context).textTheme.titleLarge, + ), + IconButton( + onPressed: () => ref.read(provider.notifier).setItems(widget.items), + icon: const Icon(IconsaxOutline.refresh), + ) + ], + ), + if (widget.items.length == 1) ItemBottomSheetPreview(item: widget.items.first), + ], ), child: Column( children: [ diff --git a/lib/screens/playlists/add_to_playlists.dart b/lib/screens/playlists/add_to_playlists.dart index 580638f..666d1fa 100644 --- a/lib/screens/playlists/add_to_playlists.dart +++ b/lib/screens/playlists/add_to_playlists.dart @@ -38,32 +38,29 @@ class _AddToPlaylistState extends ConsumerState { Widget build(BuildContext context) { final collectonOptions = ref.watch(provider); return ActionContent( - title: Container( - color: Theme.of(context).colorScheme.surface, - child: Column( - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - if (widget.items.length == 1) - Text( - context.localized.addToPlaylist, - style: Theme.of(context).textTheme.titleLarge, - ) - else - Text( - context.localized.addItemsToPlaylist(widget.items.length), - style: Theme.of(context).textTheme.titleLarge, - ), - IconButton( - onPressed: () => ref.read(provider.notifier).setItems(widget.items), - icon: const Icon(IconsaxOutline.refresh), + title: Column( + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + if (widget.items.length == 1) + Text( + context.localized.addToPlaylist, + style: Theme.of(context).textTheme.titleLarge, ) - ], - ), - if (widget.items.length == 1) ItemBottomSheetPreview(item: widget.items.first), - ], - ), + else + Text( + context.localized.addItemsToPlaylist(widget.items.length), + style: Theme.of(context).textTheme.titleLarge, + ), + IconButton( + onPressed: () => ref.read(provider.notifier).setItems(widget.items), + icon: const Icon(IconsaxOutline.refresh), + ) + ], + ), + if (widget.items.length == 1) ItemBottomSheetPreview(item: widget.items.first), + ], ), child: Column( children: [