initialize static method
dynamic
initialize({
- BuildContext? context,
- ProKitThemeModel? customLightTheme,
- ProKitThemeModel? customDarkTheme,
Implementation
static initialize(
{BuildContext? context,
ProKitThemeModel? customLightTheme,
ProKitThemeModel? customDarkTheme}) {
///Initialize Size Config
SizeConfig.init(context!);
///Initialize Shared Preference Manager then Theme
ProKitPrefManager.initialize().whenComplete(() {
ProKitProviderAccess.init(context);
ProKitTheme.initialize(
customLightTheme: customLightTheme,
customDarkTheme: customDarkTheme,
);
ProKitThemeProvider.state(ProKitNavigator.navigatorKey.currentContext!).initializeTheme();
});
}