From 0230fa7874b018f7a99078cb11797260973231c9 Mon Sep 17 00:00:00 2001 From: Vishnu Mohandas Date: Thu, 13 May 2021 00:28:48 +0530 Subject: [PATCH] Push user to backup selection screen once first-load is complete --- lib/ui/loading_photos_page.dart | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/ui/loading_photos_page.dart b/lib/ui/loading_photos_page.dart index 3bebcf9f0..07ef935a4 100644 --- a/lib/ui/loading_photos_page.dart +++ b/lib/ui/loading_photos_page.dart @@ -4,7 +4,7 @@ import 'package:flutter/material.dart'; import 'package:loading_animations/loading_animations.dart'; import 'package:photos/core/event_bus.dart'; import 'package:photos/events/sync_status_update_event.dart'; -import 'package:photos/ui/backup_folder_selection_widget.dart'; +import 'package:photos/ui/backup_folder_selection_page.dart'; class LoadingPhotosPage extends StatefulWidget { const LoadingPhotosPage({Key key}) : super(key: key); @@ -38,7 +38,13 @@ class _LoadingPhotosPageState extends State { Bus.instance.on().listen((event) async { if (mounted && event.status == SyncStatus.completed_first_gallery_import) { - showBackupFolderSelectionDialog(context); + Navigator.of(context).pushReplacement( + MaterialPageRoute( + builder: (BuildContext context) { + return BackupFolderSelectionPage(); + }, + ), + ); } });