feat(mobile): create new album from add to modal (#24431)

* feat(mobile): create new album from add to modal

* refactor: use statefulwidget instead of hook

* chore: rename createalbumbutton
This commit is contained in:
Yaros
2025-12-11 16:47:31 +01:00
committed by GitHub
parent c5d99711f7
commit 59a3f0f455
3 changed files with 117 additions and 1 deletions

View File

@@ -109,7 +109,10 @@ class _AddActionButtonState extends ConsumerState<AddActionButton> {
return;
}
final List<Widget> slivers = [AlbumSelector(onAlbumSelected: (album) => _addCurrentAssetToAlbum(album))];
final List<Widget> slivers = [
const CreateAlbumButton(),
AlbumSelector(onAlbumSelected: (album) => _addCurrentAssetToAlbum(album)),
];
showModalBottomSheet(
context: context,