widgets library

Stable high-level widget API for composable terminal UIs.

This library re-exports the stabilized widget surface from package:artisanal_widgets/widgets.dart.

Prefer the direct artisanal_widgets package when widget APIs are the main thing your app depends on. Use this umbrella entrypoint when you already want the broader Artisanal toolkit from a single package dependency.

Classes

AccentPanel
A panel with a colored vertical accent stripe on one side.
AccentPanelThemeData
Theme data for AccentPanel widgets.
Accordion
An expandable/collapsible section with a header.
ActionButton
A compact, styled button designed for use in dialog footers and inline prompt panels.
ActionChip
An actionable chip that invokes onPressed when activated.
AlertBox
Align
Alignment
AlwaysStoppedAnimation<T>
An Animation that is always stopped at a given value.
Animatable<T>
Transforms a double (typically from an Animation<double>) into a value of type T.
AnimatedBuilder
A general-purpose widget that rebuilds whenever a Listenable notifies.
AnimatedTint
A widget that applies an animated color tint over its child.
AnimatedWidgetBaseState<T extends ImplicitlyAnimatedWidget>
Base state class for ImplicitlyAnimatedWidget.
Animation<T>
An animation with a value of type T.
AnimationController
A TEA-native animation controller.
AnimationStyle
Configurable animation durations and curves for route transitions.
AnimationTickMsg
Message delivered on each animation frame tick.
AnimationTimeline
Small TEA-native animation sequencer built on top of AnimationController.
AnimationTimelineStep
Declarative step used by AnimationTimeline.
ArtisanalApp
A high-level root shell for artisanal widget applications.
AsciiFont
Abstract base class for ASCII art fonts.
AsciiGlyph
Represents a single ASCII art character glyph.
AsciiText
A widget that renders text using large ASCII art font glyphs.
AsyncSnapshot<T>
Badge
A compact label with colored background, used for status, priority, or tags.
BlockFocus
A widget that blocks keyboard events from reaching its children.
BorderRadius
BoxConstraints
Box constraints for layout.
BoxDecoration
An item in a breadcrumb navigation trail.
A horizontal breadcrumb trail showing navigation hierarchy.
Budgeted<W extends Widget>
Wraps child with an explicit budget-aware signal.
BuildContext
An opaque handle to location in the widget tree.
Builder
A widget that delegates its build to a callback.
Button
Flutter-style button widget for triggering callbacks.
Card
Center
ChangeNotifier
A Listenable implementation that stores listeners and can notify them.
Checkbox
CheckboxListTile
Flutter-style checkbox list tile.
CheckedPopupMenuItem<T>
A selectable menu entry with a check indicator.
Chip
A non-interactive chip with optional delete affordance.
ChoiceChip
A selectable chip that displays selected state via ButtonVariant.primary.
CircularProgressIndicator
Flutter-style circular progress indicator.
ClipRect
A widget that clips its child to its allocated size.
CodeEditor
A higher-level code editor built on top of TextEditor.
ColoredBox
A widget that fills its area with a single solid color.
Column
CommandPalette
A searchable, grouped list displayed in a modal overlay.
CommandPaletteItem
A single item in a CommandPalette.
CommandPaletteMatch
A scored command palette match with explainable evidence.
CommandPaletteThemeData
Theme data for CommandPalette widgets.
ConstantTween<T>
A tween that always returns the same constant value.
ConstrainedBox
Container
Cubic
A cubic Bezier curve defined by two control points.
Curve
A mapping of the unit interval to the unit interval.
Curves
A collection of common animation curves.
CurveTween
An Animatable that applies a Curve to the input value.
DataTable
A simple data table widget that renders tabular data with column headers, row separators, and optional theming.
DebugConsole
A scrollable developer console pane.
DebugConsoleController
Mutable controller for a debug console pane.
DebugConsoleEntry
One line in a DebugConsoleController.
DebugConsoleHost
Wraps a subtree with a toggleable debug console overlay.
DebugConsoleScope
Exposes a DebugConsoleController to descendant widgets.
DebugOverlay
A debug overlay that displays rendering metrics.
DecisionCard
A bordered card showing progressive-disclosure decision transparency.
DecisionData
Data for a DecisionCard.
DecisionDetails
Quantitative details for level-3 disclosure.
DecoratedBox
A widget that paints a Decoration either behind or in front of its child.
Decoration
DialogAlert
A simple alert dialog with a title, message, and OK button.
DialogConfirm
A simple yes/no confirmation dialog.
DialogPrompt
A dialog with a text input field.
DialogRoute<T>
A route that displays a modal dialog with an animated barrier.
DialogSelect<T>
A generic searchable, grouped selection list dialog.
DialogSelectItem<T>
A single item in a DialogSelect list.
DialogStack
Manages a stack of modal dialogs.
DialogStackState
State for DialogStack, providing the push/pop/replace/clear API.
DialogThemeData
Theme data for dialog widgets (DialogConfirm, DialogAlert, DialogPrompt, DialogSelect).
DiffCommentAnchor
A commentable position in the rendered diff.
DiffCommentBlock
A comment block to render inline in a GitDiffViewer at a specific renderLine position. The child widget is rendered as an additional row between diff lines, and height tells the viewer how many terminal rows it occupies so scroll metrics stay correct.
DiffCommentLineHighlight
A visual highlight request for a commentable diff line.
DiffCommentLineKey
Stable identity for a commentable line in a pull-request diff.
DiffFile
A file entry in a parsed diff.
DiffStyles
Configuration for diff styling.
Divider
DoubleTapGestureRecognizer
Recognizes double-tap gestures.
DoubleTween
An explicit double tween (mostly for documentation clarity).
DragEndDetails
Details for the end of a drag gesture.
DragGestureRecognizer
Recognizes drag gestures.
DragStartDetails
Details for the start of a drag gesture.
DragUpdateDetails
Details for a drag update event.
Drawer
A slide-out panel that overlays content from the left or right.
A button-styled dropdown that displays one DropdownMenuItem at a time.
A dropdown menu item for use with DropdownButton.
EdgeInsets
EditorThemeData
Theme data for editable text surfaces such as TextArea, TextEditor, CodeEditor, and MarkdownEditor.
ElasticInCurve
An elastic curve that overshoots and then oscillates at the start.
ElasticInOutCurve
An elastic curve that overshoots and oscillates at both ends.
ElasticOutCurve
An elastic curve that overshoots and then oscillates at the end.
ElevatedButton
Flutter-style elevated button wrapper.
ErrorThrowingWidget
A widget that deliberately throws during build.
EvidenceTerm
A single evidence term in a DecisionCard.
Expanded
ExpansionTile
Flutter-style expansion tile built on top of ListTile.
FadeModalBarrier
A modal barrier that fades in/out with an animated opacity.
FadeTint
A widget that fades a tint in or out over its child.
FileImage
An ImageProvider that loads an image from a file path.
FilePicker
FilledButton
Flutter-style filled button wrapper.
FilterChip
A multi-select chip with optional checkmark indicator.
Flex
Flexible
FlippedCurve
A curve that is the reverse of another curve.
Focusable
A widget that responds to keyboard input when focused.
FocusController
Controls which focusable widget is currently focused.
FocusScope
Provides a FocusController to descendants.
Frame
A container with optional padding, margin, background and border.
FutureBuilder<T>
GestureArenaManager
Manages gesture arenas for conflict resolution.
GestureDetector
GestureRecognizer
Abstract base class for all gesture recognizers.
GestureTimerHandle
Cancelable handle returned by a gesture timer factory.
GitDiffController
Controller for GitDiffViewer.
GitDiffModel
A git diff viewer bubble.
GitDiffThemeData
Theme data for GitDiffViewer widgets.
GitDiffViewer
A widget for viewing git diffs with syntax highlighting and scrolling.
Gradient
HBox
HelpView
A widget-side help view for rendering KeyMap bindings.
HistoryEntry
A single entry in the undo/redo history.
HistoryPanel
A panel that displays undo/redo command history with a position marker.
HitTestEntry
A single entry in a HitTestResult, linking a render object to the local coordinates at which it was hit.
HitTestResult
Accumulated result of a hit test, ordered deepest-first.
HyperlinkText
A text widget that renders as a clickable hyperlink using OSC 8 escape sequences in terminals that support them.
Icon
IconButton
Flutter-style icon button wrapper.
IconData
Icons
IgnorePointer
A widget that is invisible to hit-testing.
Image
A widget that displays an image in the terminal.
ImageData
Data class holding a decoded image.
ImageProvider
Abstract base class for providing images to the Image widget.
ImplicitlyAnimatedWidget
Abstract base class for widgets that implicitly animate when their properties change.
InheritedWidget
A widget that exposes data to descendants.
InputChip
Flutter-style input chip.
InteractiveSlotRegion<TSlot extends Object, TData>
Interactive wrapper for SlotRegion that forwards remote input.
Interval
An interval that starts and/or ends at a fractional point along the curve.
IntTween
A tween that interpolates between two integers.
Key
A Key is an identifier for Widgets.
KeyBinding
A key binding that maps keys to actions with optional help text.
KeyboardListener
A widget that calls a callback when a key is pressed.
KeyHint
A small widget that displays a keyboard shortcut key and its label.
KeyMap
A collection of key bindings forming a key map.
Label
LayoutBuilder
A widget that provides its parent's constraints to a builder callback.
LimitedBox
A box that limits its size only when it's unconstrained.
LinearProgressIndicator
Flutter-style linear progress indicator.
Listenable
An object that maintains a list of listeners.
ListenableBuilder
A widget that rebuilds when a Listenable changes.
ListRowThemeData
Theme data for list-like rows with a highlighted/selected state.
ListTile
A single row in a Material-style list with optional leading/trailing controls.
ListView
ListViewController
Controller for scroll position in VirtualListView.
LocalKey
A key that is scoped to local widget identity only.
LoggingNavigatorObserver
A NavigatorObserver that logs navigation events to the console.
LongPressEndDetails
Details for the end of a long-press gesture.
LongPressGestureRecognizer
Recognizes long-press gestures.
LongPressStartDetails
Details for the start of a long-press gesture.
MarkdownEditor
A higher-level Markdown editor with a live rendered preview.
MarkdownText
A widget that renders Markdown content as styled ANSI text.
MediaQuery
MediaQueryData
MemoryImage
An ImageProvider that loads an image from raw bytes.
MetricDisplay
A single-value metric display widget.
ModalRoute<T>
A modal overlay route with an optional barrier.
MouseRegion
A widget that manages a stack of Route objects.
An interface for observing the behavior of a Navigator.
State for Navigator, providing route stack management.
NetworkImage
An ImageProvider that loads an image from an HTTP(S) URL.
Offset
An offset in terminal cell units (column, row).
Opacity
OpenCodeThemes
All 33 OpenCode themes, ported from the official JSON definitions.
OutlinedButton
Flutter-style outlined button wrapper.
OverflowBox
A widget that imposes different constraints on its child than it gets from its parent, possibly allowing the child to overflow the parent.
Overlay
A widget that manages a stack of OverlayEntry objects.
OverlayEntry
An entry in an Overlay.
OverlayState
State for Overlay, providing methods to insert and remove entries.
Padding
PageRoute<T>
A full-screen page route.
Pagination
A page navigation control with prev/next buttons.
PanelBox
A panel with an optional title bar and action buttons.
PerformanceOverlay
A simpler variant of DebugOverlay that only shows render timing.
PopBehavior
Configuration for how a Navigator handles pop requests via keyboard.
PopupMenuButton<T>
Flutter-style popup menu button.
PopupMenuDivider<T>
A non-selectable divider entry for PopupMenuButton.
PopupMenuEntry<T>
Base class for entries used in PopupMenuButton.
PopupMenuItem<T>
A selectable menu entry for PopupMenuButton.
Positioned
ProgressIndicator
PromptFooterBar
A footer bar for inline prompt panels and dialog bottoms.
ProxyAnimation
An Animation that proxies another animation.
Radio<T>
RadioListTile<T>
Flutter-style radio list tile.
RangeSlider
Flutter-style range slider for selecting a start/end interval.
RangeValues
An immutable pair of values used by RangeSlider.
Rect
A rectangle defined by offset + size, in terminal cell units.
ReloadController
Controller for development-time subtree reloads.
ReloadHost
Rebuildable host for development-time reloads.
ReloadScope
Exposes a ReloadController to descendant widgets.
ReloadSignal
One reload signal emitted by ReloadController.
RemotePluginSurfaceView
Renders a remote plugin surface into a widget subtree.
RenderAlign
RenderConstrainedBox
RenderContainer
RenderIgnorePointer
A render object that never reports a hit, causing hit-testing to skip its subtree and continue to siblings in the parent's child list.
RenderListViewport
Render object backing VirtualListView.
RenderListViewScrollViewport
Render object for _ListViewViewport.
RenderMetricsHolder
Mutable holder for RenderMetrics that WidgetApp updates in-place.
RenderMetricsInjection
A portable render-metrics update payload.
RenderMetricsInjector
Global bus for injecting render metrics from anywhere.
RenderMetricsProgramMonitor
Program interceptor that forwards render-monitor aggregates into overlays.
RenderMetricsProvider
Provides RenderMetricsHolder to the widget tree via InheritedWidget.
RenderPadding
RenderScrollbar
Render object that draws a vertical scrollbar next to or over child content.
RenderSingleChildViewport
Render object for _SingleChildViewport.
RenderSizedBox
RenderStack
RenderViewport
Render object backing Viewport.
RenderWrap
ReplayEventHistoryBrowser
ReplayEventHistoryPanel
ReplayEventHistoryState
ReplayEventPanel
ResolvedSlotContribution<TSlot extends Object, TData>
One resolved slot contribution in deterministic render order.
ReverseTween<T>
A tween that evaluates another tween in reverse.
RichText
A widget that displays styled text using a TextSpan tree.
Route<T>
Abstract base class for routes managed by a Navigator.
RouteSettings
Immutable route metadata.
Row
SawTooth
A sawtooth curve that repeats count times over the unit interval.
ScrollArea
A convenience widget that wraps SingleChildScrollView with optional sizing and an optional Scrollbar.
Scrollbar
A scrollbar that decorates a scrollable child.
ScrollbarGradient
A vertical gradient for scrollbar tracks or thumbs.
ScrollController
Scroll controller interface for scrollable widgets.
ScrollView
A scrollable container for a single child widget.
Select<T>
A button-style dropdown selector that cycles through options.
SelectableTextAreaView
A read-only selectable view of a TextAreaController.
SelectableTextFieldView
A read-only selectable view of a TextEditingController.
SelectOption<T>
An option for use with Select or DropdownButton.
ShrinkWrap
A fixed-width sidebar adjacent to the main content.
SingleChildScrollView
A scrollable container for a single child widget.
Size
Size in terminal cell units.
SizedBox
SizedOverflowBox
A widget that is a specific size but passes its original constraints through to its child, which may then overflow.
Slider
Flutter-style slider for selecting a single value.
SlotBuilder<TSlot extends Object, TData>
Resolves and renders contributions for one slot.
SlotPlugin<TSlot extends Object, TData>
Declarative registration for one in-process widget plugin.
SlotPluginContribution<TData>
One contribution declared by an in-process slot plugin.
SlotPluginMount<TSlot extends Object, TData>
Declaratively mounts a SlotPlugin into the nearest SlotScope.
SlotRegion<TSlot extends Object, TData>
Resolves local slot plugins plus remote slot surfaces for one region.
SlotRegistry<TSlot extends Object, TData>
Mutable in-process registry of typed slot contributions.
SlotScope<TSlot extends Object, TData>
Exposes a SlotRegistry to descendant widgets and rebuilds them when the registry contents change.
Spacer
Spinner
A spinner animation definition.
SpinnerController
A ValueNotifier that cycles through Spinner.frames on a periodic timer.
SpinnerIndicator
An animated spinner indicator for loading states.
Spinners
Pre-defined spinner animations.
SplitView
A two-pane view that arranges children along an axis.
Stack
StackParentData
StandardFont
Standard ASCII art font - 5 lines high, clean block style.
State<T extends StatefulWidget>
Mutable state for a StatefulWidget.
StatefulWidget
A widget with mutable state managed by a State object.
StatelessWidget
A widget with a build method and no mutable state.
StaticWidget
A simple widget that wraps a static string or View.
StatusBar
A horizontal bar that displays a row of KeyHint items.
StatusBarThemeData
Theme data for StatusBar widgets.
StatusItem
A typed item that can be displayed in a StatusLine.
StatusLine
A horizontal status bar with left, center, and right regions.
StepIndicator
A step-by-step progress indicator widget.
StepItem
A single step in a StepIndicator.
StepTween
A tween that floors the interpolated value to an integer.
StreamBuilder<T>
StyledAsciiText
A convenience wrapper that applies a Style to AsciiText.
Switch
SwitchListTile
Flutter-style switch list tile.
TabItem
A tab item for use with Tabs.
Tabs
A horizontal tab bar for switching between views.
TapDownDetails
Details for a tap-down event.
TapGestureRecognizer
Recognizes single-tap gestures.
TapUpDetails
Details for a tap-up event.
Text
TextArea
A multi-line text editor widget powered by the bubbles textarea model.
TextAreaController
Controls the state of a TextArea.
TextButton
Flutter-style text button wrapper.
TextDecorationLayerBinding
Keeps one named range-decoration layer in sync with a text controller.
TextDiagnosticsBinding
Keeps a TextAreaController's diagnostics in sync with its current text.
TextEditingController
Controls the state of a TextField.
TextEditingValue
The current state of a text field.
TextEditor
A higher-level editor surface built on top of TextArea.
TextField
A text input widget supporting single-line and multi-line editing.
TextLineDecorationLayerBinding
Keeps one named whole-line decoration layer in sync with a text controller.
TextPositionDiagnosticsSource
Produces positional diagnostics from a listenable text source.
TextSelection
Range of text that is selected.
TextSpan
Theme
Theme containing semantic colors, text styles, and component themes.
ThemeScope
Provides a theme to descendant widgets via the build context.
Threshold
A curve that jumps from 0.0 to 1.0 when t passes threshold.
TimelineDelayMsg
Message emitted by AnimationTimeline delay steps.
Tint
A widget that applies a color tint over its child.
Toast
Tooltip
A hover-triggered message bubble for a child widget.
Transform
A widget that applies spatial transformations to its child.
TreeView
A hierarchical tree view widget.
TreeViewNode
A node in a TreeView widget.
TUIErrorWidget
A widget that displays an error message with red styling.
Tween<T extends dynamic>
A linear interpolation between a begin and end value.
TweenSequence<T>
An Animatable that chains multiple tweens end-to-end with proportional durations.
TweenSequenceItem<T>
A single entry in a TweenSequence.
UniqueKey
A key that is only equal to itself.
ValueKey<T>
A key that uses a value of a particular type to identify itself.
ValueListenable<T>
A Listenable that exposes a current value.
ValueListenableBuilder<T>
A widget that rebuilds when a ValueListenable changes its value.
ValueNotifier<T>
A ChangeNotifier that holds a single value and notifies when it changes.
VBox
VerticalDivider
A vertical line divider.
Viewport
A string-backed scrollable viewport powered by ViewportModel.
ViewportController
Controller for Viewport.
VirtualListView
A render-object driven list view that only paints visible items.
Visibility
Widget
Base class for composable TUI widgets.
WidgetApp
Runs a widget tree using an element hierarchy.
WidgetDegradationSignal
Signal controlling widget visibility under degradation.
WidgetScrollController
A simple ScrollController for use with SingleChildScrollView, ScrollView, and ListView.
Wizard
WizardFormStep
Wrap
Zone
ZoneInBoundsMsg
Message sent when a zone is within bounds of a mouse event.

Enums

AccentSide
The side on which the accent stripe is drawn.
AlertVariant
AnimationStatus
The status of an animation.
AsyncConnectionState
Axis
BoxFit
How an image should be inscribed into a box.
ButtonSize
Size variants for Button.
ButtonVariant
Visual style variants for Button.
CrossAxisAlignment
DataTableBorderStyle
Border style for DataTable.
DebugOverlayPosition
Position options for the debug overlay.
DecisionSignal
Signal level for a DecisionCard.
DecorationPosition
Where to paint a decoration relative to the child.
DiffCommentKind
The kind of diff line represented by a DiffCommentAnchor.
DiffCommentLineHighlightKind
The visual role of a commentable diff line.
DiffCommentSide
Which side of a pull-request diff a commentable line belongs to.
DiffViewMode
The display mode for the diff viewer.
DisclosureLevel
Progressive-disclosure level for a DecisionCard.
EvidenceDirection
Direction of an evidence term.
FlexFit
GestureDisposition
The final disposition of a recognizer in the arena.
GestureRecognizerState
The lifecycle state of a gesture recognizer.
HistoryPanelMode
Display mode for HistoryPanel.
HitTestBehavior
Controls how a widget behaves during hit testing.
ImageAutoMode
Controls how ImageRenderMode.auto chooses a rendering backend.
ImageRenderMode
Preferred rendering backend for the Image widget.
ListTileControlAffinity
Position of the control in list-tile-style rows.
MainAxisAlignment
MainAxisSize
MetricTrend
Trend direction for a MetricDisplay.
Overflow
ProgressLabelPosition
Where to display the percentage label relative to the bar.
ProgressStyle
Predefined fill/track character sets for ProgressIndicator.
ReloadMode
The kind of reload requested through ReloadController.
ReplayEventHistoryFilter
ReplayEventHistoryMode
RoutePopDisposition
Indicates whether the current route should be popped.
SidebarSide
Placement side for the sidebar content.
SlotBuildMode
How SlotBuilder should compose multiple contributions by default.
StackFit
StepStatus
Status of a single step in a StepIndicator.
TextAlign
TextOverflow
ThemeMode
Controls how ArtisanalApp resolves its shell theme.
TimelineDirection
Playback direction for an AnimationTimeline.
TooltipPosition
Preferred position for tooltip placement relative to its child.
WidgetDegradationPriority
Priority values used by the render-budget engine when deciding which widgets to retain during a degraded frame.
WrapAlignment
WrapCrossAlignment

Mixins

AnimationMixin<T extends StatefulWidget>
Mixin for State classes that host one or more AnimationControllers.
FocusableWidget
Mixin for widgets that need to track focus state.

Extensions

ThemeContext on BuildContext
Convenience accessors for theme lookup on BuildContext.

Properties

currentTheme Theme
Returns the current global theme.
no setter
hasDarkBackground bool
Whether the terminal has a dark background.
no setter

Functions

bestPopupAnchorRenderObject(Element host, RenderObject root) → RenderObject
Returns the render object to use as the anchor for a popup menu.
colorToUvColor(Color? color) UvColor?
constrainContent(String content, {int? width, int? height}) String
copyStyle(Style? base) Style
Copies base (or a fresh Style) and sets Style.hasDarkBackground to the current terminal background state.
defaultGestureTimerFactory(Duration delay, void callback()) GestureTimerHandle
Default timer factory backed by dart:async Timer.
drawStyledContent(Canvas canvas, String content, int startX, int startY, UvStyle bgStyle, {bool transparent = false, int? contentWidth, int? contentHeight}) → void
hasUnsupportedPlainContainerControls(String text) bool
horizontalFromAlignment(Alignment alignment) HorizontalAlign
keyToIdOrFallback(Key? key, Object fallback) String
Returns a stable string ID for a possibly-null key.
needsPlainContainerCanvasComposition(String content) bool
offsetForHorizontal(HorizontalAlign align, int containerWidth, int childWidth) int
offsetForVertical(VerticalAlign align, int containerHeight, int childHeight) int
padToStackSize(String content, int targetWidth, int targetHeight) String
padToWidth(String content, int targetWidth, int targetHeight) String
renderColoredContent(String content, Color color) String
renderContainerContent({required String contentStr, EdgeInsets? padding, EdgeInsets? margin, num? width, num? height, Color? background, Color? foreground, Color? color, Decoration? decoration, Decoration? foregroundDecoration, Alignment? alignment, HorizontalAlign align = HorizontalAlign.left, VerticalAlign verticalAlign = VerticalAlign.top}) String
renderPlainContainerContent({required String content, required int contentHeight, required int targetWidth, required int targetHeight, required int marginLeft, required int marginTop, required int padLeft, required int padTop, required int alignedX, required int alignedY}) String
renderSpan(TextSpan span, Style? baseStyle) String
renderWidget(Widget widget) String
resolveDimension(num? value) int?
resolveDimensionDouble(num? value) double?
roundClamp(num value) int
setHasDarkBackground(bool value) → void
Updates the dark background state.
setTheme(Theme theme) → void
Sets the global theme.
shortHash(Object? object) String
Short 5-hex hash for diagnostics.
showDialog<T>({required BuildContext context, required RouteWidgetBuilder builder, bool barrierDismissible = true, Color? barrierColor, String? barrierLabel, bool useSafeArea = true, Alignment alignment = Alignment.center, num? width, num? height, RouteSettings? routeSettings, AnimationStyle? animationStyle}) Future<T?>
Shows a material design dialog.
textAreaStylesFromTheme(Theme theme) TextAreaStyles
updateThemeFromBackground(String? hex) → void
Updates theme based on background hex color (e.g., '#1a1a1a').
verticalFromAlignment(Alignment alignment) VerticalAlign
viewToString(Object v) String
withImageAutoCapabilities<T>(TerminalCapabilities capabilities, T callback()) → T
withImageAutoConfiguration<T>({required ImageAutoMode mode, TerminalCapabilities? capabilities, int? cellPixelWidth, int? cellPixelHeight, required T callback()}) → T
withImageAutoMode<T>(ImageAutoMode mode, T callback()) → T

Typedefs

AnimationStatusListener = void Function(AnimationStatus status)
Signature for callbacks that receive AnimationStatus changes.
AsyncWidgetBuilder<T> = Widget Function(BuildContext context, AsyncSnapshot<T> snapshot)
CmdCallback = Cmd? Function()
Callback that may return a command.
FocusChangedCallback = void Function(bool focused)
FocusKeyCallback = Cmd? Function(KeyMsg msg)
FocusListener = void Function()
GestureDoubleTapCallback = Cmd? Function()
Callback for double-tap events.
GestureDragEndCallback = Cmd? Function(DragEndDetails details)
Callback for the end of a drag gesture.
GestureDragStartCallback = Cmd? Function(DragStartDetails details)
Callback for the start of a drag gesture.
GestureDragUpdateCallback = Cmd? Function(DragUpdateDetails details)
Callback for drag update events.
GestureLongPressCallback = Cmd? Function()
Callback for long-press events.
GestureLongPressEndCallback = Cmd? Function(LongPressEndDetails details)
Callback for the end of a long-press gesture.
GestureLongPressStartCallback = Cmd? Function(LongPressStartDetails details)
Callback for the start of a long-press gesture.
GestureTapCallback = Cmd? Function()
Callback for simple tap events (press + release within slop).
GestureTapCancelCallback = Cmd? Function()
Callback for tap cancellation (pointer moved beyond slop).
GestureTapDownCallback = Cmd? Function(TapDownDetails details)
Callback for tap-down events with position and modifier details.
GestureTapUpCallback = Cmd? Function(TapUpDetails details)
Callback for tap-up events with position details.
GestureTimerFactory = GestureTimerHandle Function(Duration delay, void callback())
Factory used by gesture recognizers to schedule time-based transitions.
GestureWheelCallback = Cmd? Function(MouseMsg msg)
Callback for mouse wheel events (passes through raw MouseMsg).
IndexedSeparatorBuilder = Widget Function(BuildContext context, int index)
IndexedWidgetBuilder = Widget Function(BuildContext context, int index)
A scrollable list of child widgets.
MarkdownLinkTapCallback = Cmd? Function(String url)
MouseEnterCallback = Cmd? Function(MouseMsg msg)
Callback for mouse enter events.
MouseExitCallback = Cmd? Function(MouseMsg msg)
Callback for mouse exit events.
ReloadWidgetBuilder = Widget Function(BuildContext context, int revision)
Builder used by ReloadHost.
RemoteSlotEntryBuilder = Widget Function(BuildContext context, RemotePluginSlotEntry entry)
Builds a remote surface widget for one resolved slot entry.
RouteFactory = Route? Function(RouteSettings settings)
A factory function that creates a route from settings.
RouteWidgetBuilder = Widget Function(BuildContext context)
A builder that creates a widget for a route.
SlotLayoutBuilder<TSlot extends Object, TData> = Widget Function(BuildContext context, List<ResolvedSlotContribution<TSlot, TData>> contributions, TData data)
Builds the composed widget tree for a resolved slot.
SlotRegionLayoutBuilder<TSlot extends Object, TData> = Widget Function(BuildContext context, List<ResolvedSlotContribution<TSlot, TData>> localContributions, List<RemotePluginSlotEntry> remoteEntries, TData data)
Builds the composed widget tree for one mixed local/remote slot region.
SlotWidgetBuilder<TData> = Widget Function(BuildContext context, TData data)
Builds one widget contribution for a typed slot payload.
TextChangedCallback = void Function(String value)
Signature for text change notifications from TextField.
TextDecorationLayerBuilder = Iterable<TextDecorationRange> Function(String text)
Builds range decorations from plain text.
TextDiagnosticsBuilder = Iterable<TextPositionDiagnosticRange> Function(String text)
Builds positional diagnostics from plain text.
TextFieldController = TextEditingController
Alias for TextEditingController for backward compatibility.
TextLineDecorationLayerBuilder = Iterable<TextLineDecoration> Function(String text)
Builds whole-line decorations from plain text.
TextPositionDiagnosticsBuilder = Iterable<TextPositionDiagnosticRange> Function(String text)
Builds positional diagnostics from plain text.
TimelineStepBuilder = AnimationTimelineStep Function(int index, AnimationController controller)
Builds one timeline step for a staged controller choreography.
TimelineStepCallback = Cmd? Function(TimelineDirection direction)
Invoked by AnimationTimelineStep.callback.
TweenConstructor = Tween Function(dynamic value)
Callback type for constructing a new Tween from a target value.
TweenVisitor = Tween? Function(Tween? tween, dynamic targetValue, TweenConstructor constructor)
Callback type for visiting tweens in AnimatedWidgetBaseState.forEachTween.
ValueCmdCallback<T> = Cmd? Function(T value)
Callback that receives a value and may return a command.
VoidCallback = void Function()
WizardValidateFunc = String? Function(String value)

Exceptions / Errors

FlutterError
Simple error class for widget framework errors.