INNER CODE UNIT · Dart
AdaptiveTheme
BirjuVachhani/adaptive_theme · packages/adaptive_theme/lib/src/adaptive_theme.dart:31
class AdaptiveTheme extends StatefulWidget {
/// Represents the light theme for the app.
final ThemeData light;
/// Represents the dark theme for the app.
final ThemeData dark;
/// Indicates which [AdaptiveThemeMode] to use initially.
final AdaptiveThemeMode initial;
/// Allows to ignore the persisted or [initial] theme mode and use this
/// mode instead always. This is useful when you want to always start with
/// a specific theme mode regardless of the persisted theme mode.
/// Note that this will override the persisted theme mode as well.
final AdaptiveThemeMode? overrideMode;
/// Provides a builder with access of light and dark theme. Intended to
/// be used to return [MaterialApp].