PlaygroundHome class

Main playground widget with 2-column layout Left: Component Preview | Right: Controls Panel

Note: Component states are now managed by DualThemeView and passed in. This widget is a "view" of the shared states, not the owner.

Inheritance

Constructors

PlaygroundHome({Key? key, required NeumorphicTheme theme, required ComponentType selectedComponent, required ValueChanged<ComponentType> onComponentSelected, required Map<ComponentType, ThemeableState> componentStates, required AnimationController borderAnimationController, GeneratedPalette? palette, VoidCallback? onColorsChanged})
Creates a PlaygroundHome widget.
const

Properties

borderAnimationController AnimationController
Shared animation controller for animated borders. Phase 3.2: Lifted from internal state to parent.
final
componentStates Map<ComponentType, ThemeableState>
Shared component states (owned by DualThemeView). Phase 3.2: Lifted from internal state to enable state sharing.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onColorsChanged VoidCallback?
Callback when any color is modified in controls (Phase 8).
final
onComponentSelected ValueChanged<ComponentType>
Callback when a component is selected.
final
palette GeneratedPalette?
Optional palette for theme application to component states.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedComponent ComponentType
The currently selected component type.
final
theme NeumorphicTheme
The neumorphic theme to use for this instance.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<PlaygroundHome>
Creates the mutable state for this widget at a given location in the tree.
override
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, int wrapWidth = 65}) 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