stac_core library
Pure-Dart entry point for Stac screens.
Use this import in files annotated with @StacScreen to ensure they
can be processed by the Stac CLI without requiring the Flutter SDK.
Classes
- StacAction
- Base class for all Stac actions that can be performed on widgets.
- StacAlertDialog
- A Stac model representing Flutter's AlertDialog widget.
- StacAlign
- A Stac model representing Flutter's Align widget.
- StacAlignmentGeometry
- A Stac representation of Flutter's AlignmentGeometry class.
- StacAppBar
- A Stac model representing Flutter's AppBar widget.
- StacAppBarTheme
- A Stac model representing Flutter's AppBarTheme.
- StacAspectRatio
- A Stac model representing Flutter's AspectRatio widget.
- StacAutoComplete
- A Stac model representing Flutter's Autocomplete widget.
- StacBackdropFilter
- A Stac model representing Flutter's BackdropFilter widget.
- StacBadge
- A Stac model representing Flutter's Badge widget.
- StacBeveledRectangleBorder
- A Stac model representing Flutter's BeveledRectangleBorder.
- StacBorder
- A Stac representation of borders for UI elements.
- StacBorderRadius
- A Stac representation of border radius for rounded corners.
- StacBorderSide
- A Stac representation of a single border side.
- StacBottomAppBarThemeData
- A Stac model representing Flutter's BottomAppBarTheme.
- A Stac model representing Flutter's BottomNavigationBarThemeData.
- A Stac model representing Flutter's BottomNavigationBar.
- A Stac model representing a Flutter BottomNavigationBarItem.
- A Stac model representing a custom Bottom Navigation view container.
- StacBottomSheetThemeData
- A Stac model representing Flutter's BottomSheetThemeData.
- StacBoxConstraints
- A Stac representation of box constraints for layout sizing.
- StacBoxDecoration
- A Stac representation of box decoration for styling containers.
- StacBoxShadow
- A Stac representation of box shadows for visual depth effects.
- StacButtonStyle
- A Stac model representing Flutter's ButtonStyle.
- StacButtonThemeData
- A Stac model representing Flutter's ButtonThemeData.
- StacCard
- A Stac model representing Flutter's Card widget.
- StacCardThemeData
- A Stac model representing Flutter's CardThemeData.
- StacCarouselView
- A Stac model representing Flutter's CarouselView widget.
- StacCenter
- A Stac model representing Flutter's Center widget.
- StacCheckBox
- A Stac model representing Flutter's Checkbox widget.
- StacCheckboxThemeData
- A Stac model representing Flutter's CheckboxThemeData.
- StacChip
- A Stac model representing Flutter's Chip widget.
- StacChipThemeData
- A Stac model representing Flutter's ChipThemeData.
- StacCircleAvatar
- A Stac model representing Flutter's CircleAvatar widget.
- StacCircleBorder
- A Stac model representing Flutter's CircleBorder.
- StacCircularProgressIndicator
- A Stac model representing Flutter's CircularProgressIndicator widget.
- StacClipOval
- A Stac model representing Flutter's ClipOval widget.
- StacClipRRect
- A Stac model representing Flutter's ClipRRect widget.
- StacColoredBox
- A Stac model representing Flutter's ColoredBox widget.
- StacColors
- A collection of predefined colors for the Stac framework.
- StacColorScheme
- A Stac model representing Flutter's ColorScheme.
- StacColumn
- A Stac model representing Flutter's Column widget.
- StacConditional
- A Stac model representing a conditional widget.
- StacContainer
- A Stac model representing Flutter's Container widget.
- StacContinuousRectangleBorder
- A Stac model representing Flutter's ContinuousRectangleBorder.
- StacCupertinoIcons
- StacCustomScrollView
- A Stac model representing Flutter's CustomScrollView.
- StacCustomTextStyle
-
A custom text style similar to Flutter's
TextStyle. - StacDatePickerThemeData
- A Stac model representing Flutter's DatePickerThemeData.
- StacDecorationImage
- An image to use as decoration in a box decoration.
- A Stac model representing Flutter's DefaultTabController widget for bottom navigation.
- StacDefaultTabController
- A Stac model representing Flutter's DefaultTabController widget.
- StacDelayAction
- Simple delay action that waits for a number of milliseconds.
- StacDialogAction
- Core model for the "showDialog" action.
- StacDialogTheme
- A Stac model representing Flutter's DialogTheme.
- StacDialogThemeData
- A Stac model representing Flutter's DialogThemeData.
- StacDivider
- A Stac model representing Flutter's Divider widget.
- StacDividerThemeData
- A Stac model representing Flutter's DividerThemeData.
- StacDrawer
- A Stac model representing Flutter's Drawer widget.
- StacDrawerThemeData
- A Stac model representing Flutter's DrawerThemeData.
- StacDropdownMenu
- A Stac model representing Flutter's DropdownMenu widget.
- StacDropdownMenuEntry
- Configuration for a single entry in a DropdownMenu.
- StacDuration
- A Stac model representing Flutter's Duration class.
- StacDynamicView
- A Stac model for dynamically fetching data and rendering it using a template.
- StacEdgeInsets
- A Stac representation of edge insets for padding and margins.
- StacElement
- Base interface for all STAC elements that can be serialized to JSON
- StacElevatedButton
- A Stac model representing Flutter's ElevatedButton widget.
- StacExpanded
- A Stac model representing Flutter's Expanded widget.
- StacFilledButton
- A Stac model representing Flutter's FilledButton widget.
- StacFittedBox
- A Stac widget that scales and positions its child within itself.
- StacFlexible
- A Stac model representing Flutter's Flexible widget.
- StacFloatingActionButton
- A Stac model representing Flutter's FloatingActionButton widget.
- StacFloatingActionButtonThemeData
- A Stac model representing Flutter's FloatingActionButtonThemeData.
- StacForm
- A Stac model representing a form scope used to coordinate input fields and actions.
- StacFormFieldValidator
- A Stac model representing a declarative form field validator.
- StacFormValidate
- A Stac action that validates form data and executes conditional actions.
- StacFractionallySizedBox
- A Stac widget that sizes its child to a fraction of the available space.
- StacGestureDetector
- A Stac model for a widget that detects gestures.
- StacGetFormValue
- A Stac action that retrieves the value of a specific form field.
- StacGradient
- A Stac representation of gradients for visual effects.
- StacGridView
- A Stac model representing Flutter's GridView widget.
- StacHero
- A Stac model representing Flutter's Hero widget.
- StacIcon
- A Stac model representing Flutter's Icon widget.
- StacIconButton
- A Stac model representing Flutter's IconButton widget.
- StacIcons
- String constants for icon names usable in Stac JSON. Generated from icon_utils.dart to avoid hardcoded strings.
- StacIconThemeData
- A Stac model representing Flutter's IconThemeData.
- StacImage
- A Stac widget that displays an image.
- StacImageFilter
- A Stac model representing Flutter's ImageFilter.
- StacInkWell
- A Stac model representing Flutter's InkWell widget.
- StacInputBorder
- A Stac model for Flutter input borders.
- StacInputDecoration
- Stac model that represents Flutter's InputDecoration.
- StacInputDecorationTheme
- A Stac representation of input decoration theme properties.
- StacInputFormatter
- A Stac model representing a text input formatter rule.
- StacLimitedBox
- A Stac model representing Flutter's LimitedBox widget.
- StacLinearProgressIndicator
- A Stac model representing Flutter's LinearProgressIndicator widget.
- StacListTile
- A Stac model for a fixed-height row that typically contains text, a leading or trailing icon, or other widgets. This model corresponds to Flutter's ListTile widget.
- StacListTileThemeData
- A Stac model representing Flutter's ListTileThemeData.
- StacListView
- A Stac model representing Flutter's ListView.separated widget.
- StacMaterialBannerThemeData
- A Stac model representing Flutter's MaterialBannerThemeData.
- StacMaterialColor
- A Stac model representing Flutter's MaterialColor.
- StacModalBottomSheetAction
- Core model for the "showModalBottomSheet" action.
- StacMultiAction
- Executes multiple actions sequentially or concurrently.
- A Stac action that performs navigation operations.
- A Stac model representing Flutter's NavigationBarThemeData.
- A Stac model representing Flutter's NavigationDrawerThemeData.
- Ergonomic navigation API for Stac.
- StacNetworkRequest
- A Stac action that performs HTTP network requests.
- StacNetworkResult
- A conditional result that maps HTTP status codes to actions.
- StacNetworkWidget
- A Stac model representing a network-driven widget.
- StacOffset
- A Stac representation of a 2D offset (displacement).
- StacOpacity
- A Stac model representing Flutter's Opacity widget.
- StacOptions
- Immutable configuration for Stac projects and exports.
- StacOutlinedButton
- A Stac model representing Flutter's OutlinedButton widget.
- StacPadding
- A Stac widget that adds padding around its child.
- StacPageView
- A Stac model representing Flutter's PageView widget.
- StacPlaceholder
- A Stac model representing Flutter's Placeholder widget.
- StacPositioned
- A Stac widget that controls where a child of a Stack is positioned.
- StacRadio
- A Stac model representing Flutter's Radio and CupertinoRadio widgets.
- StacRadioGroup
- A Stac model representing a radio group scope similar to Flutter's form scope.
- StacRect
- A Stac representation of rectangles for geometric operations.
- StacRectTween
- A Stac model representing a rectangle tween used by Hero.
- StacRefreshIndicator
- A Stac model representing Flutter's RefreshIndicator widget.
- StacRoundedRectangleBorder
- A Stac model representing Flutter's RoundedRectangleBorder.
- StacRow
- A Stac widget that displays its children in a horizontal array.
- StacSafeArea
- A Stac model representing Flutter's SafeArea widget.
- StacScaffold
- A Stac widget that implements the basic material design visual layout structure.
- StacScreen
- Annotation to mark methods that return StacWidget instances.
- StacScrollbarThemeData
- A Stac model representing Flutter's ScrollbarThemeData.
- StacSelectableText
- A widget that displays a string of text with a single style.
- StacSetValue
- A Stac widget that sets values in the application state.
- StacSetValueAction
- A Stac action that sets or updates values in state.
- StacShadow
- A Stac representation of shadows for visual effects.
- StacShapeBorder
- Abstract base class for Stac shape borders.
- StacSingleChildScrollView
- A Stac model for a box in which a single widget can be scrolled.
- StacSize
- A Stac representation of a 2D size with width and height.
- StacSizedBox
- A Stac model representing Flutter's SizedBox widget.
- StacSlider
- A Stac model representing Flutter's Slider widget.
- StacSliverAppBar
- A Stac model representing Flutter's SliverAppBar widget.
- StacSliverFillRemaining
- A Stac model representing Flutter's SliverFillRemaining widget.
- StacSliverGrid
- A Stac model representing Flutter's SliverGrid widget.
- StacSliverList
- A Stac model representing Flutter's SliverList widget.
- StacSliverOpacity
- A Stac model representing Flutter's SliverOpacity widget.
- StacSliverPadding
- A Stac model representing Flutter's SliverPadding widget.
- StacSliverSafeArea
- A Stac model representing Flutter's SliverSafeArea widget.
- StacSliverToBoxAdapter
- A Stac model representing Flutter's SliverToBoxAdapter widget.
- StacSliverVisibility
- A Stac model representing Flutter's SliverVisibility widget.
- StacSnackBar
- Core model for the SnackBar action.
- StacSnackBarAction
- Action button configuration for a SnackBar.
- StacSnackBarThemeData
- A Stac model representing Flutter's SnackBarThemeData.
- StacSpacer
- A Stac model representing Flutter's Spacer widget.
- StacStack
- A Stac model representing Flutter's Stack widget.
- StacSwitch
- A Stac model representing Flutter's Switch and CupertinoSwitch widgets.
- StacSystemUIOverlayStyle
- A Stac representation of system UI overlay styling.
- StacTab
- A Stac model representing Flutter's Tab widget.
- StacTabBar
- A Stac model representing Flutter's TabBar widget.
- StacTabBarThemeData
- A Stac model representing Flutter's TabBarTheme.
- StacTabBarView
- A Stac model representing Flutter's TabBarView widget.
- StacTable
- A Stac model representing Flutter's Table widget.
- StacTableBorder
-
A Stac model describing the border to paint around a
Table. - StacTableCell
- A Stac model representing Flutter's TableCell widget.
- StacTableColumnWidth
- Configuration describing a single column's width behavior.
- StacTableRow
-
A single row in a
Table. - StacText
-
A Stac model representing Flutter's Text widget (and
Text.rich). - StacTextButton
- A Stac model representing Flutter's TextButton widget.
- StacTextField
- A Stac model representing Flutter's TextField widget.
- StacTextFormField
- A Stac model representing Flutter's TextFormField widget.
- StacTextSpan
- A Stac representation of an immutable span of text.
- StacTextStyle
- Base interface for text styles.
- StacTextTheme
- A Stac model representing Flutter's TextTheme.
- StacTheme
- A Stac model representing Flutter's ThemeData.
- StacThemeData
- A utility class providing access to Material text theme styles.
- StacThemeRef
- Annotation to mark methods that return theme definitions.
- StacThemeTextStyle
-
A text style that references a style from
ThemeData.textTheme. - StacThemeTextStyles
- Base interface for text styles.
- StacTooltip
- A Stac model representing Flutter's Tooltip widget.
- StacTooltipThemeData
- A Stac model representing Flutter's TooltipThemeData.
- StacVerticalDivider
- A Stac model representing Flutter's VerticalDivider widget.
- StacVisibility
- A Stac model representing Flutter's Visibility widget.
- StacVisualDensity
- A Stac model representing Flutter's VisualDensity class.
- StacWidget
- Base class for all STAC widgets This is a concrete implementation that can hold raw JSON data, used primarily by JSON converters for deserialization
- StacWrap
- A Stac model representing Flutter's Wrap widget.
Enums
- ActionType
- Enumeration of all supported action types in the Stac framework.
- Method
- HTTP methods for StacNetworkRequest.
- Navigation styles supported by StacNavigateAction.
- StacAlignment
- Fixed alignment options that do not adapt to text direction.
- StacAlignmentDirectional
- Directional alignment options that adapt to text direction.
- StacAutovalidateMode
- Mirrors Flutter's AutovalidateMode for form fields.
- StacAxis
- Axis direction options for layout widgets.
- StacBlendMode
- Blend modes for compositing colors and images.
- StacBlurStyle
- Blur style options for image filters and effects.
- StacBorderStyle
- Border style options for drawing borders.
- Enum mirroring Flutter's BottomNavigationBarLandscapeLayout.
- Enum mirroring Flutter's BottomNavigationBarType.
- StacBoxFit
- How a box should be inscribed into another box.
- StacBoxShape
- Shape options for boxes and containers.
- StacBrightness
- Mirrors Flutter's Brightness.
- StacButtonBarLayoutBehavior
- Button bar layout behavior options.
- StacButtonTextTheme
- Button text theme options.
- StacCarouselViewType
-
Defines how a
CarouselViewlays out its children. - StacClip
- Clipping options for widgets that may overflow their bounds.
- StacCrossAxisAlignment
- Cross-axis alignment options for flex layouts.
- StacDismissDirection
- Direction(s) in which a dismissible widget can be dismissed.
- StacDragStartBehavior
- Behavior options for when drag operations should start.
- StacDropdownMenuCloseBehavior
- Controls how a DropdownMenu responds to taps outside of it.
- StacFilterQuality
- Filter quality options for image scaling and rendering.
- StacFlexFit
- Flex fit options for flexible widgets.
- StacFloatingActionButtonLocation
- Floating action button positioning options.
- StacFloatingActionButtonType
- Enum representing the different types of floating action buttons.
- StacFontStyle
- Font style options for text styling.
- StacFontWeight
- Font weight options for text styling.
- StacGradientType
- Types of gradients supported by the Stac framework.
- StacHitTestBehavior
- How to behave during hit testing. Corresponds to Flutter's HitTestBehavior.
- StacIconAlignment
- Icon alignment options for buttons.
- StacIconType
- Icon design system types supported by Stac.
- StacImageFilterType
- Types of image filters supported by the Stac framework.
- StacImageRepeat
- How to paint any portions of a box not covered by an image.
- StacImageType
- Image source types supported by Stac.
- StacInputBorderType
- Type of input border to render.
- StacInputFormatterType
- Input formatter behavior types for text field validation.
- StacListTileStyle
- Defines the visual properties of a ListTile.
- StacListTileTitleAlignment
- Defines how the title and subtitle of a ListTile are vertically aligned.
- StacMainAxisAlignment
- Main-axis alignment options for flex layouts.
- StacMainAxisSize
- Main-axis sizing options for flex layouts.
- StacMaterialTapTargetSize
- Material tap target size options.
- StacMaterialTextStyle
- Material TextTheme style keys.
- StacMaxLengthEnforcement
- Mirrors Flutter's MaxLengthEnforcement for text input.
- StacMouseCursor
- Mouse cursor styles that can be applied to interactive elements.
- Navigation destination label behavior options.
- StacOptionsViewOpenDirection
- Indicates the direction in which the options view opens for Autocomplete.
- StacOverflowBarAlignment
- How children within an OverflowBar should be placed horizontally.
- StacRadioType
- Defines which platform style of radio to render.
- StacRectType
- Types of rectangle construction methods supported by StacRect.
- StacRefreshIndicatorTriggerMode
- Defines how the StacRefreshIndicator can be triggered, mirroring Flutter's RefreshIndicatorTriggerMode.
- StacScrollPhysics
- Defines the types of scroll physics that can be applied to scrollable widgets.
- StacScrollViewKeyboardDismissBehavior
- Defines how a scroll view in Stac should dismiss the keyboard.
- StacShapeBorderType
- Types of shape borders supported by the Stac framework.
- StacSliderInteraction
- Declarative enum mirroring Flutter's SliderInteraction.
- StacSliderType
- An enum to select which platform style of Slider to render.
- StacSmartDashesType
- Mirrors Flutter's SmartDashesType for text input.
- StacSmartQuotesType
- Mirrors Flutter's SmartQuotesType for text input.
- StacSnackBarBehavior
- Behavior of a SnackBar's position.
- StacStackFit
- Sizing options for Stack widget children.
- StacStrokeCap
- Stroke cap styles for line endings.
- StacSwitchType
- Defines which platform style of switch to render.
- StacTabAlignment
- Controls how tabs are aligned within a TabBar.
- StacTabBarIndicatorSize
- Defines how the tab indicator's size is computed.
- StacTableCellVerticalAlignment
- Vertical alignment options for table cells.
- StacTableColumnWidthType
-
Column width strategies supported by
Table. - StacTextAlign
- Text alignment options for text widgets.
- StacTextBaseline
- Text baseline options for vertical text alignment.
- StacTextCapitalization
- How to auto-capitalize user input. Mirrors Flutter's TextCapitalization.
- StacTextDecorationStyle
- Text decoration style options for underlines, overlines, etc.
- StacTextDirection
- Text direction options for text layout.
- StacTextInputAction
- IME action button to display/trigger on the soft keyboard. Mirrors Flutter's TextInputAction.
- StacTextInputType
- JSON-friendly keyboard type values for TextField. Mirrors Flutter's TextInputType at a high level.
- StacTextLeadingDistribution
- Text leading (line height) distribution options.
- StacTextOverflow
- Text overflow handling options when text doesn't fit.
- StacTextStyleType
- Discriminator for StacTextStyle variants.
- StacTextWidthBasis
- Text width calculation basis options.
- StacTileMode
- Tile modes that determine how gradients handle areas outside their defined bounds.
- StacTooltipTriggerMode
- Defines the interaction method that triggers a tooltip, mirroring Flutter's TooltipTriggerMode.
- StacTraversalEdgeBehavior
- Dialog traversal behavior within focus traversal.
- StacVerticalDirection
- Vertical direction options for layout widgets.
- StacWrapAlignment
- Alignment options for Wrap widget children.
- StacWrapCrossAlignment
- Cross-axis alignment options for Wrap widget runs.
- WidgetType
- Enumeration of all supported widget types in the Stac framework.
Extensions
- StacColorExtension on StacColor
- Extension on StacColor to provide additional functionality.
Constants
-
StacLinearGradient
→ const StacGradient Function({StacAlignment? begin, required List<
StacColor> ? colors, StacAlignment? end, List<double> ? stops, StacTileMode? tileMode}) - A linear gradient that transitions colors along a straight line.
-
StacRadialGradient
→ const StacGradient Function({StacAlignment? center, required List<
StacColor> ? colors, StacAlignment? focal, double? focalRadius, double? radius, List<double> ? stops, StacTileMode? tileMode}) - A radial gradient that transitions colors in a circular pattern from center outward.
-
StacSweepGradient
→ const StacGradient Function({StacAlignment? center, required List<
StacColor> ? colors, double? endAngle, double? startAngle, List<double> ? stops, StacTileMode? tileMode}) - A sweep gradient that transitions colors in a circular sweep around a center point.