From 69cd2d790d1ffebe55eb687a9331fb624920184e Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sun, 8 Oct 2023 09:43:31 +0200 Subject: [PATCH] fix: SystemOverlayStyle not applied on AppStart on Android --- lib/pages/chat_list/chat_list.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/pages/chat_list/chat_list.dart b/lib/pages/chat_list/chat_list.dart index 8c6dc67d55..b972847fda 100644 --- a/lib/pages/chat_list/chat_list.dart +++ b/lib/pages/chat_list/chat_list.dart @@ -3,6 +3,7 @@ import 'dart:io'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:adaptive_dialog/adaptive_dialog.dart'; import 'package:flutter_gen/gen_l10n/l10n.dart'; @@ -384,6 +385,11 @@ class ChatListController extends State searchServer = await Store().getItem(_serverStoreNamespace); Matrix.of(context).backgroundPush?.setupPush(); } + + // Workaround for system UI overlay style not applied on app start + SystemChrome.setSystemUIOverlayStyle( + Theme.of(context).appBarTheme.systemOverlayStyle!, + ); }); _checkTorBrowser();