Skip to content

Commit 2f328bc

Browse files
committed
feat: Add font weight and locale to app theme
- Added fontWeight to theme data - Use locale from AppBloc state
1 parent 02b3434 commit 2f328bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/app/view/app.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,18 @@ class _AppViewState extends State<_AppView> {
192192
scheme: state.flexScheme,
193193
appTextScaleFactor:
194194
state.settings.displaySettings.textScaleFactor,
195+
appFontWeight: state.settings.displaySettings.fontWeight, // Added
195196
fontFamily: state.settings.displaySettings.fontFamily,
196197
),
197198
darkTheme: darkTheme(
198199
scheme: state.flexScheme,
199200
appTextScaleFactor:
200201
state.settings.displaySettings.textScaleFactor,
202+
appFontWeight: state.settings.displaySettings.fontWeight, // Added
201203
fontFamily: state.settings.displaySettings.fontFamily,
202204
),
203205
routerConfig: _router,
206+
locale: state.locale, // Use locale from AppBloc state
204207
localizationsDelegates: AppLocalizations.localizationsDelegates,
205208
supportedLocales: AppLocalizations.supportedLocales,
206209
);

0 commit comments

Comments
 (0)