From 2d1793c5ff312d2e2d9973652b38cb91920fc5c9 Mon Sep 17 00:00:00 2001 From: Luke Greenwood Date: Sun, 2 Oct 2022 13:19:17 +0100 Subject: [PATCH] fix: Theme toggle not updating UI (#1205) --- .../presentation/settings/widgets/settings_appearance_view.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app_flowy/lib/workspace/presentation/settings/widgets/settings_appearance_view.dart b/frontend/app_flowy/lib/workspace/presentation/settings/widgets/settings_appearance_view.dart index ea885fc86a..54077135b0 100644 --- a/frontend/app_flowy/lib/workspace/presentation/settings/widgets/settings_appearance_view.dart +++ b/frontend/app_flowy/lib/workspace/presentation/settings/widgets/settings_appearance_view.dart @@ -13,7 +13,7 @@ class SettingsAppearanceView extends StatelessWidget { @override Widget build(BuildContext context) { - final theme = context.read(); + final theme = context.watch(); return SingleChildScrollView( child: Column(