PueTheme class Null safety

The PueTheme contains all of the information for descendant Pue widgets. These fields will be used to help descendant PueHeaders, PueBodys and PueFooters have consistent gutters and styling

Inheritance

Constructors

PueTheme({required BuildContext context, double gutters = PueConstants.defaultGutters, TextStyle? headerTextStyle, TextStyle? headerSubtextStyle, Widget? background})

Properties

background Widget?
This controls the background of the Pueprint or SoloPuePage if using outside of a flow.
read / write
context BuildContext
read / write
gutters double
This is the horizontal padding of descendant PueHeaders, PueBodys and PueFooters. This helps to ensure
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
hasListeners bool
Whether any listeners are currently registered. [...]
@protected, read-only, inherited
headerSubtextStyle TextStyle?
read / write
headerTextStyle TextStyle?
TBD: This will cap the max width of the PueHeaders, PueBodys and PueFooters for web and desktop view The text style for the main header text, as well as subtext. This is used in the PueHeader
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes. [...]
inherited
copyWith({required BuildContext context, double? gutters, TextStyle? headerTextStyle, TextStyle? headerSubtextStyle, Widget? background}) PueTheme
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener and removeListener will throw after the object is disposed). [...]
@mustCallSuper, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notifyListeners() → void
Call all the registered listeners. [...]
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes. [...]
inherited
setState(PueTheme state) → void
toString() String
A string representation of this object. [...]
inherited

Operators

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