Fix add new album flow
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -142,7 +142,7 @@ class _AlbumVerticalListWidgetState extends State<AlbumVerticalListWidget> {
|
||||
},
|
||||
showOnlyLoadingState: true,
|
||||
textCapitalization: TextCapitalization.words,
|
||||
popnavAfterSubmission: false,
|
||||
popnavAfterSubmission: true,
|
||||
);
|
||||
if (result is Exception) {
|
||||
await showGenericErrorDialog(
|
||||
|
||||
Reference in New Issue
Block a user