mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-18 10:52:34 +01:00
fix: Downgrade main.dart
This commit is contained in:
parent
794288d04e
commit
aaf67c8f70
@ -1,4 +1,4 @@
|
|||||||
// @dart=2.12
|
// @dart=2.11
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
@ -68,14 +68,14 @@ void main() async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class FluffyChatApp extends StatefulWidget {
|
class FluffyChatApp extends StatefulWidget {
|
||||||
final Widget? testWidget;
|
final Widget testWidget;
|
||||||
final List<Client> clients;
|
final List<Client> clients;
|
||||||
final Map<String, String>? queryParameters;
|
final Map<String, String> queryParameters;
|
||||||
|
|
||||||
const FluffyChatApp({
|
const FluffyChatApp({
|
||||||
Key? key,
|
Key key,
|
||||||
this.testWidget,
|
this.testWidget,
|
||||||
required this.clients,
|
@required this.clients,
|
||||||
this.queryParameters,
|
this.queryParameters,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
@ -89,9 +89,9 @@ class FluffyChatApp extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _FluffyChatAppState extends State<FluffyChatApp> {
|
class _FluffyChatAppState extends State<FluffyChatApp> {
|
||||||
GlobalKey<VRouterState>? _router;
|
GlobalKey<VRouterState> _router;
|
||||||
bool? columnMode;
|
bool columnMode;
|
||||||
String? _initialUrl;
|
String _initialUrl;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
@ -139,8 +139,8 @@ class _FluffyChatAppState extends State<FluffyChatApp> {
|
|||||||
: null,
|
: null,
|
||||||
routes: AppRoutes(columnMode ?? false).routes,
|
routes: AppRoutes(columnMode ?? false).routes,
|
||||||
builder: (context, child) {
|
builder: (context, child) {
|
||||||
LoadingDialog.defaultTitle = L10n.of(context)!.loadingPleaseWait;
|
LoadingDialog.defaultTitle = L10n.of(context).loadingPleaseWait;
|
||||||
LoadingDialog.defaultBackLabel = L10n.of(context)!.close;
|
LoadingDialog.defaultBackLabel = L10n.of(context).close;
|
||||||
LoadingDialog.defaultOnError =
|
LoadingDialog.defaultOnError =
|
||||||
(e) => (e as Object).toLocalizedString(context);
|
(e) => (e as Object).toLocalizedString(context);
|
||||||
WidgetsBinding.instance?.addPostFrameCallback((_) {
|
WidgetsBinding.instance?.addPostFrameCallback((_) {
|
||||||
|
Loading…
Reference in New Issue
Block a user