initTheme static method

void initTheme({
  1. required String? primaryColor,
  2. required String? primarySecondColor,
  3. required String? buttonColor,
  4. required String? secondColor,
  5. String? enviroment = 'release',
  6. String? fontName,
})

Implementation

static void initTheme(
    {required String? primaryColor,
    required String? primarySecondColor,
    required String? buttonColor,
    required String? secondColor,
    required String? logo,
    String? enviroment = 'release',
    String? fontName}) async {
  await SharedPrefsHelper().initialize();
  prefsHelper.setApplicationConfig(
      applicationConfig: ApplicationConfig(primaryColor: primaryColor, primarySecondColor: primarySecondColor, multiColor: true, btnColor: buttonColor, logo: logo, enviroment: enviroment));
  prefsHelper.setFontName(fontName);
}