DVStudioAppLook class
The application's appearance, as its MaterialApp declares it.
- Annotations
Constructors
- DVStudioAppLook({required ThemeData theme, ThemeData? darkTheme, ThemeMode themeMode = ThemeMode.system, ScrollBehavior? scrollBehavior})
-
const
Properties
- darkTheme → ThemeData?
-
The dark theme, when the application has one.
final
- hasDark → bool
-
Whether a dark version exists to switch to.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollBehavior → ScrollBehavior?
-
The application's scroll behaviour: whether its pages draw scrollbars,
and for which input. Part of how a page looks.
final
- theme → ThemeData
-
The light theme, or the only one.
final
- themeMode → ThemeMode
-
Which of the two the application shows.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
Brightness brightness, {Brightness? chosen}) → ThemeData -
The theme the application shows on a device set to
brightness; or, withchosen, the one somebody asked to see. -
toString(
) → String -
A string representation of this object.
inherited
-
wrap(
Widget child, {required Brightness brightness, Brightness? chosen}) → Widget -
childunder this look, on a device set tobrightness, or in the appearancechosen: the theme, the scroll behaviour, and a Material so text takes the theme's style.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
capture(
BuildContext context) → DVStudioAppLook -
The look of the application
contextis inside: itsMaterialApp's themes when there is one, otherwise whatever theme is in force there.