AdaptiveControlCenter class
A staged operations workspace that coordinates a left sidebar, central dashboard, right insights panel, and bottom activity panel from one adaptive layout model.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- AdaptiveControlCenter
Constructors
- AdaptiveControlCenter({Key? key, required Widget main, required Widget sidebar, required String sidebarTitle, required Widget insights, required String insightsTitle, required Widget activity, required String activityTitle, Widget? header, String? sidebarDescription, Widget? sidebarLeading, String? insightsDescription, Widget? insightsLeading, String? activityDescription, Widget? activityLeading, String modalSidebarLabel = 'Open sidebar', Widget modalSidebarIcon = const Icon(Icons.view_sidebar_outlined), String modalInsightsLabel = 'Open insights', Widget modalInsightsIcon = const Icon(Icons.insights_outlined), String modalActivityLabel = 'Open activity', Widget modalActivityIcon = const Icon(Icons.history_outlined), AdaptiveSize sidebarDockedAt = AdaptiveSize.medium, AdaptiveSize insightsDockedAt = AdaptiveSize.expanded, AdaptiveSize activityDockedAt = AdaptiveSize.expanded, AdaptiveHeight minimumSidebarDockedHeight = AdaptiveHeight.compact, AdaptiveHeight minimumInsightsDockedHeight = AdaptiveHeight.medium, AdaptiveHeight minimumActivityDockedHeight = AdaptiveHeight.expanded, bool useContainerConstraints = true, bool considerOrientation = false, double spacing = 16, int sidebarFlex = 2, int mainFlex = 4, int insightsFlex = 2, int mainPaneFlex = 3, int activityFlex = 2, EdgeInsetsGeometry sidebarPadding = const EdgeInsets.all(16), EdgeInsetsGeometry mainPadding = const EdgeInsets.all(16), EdgeInsetsGeometry insightsPadding = const EdgeInsets.all(16), EdgeInsetsGeometry activityPadding = 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 control center.
const
Properties
- activity → Widget
-
Activity content shown inline or in a modal sheet.
final
- activityDescription → String?
-
Optional description shown below activityTitle.
final
- activityDockedAt → AdaptiveSize
-
Semantic size at which the activity panel should dock inline.
final
- activityFlex → int
-
Flex used by the docked activity region.
final
- activityLeading → Widget?
-
Optional leading widget shown beside activityTitle.
final
- activityPadding → EdgeInsetsGeometry
-
Padding applied inside the activity surface.
final
- activityTitle → String
-
Title shown above the activity content.
final
- 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
- 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 main surface.
final
- insights → Widget
-
Insights content shown inline or in a modal sheet.
final
- insightsDescription → String?
-
Optional description shown below insightsTitle.
final
- insightsDockedAt → AdaptiveSize
-
Semantic size at which the insights panel should dock inline.
final
- insightsFlex → int
-
Flex used by the docked insights region.
final
- insightsLeading → Widget?
-
Optional leading widget shown beside insightsTitle.
final
- insightsPadding → EdgeInsetsGeometry
-
Padding applied inside the insights surface.
final
- insightsTitle → String
-
Title shown above the insights content.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- main → Widget
-
Main dashboard or control surface.
final
- mainFlex → int
-
Flex used by the main region.
final
- mainPadding → EdgeInsetsGeometry
-
Padding applied inside the main surface.
final
- mainPaneFlex → int
-
Flex used by the main surface when the activity panel is docked below it.
final
- minimumActivityDockedHeight → AdaptiveHeight
-
Minimum height class required before the activity panel can dock inline.
final
- minimumInsightsDockedHeight → AdaptiveHeight
-
Minimum height class required before the insights panel can dock inline.
final
- minimumSidebarDockedHeight → AdaptiveHeight
-
Minimum height class required before the sidebar can dock inline.
final
- modalActivityIcon → Widget
-
Icon used by the compact activity trigger.
final
- modalActivityLabel → String
-
Label used by the compact activity trigger.
final
- modalHeightFactor → double
-
Height factor used by compact modal sheets.
final
- modalInsightsIcon → Widget
-
Icon used by the compact insights trigger.
final
- modalInsightsLabel → String
-
Label used by the compact insights trigger.
final
- modalSidebarIcon → Widget
-
Icon used by the compact sidebar trigger.
final
- modalSidebarLabel → String
-
Label used by the compact sidebar 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
-
Sidebar content shown inline or in a modal sheet.
final
-
Optional description shown below sidebarTitle.
final
-
Semantic size at which the sidebar should dock inline.
final
-
Flex used by the docked sidebar region.
final
-
Optional leading widget shown beside sidebarTitle.
final
-
Padding applied inside the sidebar surface.
final
-
Title shown above the sidebar content.
final
- spacing → double
-
Space between adjacent regions.
final
- useContainerConstraints → bool
-
Whether to derive layout decisions from parent constraints.
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, 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