opt.: auto switch status bar
This commit is contained in:
@@ -42,7 +42,7 @@ class _FullScreenPageState extends State<FullScreenPage> with AfterLayoutMixin {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
hideStatusBar();
|
||||
switchStatusBar(hide: true);
|
||||
_timer = Timer.periodic(const Duration(minutes: 1), (_) {
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
|
||||
@@ -50,6 +50,7 @@ class _HomePageState extends State<HomePage>
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
switchStatusBar(hide: false);
|
||||
WidgetsBinding.instance.addObserver(this);
|
||||
_selectIndex.value = _setting.launchPage.fetch()!;
|
||||
// avoid index out of range
|
||||
|
||||
Reference in New Issue
Block a user