PueProvider class

This class provides 1 or 3 pieces of state to descendants, depending on whether it is in the Pueprint widget or not. If in the Pueprint, it provides a PueTheme, AppBarData and FooterData to descendants. If not, then it only provides PueTheme to descendants (like SoloPuePage) to use

Inheritance

Constructors

PueProvider({Widget builder(BuildContext context)?, Widget pueBuilder(BuildContext context, AppBarData appBarData, FooterData footerData)?, PueTheme? theme, AppBarData? appBarData, FooterData? footerData, bool pueprint = false})

Properties

appBarData AppBarData?
The current appBar data for the Pueprint to use
final
builder → (Widget Function(BuildContext context)?)
Return a builder for the Pueprint widget to use directly. Should only be used in a Pueprint widget since it provides appBarData and footerData
final
footerData FooterData?
The current footer data for the Pueprint to use
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
pueBuilder → (Widget Function(BuildContext context, AppBarData appBarData, FooterData footerData)?)
This builder should only be used in the Pueprint widget. It provides both appBarData and footerData state for descendant PuePages to use
final
pueprint bool
If this is true, that means this widget is being used in a Pueprint widget and thus, we must also initialize a ChangeNotifierProvider for appBarData and footerData
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme PueTheme?
The theme for descendants of this widget. See PueTheme for more details
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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