ZdsThemeData class

Class to allow custom color definitions in dark and light modes and used with new ZetaProvider

This class holds the definitions for themes in both Dark and Light mode. These definitions are later used by ZetaProvider class.

See also:

Annotations

Constructors

ZdsThemeData.defaultData()
Creates a default ZdsThemeData instance with predefined settings.
factory
ZdsThemeData.fromJson(Map<String, dynamic> json)
Factory constructor for creating ZdsThemeData from a JSON map.
factory
ZdsThemeData.fromJsonString(String json)
Creates a new instance of ZdsThemeData from a JSON format string.
factory

Properties

adjustAccessibility bool
Decides if accessibility adjustments should be applied to colors.
final
contrast ZetaContrast
Represents the Zeta accessibility standard. Default icon color.
final
darkAppBarStyle ZetaAppBarStyle
AppBar style for the dark theme
final
hashCode int
The hash code for this object.
no setterinherited
lightAppBarStyle ZetaAppBarStyle
AppBar style for the light theme
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
themeData ZetaThemeData
Theme data to be used with ZetaProvider
final
themeMode ThemeMode
The theme mode for the Zeta
final

Methods

copyWith({ZetaThemeData? themeData, ThemeMode? themeMode, ZetaAppBarStyle? darkAppBarStyle, ZetaAppBarStyle? lightAppBarStyle, ZetaContrast? contrast, bool? adjustAccessibility}) ZdsThemeData
Creates a copy of this ZdsThemeData but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the ZdsThemeData instance to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromAssets(String path) Future<ZdsThemeData>
Asynchronously creates an instance of ZdsThemeData from the JSON file at the given path.