Dashbook.multiTheme constructor
Dashbook.multiTheme({
- Key? key,
- required Map<
String, ThemeData> themes, - String? initialTheme,
- String title = '',
- bool usePreviewSafeArea = false,
- bool autoPinStoriesOnLargeScreen = false,
- OnChapterChange? onChapterChange,
- List<
LocalizationsDelegate> ? localizationsDelegates, - List<
Locale> supportedLocales = const <Locale>[Locale('en', 'US')],
Implementation
Dashbook.multiTheme({
Key? key,
required Map<String, ThemeData> themes,
String? initialTheme,
this.title = '',
this.usePreviewSafeArea = false,
this.autoPinStoriesOnLargeScreen = false,
this.navigatorKey,
this.onChapterChange,
this.localizationsDelegates,
this.supportedLocales = const <Locale>[Locale('en', 'US')],
}) : _multiTheme =
_DashbookMultiTheme(themes: themes, initialTheme: initialTheme),
theme = null,
_dualTheme = null,
super(key: key);