mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 09:35:12 +00:00
fix: SystemOverlayStyle not applied on AppStart on Android
This commit is contained in:
parent
aee54a63f0
commit
69cd2d790d
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,7 @@ import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/services.dart';
|
||||||
|
|
||||||
import 'package:adaptive_dialog/adaptive_dialog.dart';
|
import 'package:adaptive_dialog/adaptive_dialog.dart';
|
||||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||||
|
@ -384,6 +385,11 @@ class ChatListController extends State<ChatList>
|
||||||
searchServer = await Store().getItem(_serverStoreNamespace);
|
searchServer = await Store().getItem(_serverStoreNamespace);
|
||||||
Matrix.of(context).backgroundPush?.setupPush();
|
Matrix.of(context).backgroundPush?.setupPush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Workaround for system UI overlay style not applied on app start
|
||||||
|
SystemChrome.setSystemUIOverlayStyle(
|
||||||
|
Theme.of(context).appBarTheme.systemOverlayStyle!,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
_checkTorBrowser();
|
_checkTorBrowser();
|
||||||
|
|
Loading…
Reference in a new issue