applySettings method
Applies the settings to the application. It is used to update the theme of the application.
Implementation
Future<void> applySettings(
BuildContext context,
FastAppSettingsBlocState settingsState,
) async {
// We update the locale of the application.
_logger.debug('Setting Locale...');
await context.setLocale(settingsState.languageLocale);
_logger
..debug('Locale set')
// We update the theme mode of the application.
..debug('Updating theme mode...');
await updateThemeMode(context, settingsState);
_logger.debug('Theme mode updated');
}