Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mobile][photos] add onStartWithoutAccount callback

Priyanshu Dangare35510e81c41c
diff --git a/mobile/apps/photos/lib/ui/home/landing_page_widget.dart b/mobile/apps/photos/lib/ui/home/landing_page_widget.dart
index bfe9a44451..edc399ee3e 100644
--- a/mobile/apps/photos/lib/ui/home/landing_page_widget.dart
+++ b/mobile/apps/photos/lib/ui/home/landing_page_widget.dart
@@ -22,11 +22,11 @@ import 'package:photos/ui/payment/subscription.dart';
import "package:photos/ui/settings/developer_settings_tap_area.dart";
import "package:photos/ui/settings/developer_settings_widget.dart";
import "package:photos/ui/settings/language_picker.dart";
-import 'package:photos/ui/tabs/home_widget.dart';
import "package:rive/rive.dart" as rive;
class LandingPageWidget extends StatefulWidget {
- const LandingPageWidget({super.key});
+ const LandingPageWidget({required this.onStartWithoutAccount, super.key});
+ final VoidCallback onStartWithoutAccount;
@override
State<LandingPageWidget> createState() => _LandingPageWidgetState();
@@ -209,12 +209,8 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {
);
}
- Future<void> _navigateWithoutAccount() async {
- await Navigator.of(context).push(
- MaterialPageRoute(
- builder: (_) => const HomeWidget(startWithoutAccount: true),
- ),
- );
+ void _navigateWithoutAccount() {
+ widget.onStartWithoutAccount();
}
Future<void> _navigateToSignUpPage() async {