Skip to content

Commit

Permalink
fix: SystemOverlayStyle not applied on AppStart on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Oct 8, 2023
1 parent aee54a6 commit 69cd2d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/pages/chat_list/chat_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -384,6 +385,11 @@ class ChatListController extends State<ChatList>
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();
Expand Down

0 comments on commit 69cd2d7

Please sign in to comment.