Fix add new album flow

This commit is contained in:
AmanRajSinghMourya
2025-07-28 11:13:40 +05:30
parent 99720996bf
commit a0d7a88a6b
2 changed files with 9 additions and 6 deletions

View File

@@ -187,11 +187,14 @@ extension SectionTypeExtensions on SectionType {
try {
final Collection c =
await CollectionsService.instance.createAlbum(text);
unawaited(
routeToPage(
context,
CollectionPage(CollectionWithThumbnail(c, null)),
),
// Close the dialog now so that it does not flash when leaving the album again.
Navigator.of(context).pop();
// ignore: unawaited_futures
await routeToPage(
context,
CollectionPage(CollectionWithThumbnail(c, null)),
);
} catch (e, s) {
Logger("CreateNewAlbumIcon")

View File

@@ -142,7 +142,7 @@ class _AlbumVerticalListWidgetState extends State<AlbumVerticalListWidget> {
},
showOnlyLoadingState: true,
textCapitalization: TextCapitalization.words,
popnavAfterSubmission: false,
popnavAfterSubmission: true,
);
if (result is Exception) {
await showGenericErrorDialog(