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