AdaptiveReviewDesk<T> class
A staged review workspace that coordinates a review queue, a central review surface, and a decision panel from one adaptive layout model.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AdaptiveReviewDesk
Constructors
-
AdaptiveReviewDesk({Key? key, required List<
T> items, required Widget itemBuilder(BuildContext context, T item, bool selected, VoidCallback onTap), required Widget reviewBuilder(BuildContext context, T item), required Widget decisionBuilder(BuildContext context, T item), required String queueTitle, required String decisionTitle, Widget? header, Widget? emptyState, String? queueDescription, Widget? queueLeading, String? decisionDescription, Widget? decisionLeading, String modalQueueLabel = 'Open queue', Widget modalQueueIcon = const Icon(Icons.playlist_play_outlined), String modalDecisionLabel = 'Open decision', Widget modalDecisionIcon = const Icon(Icons.rule_outlined), AdaptiveSize queueDockedAt = AdaptiveSize.medium, AdaptiveSize decisionDockedAt = AdaptiveSize.expanded, AdaptiveHeight minimumQueueDockedHeight = AdaptiveHeight.compact, AdaptiveHeight minimumDecisionDockedHeight = AdaptiveHeight.medium, bool useContainerConstraints = true, bool considerOrientation = false, int? selectedIndex, int initialIndex = 0, ValueChanged<int> ? onSelectedIndexChanged, double spacing = 16, double itemSpacing = 12, int queueFlex = 2, int reviewFlex = 4, int decisionFlex = 2, EdgeInsetsGeometry queuePadding = const EdgeInsets.all(16), EdgeInsetsGeometry reviewPadding = const EdgeInsets.all(16), EdgeInsetsGeometry decisionPadding = 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 review desk.
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
- considerOrientation → bool
-
Whether orientation should influence container-based breakpoint selection.
final
- decisionBuilder → Widget Function(BuildContext context, T item)
-
Builds the decision or notes panel for the selected item.
final
- decisionDescription → String?
-
Optional description shown below decisionTitle.
final
- decisionDockedAt → AdaptiveSize
-
Semantic size at which the decision panel should dock inline.
final
- decisionFlex → int
-
Flex used by the docked decision region.
final
- decisionLeading → Widget?
-
Optional leading widget shown beside decisionTitle.
final
- decisionPadding → EdgeInsetsGeometry
-
Padding applied inside the decision surface.
final
- decisionTitle → String
-
Title shown above the decision surface.
final
- emptyState → Widget?
-
Optional empty state shown when items is empty.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → Widget?
-
Optional header shown above the review surface.
final
- initialIndex → int
-
Initial selected item index for uncontrolled usage.
final
- itemBuilder → Widget Function(BuildContext context, T item, bool selected, VoidCallback onTap)
-
Builds an individual queue item.
final
-
items
→ List<
T> -
Review items shown in the queue.
final
- itemSpacing → double
-
Space between adjacent queue items.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- minimumDecisionDockedHeight → AdaptiveHeight
-
Minimum height class required before the decision panel can dock inline.
final
- minimumQueueDockedHeight → AdaptiveHeight
-
Minimum height class required before the queue can dock inline.
final
- modalDecisionIcon → Widget
-
Icon used by the compact decision trigger.
final
- modalDecisionLabel → String
-
Label used by the compact decision trigger.
final
- modalHeightFactor → double
-
Height factor used by compact modal sheets.
final
- modalQueueIcon → Widget
-
Icon used by the compact queue trigger.
final
- modalQueueLabel → String
-
Label used by the compact queue trigger.
final
-
onSelectedIndexChanged
→ ValueChanged<
int> ? -
Called when the selected item changes.
final
- queueDescription → String?
-
Optional description shown below queueTitle.
final
- queueDockedAt → AdaptiveSize
-
Semantic size at which the queue should dock inline.
final
- queueFlex → int
-
Flex used by the docked queue region.
final
- queueLeading → Widget?
-
Optional leading widget shown beside queueTitle.
final
- queuePadding → EdgeInsetsGeometry
-
Padding applied inside the queue surface.
final
- queueTitle → String
-
Title shown above the queue surface.
final
- reviewBuilder → Widget Function(BuildContext context, T item)
-
Builds the central review content for the selected item.
final
- reviewFlex → int
-
Flex used by the review region.
final
- reviewPadding → EdgeInsetsGeometry
-
Padding applied inside the review surface.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIndex → int?
-
Optional controlled selected item index.
final
- 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< AdaptiveReviewDesk< T> > -
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