AdaptiveWorkbench class
A compound studio-style surface that coordinates a left library, central canvas, and right inspector from one adaptive layout model.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AdaptiveWorkbench
Constructors
- AdaptiveWorkbench({Key? key, required Widget canvas, required Widget library, required String libraryTitle, required Widget inspector, required String inspectorTitle, Widget? header, String? libraryDescription, Widget? libraryLeading, String? inspectorDescription, Widget? inspectorLeading, String modalLibraryLabel = 'Open library', Widget modalLibraryIcon = const Icon(Icons.inventory_2_outlined), String modalInspectorLabel = 'Open inspector', Widget modalInspectorIcon = const Icon(Icons.tune_outlined), AdaptiveSize libraryDockedAt = AdaptiveSize.medium, AdaptiveSize inspectorDockedAt = AdaptiveSize.expanded, AdaptiveHeight minimumLibraryDockedHeight = AdaptiveHeight.compact, AdaptiveHeight minimumInspectorDockedHeight = AdaptiveHeight.medium, bool useContainerConstraints = true, bool considerOrientation = false, double spacing = 16, int libraryFlex = 2, int canvasFlex = 4, int inspectorFlex = 2, EdgeInsetsGeometry canvasPadding = const EdgeInsets.all(16), EdgeInsetsGeometry libraryPadding = const EdgeInsets.all(16), EdgeInsetsGeometry inspectorPadding = const EdgeInsets.all(16), double modalHeightFactor = 0.72, bool showModalDragHandle = true, bool animateSize = true, Duration animationDuration = const Duration(milliseconds: 250), Curve animationCurve = Curves.easeInOutCubic})
-
Creates an adaptive workbench.
const
Properties
- animateSize → bool
-
Whether to animate size changes when the mode changes.
final
- animationCurve → Curve
-
Curve used by AnimatedSize and AnimatedSwitcher.
final
- animationDuration → Duration
-
Duration used by AnimatedSize and AnimatedSwitcher.
final
- canvas → Widget
-
Main canvas or composition surface.
final
- canvasFlex → int
-
Flex used by the canvas region.
final
- canvasPadding → EdgeInsetsGeometry
-
Padding applied inside the canvas surface.
final
- considerOrientation → bool
-
Whether orientation should influence container-based breakpoint selection.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → Widget?
-
Optional header shown above the canvas.
final
- inspector → Widget
-
Inspector content shown inline or in a modal sheet.
final
- inspectorDescription → String?
-
Optional description shown below inspectorTitle.
final
- inspectorDockedAt → AdaptiveSize
-
Semantic size at which the inspector should dock inline.
final
- inspectorFlex → int
-
Flex used by the docked inspector region.
final
- inspectorLeading → Widget?
-
Optional leading widget shown beside inspectorTitle.
final
- inspectorPadding → EdgeInsetsGeometry
-
Padding applied inside the inspector surface.
final
- inspectorTitle → String
-
Title shown above the inspector content.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- library → Widget
-
Library content shown inline or in a modal sheet.
final
- libraryDescription → String?
-
Optional description shown below libraryTitle.
final
- libraryDockedAt → AdaptiveSize
-
Semantic size at which the library should dock inline.
final
- libraryFlex → int
-
Flex used by the docked library region.
final
- libraryLeading → Widget?
-
Optional leading widget shown beside libraryTitle.
final
- libraryPadding → EdgeInsetsGeometry
-
Padding applied inside the library surface.
final
- libraryTitle → String
-
Title shown above the library content.
final
- minimumInspectorDockedHeight → AdaptiveHeight
-
Minimum height class required before the inspector can dock inline.
final
- minimumLibraryDockedHeight → AdaptiveHeight
-
Minimum height class required before the library can dock inline.
final
- modalHeightFactor → double
-
Height factor used by compact modal sheets.
final
- modalInspectorIcon → Widget
-
Icon used by the compact inspector trigger.
final
- modalInspectorLabel → String
-
Label used by the compact inspector trigger.
final
- modalLibraryIcon → Widget
-
Icon used by the compact library trigger.
final
- modalLibraryLabel → String
-
Label used by the compact library trigger.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showModalDragHandle → bool
-
Whether to show a drag handle in compact modal sheets.
final
- spacing → double
-
Space between adjacent workbench regions.
final
- useContainerConstraints → bool
-
Whether to derive layout decisions from parent constraints.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AdaptiveWorkbench> -
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