PlexTheme class
This class will hold theme related information
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Properties
- appTextTheme ↔ TextTheme?
-
getter/setter pair
- appTheme ↔ ThemeData?
-
getter/setter pair
-
getter/setter pair
-
getter/setter pair
- selectionColor ↔ Color
-
getter/setter pair
Static Methods
-
getActiveTheme(
BuildContext context) → ThemeData - Initial theme data for the app
-
getBrightnessMode(
) → ThemeMode - Check theme is brightness
-
getTextTheme(
BuildContext context) → TextTheme -
getThemeByBrightness(
Brightness brightness) → ThemeData -
isDarkMode(
BuildContext context) → bool - Check theme is dark or light
-
isMaterial3(
) → bool - Check theme is Material 3 or not
-
randomColor(
) → Color -
setBrightnessMode(
ThemeMode value) → void - Set theme brightness
-
setMaterial3(
bool value) → void - Set theme to material 3