@@ -5,6 +5,7 @@ import '../../authentication/authentication_model.dart';
55import '../../authentication/view/chat_login_page.dart' ;
66import '../../encryption/view/check_encryption_setup_page.dart' ;
77import 'app.dart' ;
8+ import 'error_page.dart' ;
89import 'splash_page.dart' ;
910
1011class WaitForRegistrationPage extends StatefulWidget {
@@ -38,7 +39,16 @@ class _WaitForRegistrationPageState extends State<WaitForRegistrationPage> {
3839 @override
3940 Widget build (BuildContext context) => FutureBuilder (
4041 future: _registrationReady,
41- builder: (context, snapshot) => snapshot.hasData
42+ builder: (context, snapshot) => snapshot.hasError
43+ ? App (
44+ themeMode: ThemeMode .system,
45+ lightTheme: widget.lightTheme,
46+ darkTheme: widget.darkTheme,
47+ highContrastDarkTheme: widget.highContrastDarkTheme,
48+ highContrastTheme: widget.highContrastTheme,
49+ child: ErrorPage (error: snapshot.error.toString ()),
50+ )
51+ : snapshot.hasData
4252 ? App (
4353 lightTheme: widget.lightTheme,
4454 darkTheme: widget.darkTheme,
0 commit comments