fix: server page empty by default, https prefix non-editable, StateProvider for instant redirect
This commit is contained in:
+8
-7
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:pyramid/core/app.dart';
|
||||
import 'package:pyramid/core/matrix_client.dart';
|
||||
import 'package:pyramid/features/auth/login_notifier.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
@@ -17,16 +18,16 @@ class PyramidBootstrap extends ConsumerWidget {
|
||||
|
||||
return clientAsync.when(
|
||||
loading: () => const MaterialApp(
|
||||
home: Scaffold(
|
||||
body: Center(child: CircularProgressIndicator()),
|
||||
),
|
||||
home: Scaffold(body: Center(child: CircularProgressIndicator())),
|
||||
),
|
||||
error: (e, _) => MaterialApp(
|
||||
home: Scaffold(
|
||||
body: Center(child: Text('Fehler: $e')),
|
||||
),
|
||||
home: Scaffold(body: Center(child: Text('Fehler: $e'))),
|
||||
),
|
||||
data: (_) => const PyramidApp(),
|
||||
data: (_) {
|
||||
// Homeserver einmalig aus SharedPreferences laden
|
||||
initHomeserver(ref);
|
||||
return const PyramidApp();
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user