Skip to content

Commit c44ec5f

Browse files
committed
feat(app): track settings for rebuilds
- Added settings check - Rebuild on settings change
1 parent 064aac5 commit c44ec5f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/app/view/app.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ class _AppViewState extends State<_AppView> {
176176
},
177177
child: BlocBuilder<AppBloc, AppState>(
178178
// Build when theme-related properties change (including text scale factor)
179-
buildWhen:
180-
(previous, current) =>
181-
previous.themeMode != current.themeMode ||
182-
previous.flexScheme != current.flexScheme ||
183-
previous.fontFamily != current.fontFamily ||
184-
previous.appTextScaleFactor != current.appTextScaleFactor ||
185-
previous.locale != current.locale, // Added locale check
179+
buildWhen: (previous, current) =>
180+
previous.themeMode != current.themeMode ||
181+
previous.flexScheme != current.flexScheme ||
182+
previous.fontFamily != current.fontFamily ||
183+
previous.appTextScaleFactor != current.appTextScaleFactor ||
184+
previous.locale != current.locale ||
185+
previous.settings != current.settings, // Added settings check
186186
builder: (context, state) {
187187
print('[_AppViewState] Building MaterialApp.router');
188188
print('[_AppViewState] state.fontFamily: ${state.fontFamily}');

0 commit comments

Comments
 (0)