1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Automatically apply new dark theme settings

This commit is contained in:
2020-05-12 19:18:42 +02:00
parent 6b8cc2569d
commit fe3f0c0e85
3 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import 'package:comunic/helpers/preferences_helper.dart';
import 'package:comunic/main.dart';
import 'package:comunic/ui/routes/full_screen_image.dart';
import 'package:comunic/ui/widgets/dialogs/auto_sized_dialog_content_widget.dart';
import 'package:comunic/utils/intl_utils.dart';
@ -222,3 +223,7 @@ void showAboutAppDialog(BuildContext context) {
),
]);
}
/// Apply new theme settings
void applyNewThemeSettings(BuildContext context) =>
context.findAncestorStateOfType<ComunicApplicationState>().refresh();