VoTheme class abstract
Blueprint theme builder.
Extend this once in your app and override only the parts you want to
brand; anything left alone falls back to the Default* implementation:
class AppTheme extends VoTheme {
@override
VoColors get colors => const AppColors();
}
build resolves colors for the requested brightness, then injects the resolved values into typography, componentTheme and createThemeData.
Constructors
- VoTheme()
-
const
Properties
- colors → VoColors
-
no setter
- componentTheme → VoComponentTheme
-
no setter
- dark → ThemeData
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- light → ThemeData
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizes → VoSizes
-
no setter
- typography → VoTypography
-
no setter
Methods
-
build(
Brightness brightness) → ThemeData -
createThemeData(
{required VoColors colors, required VoSizes sizes, required VoTypography typography}) → VoThemeData - Builds the Material sub-themes. Override to return your own VoThemeData subclass.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited