StoryBoard class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- StoryBoard
Constructors
-
StoryBoard({Key? key, List<
Widget> ? children, List<CustomLane> ? customLanes, List<CustomScreen> ? sizedChildren, bool showAppBar = false, Size? childSize, Offset initialOffset = Offset.zero, double initialScale = _STARTSCALE, PreferredSizeWidget? customAppBar, int? crossAxisCount, String title = _kTitle, LaneBuilder? laneBuilder, String? childrenLabel = 'Children', String? sizedChildrenLabel = 'Sized Children', Orientation? orientation, DeviceInfo? androidDevice, DeviceInfo? cupertinoDevice, DeviceFrameStyle? deviceFrameStyle}) -
const
-
StoryBoard.app({Key? key, MaterialApp? materialApp, WidgetsApp? widgetsApp, CupertinoApp? cupertinoApp, List<
Widget> ? customScreens, bool enabled = true, Size? screenSize = const Size(400, 700), Offset initialOffset = Offset.zero, double initialScale = _STARTSCALE, List<CustomLane> ? customLanes, PreferredSizeWidget? customAppBar, List<RouteSettings> ? customRoutes, int? crossAxisCount, String title = _kTitle, LaneBuilder? laneBuilder, String? childrenLabel = 'Children', String? sizedChildrenLabel = 'Sized Children', List<CustomScreen> ? sizedChildren, Orientation? orientation, DeviceInfo? androidDevice, DeviceInfo? cupertinoDevice, DeviceFrameStyle? deviceFrameStyle}) -
const
-
StoryBoard.cupertino({Key? key, required CupertinoApp child, List<
Widget> ? customScreens, bool enabled = true, Size? screenSize = const Size(400, 700), Offset initialOffset = Offset.zero, double initialScale = _STARTSCALE, List<CustomLane> ? customLanes, PreferredSizeWidget? customAppBar, List<RouteSettings> ? customRoutes, int? crossAxisCount, String title = _kTitle, LaneBuilder? laneBuilder, List<CustomScreen> ? sizedChildren, String? childrenLabel = 'Children', String? sizedChildrenLabel = 'Sized Children', Orientation? orientation, DeviceInfo? androidDevice, DeviceInfo? cupertinoDevice, DeviceFrameStyle? deviceFrameStyle}) -
const
-
StoryBoard.material({Key? key, required MaterialApp child, List<
Widget> ? customScreens, bool enabled = true, Size? screenSize = const Size(400, 700), Offset initialOffset = Offset.zero, double initialScale = _STARTSCALE, List<CustomLane> ? customLanes, PreferredSizeWidget? customAppBar, List<RouteSettings> ? customRoutes, int? crossAxisCount, String title = _kTitle, LaneBuilder? laneBuilder, List<CustomScreen> ? sizedChildren, String? childrenLabel = 'Children', String? sizedChildrenLabel = 'Sized Children', Orientation? orientation, DeviceInfo? androidDevice, DeviceInfo? cupertinoDevice, DeviceFrameStyle? deviceFrameStyle}) -
const
-
StoryBoard.widgets({Key? key, required WidgetsApp child, List<
Widget> ? customScreens, bool enabled = true, Size? screenSize = const Size(400, 700), Offset initialOffset = Offset.zero, double initialScale = _STARTSCALE, List<CustomLane> ? customLanes, PreferredSizeWidget? customAppBar, List<RouteSettings> ? customRoutes, int? crossAxisCount, String title = _kTitle, LaneBuilder? laneBuilder, List<CustomScreen> ? sizedChildren, String? childrenLabel = 'Children', String? sizedChildrenLabel = 'Sized Children', Orientation? orientation, DeviceInfo? androidDevice, DeviceInfo? cupertinoDevice, DeviceFrameStyle? deviceFrameStyle}) -
const
Properties
- androidDevice → DeviceInfo?
-
Use a android device for every screen and ignore the size
final
-
children
→ List<
Widget> ? -
Custom screens you want to show
final
- childrenLabel → String?
-
Label for Custom Screens or Children
final
- crossAxisCount → int?
-
Number of widgets to show in a row instead of maxLaneWidth
final
- cupertinoDevice → DeviceInfo?
-
Use a cupertino device for every screen and ignore the size
final
- customAppBar → PreferredSizeWidget?
-
Override the default app bar of the storyboard
final
-
customLanes
→ List<
CustomLane> ? -
List of custom lanes
final
-
customRoutes
→ List<
RouteSettings> ? -
Custom routes you want to show with test data
final
- deviceFrameStyle → DeviceFrameStyle?
-
Device Frame style
final
- enabled → bool
-
You can disable this widget at any time and just return the child
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideAppBar → bool
-
Optionally hide the AppBar if used as a widget
final
- initialOffset → Offset
-
Initial Offset of the canvas
final
- initialScale → double
-
Initial Scale of the canvas
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- laneBuilder → LaneBuilder?
-
Optionally wrap the lane building process to customize the look
final
- orientation → Orientation?
-
Device orientation for every screen and ignore the size
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenSize → Size?
-
Size for each screen
final
-
sizedChildren
→ List<
CustomScreen> ? -
Children that can have custom sizes
final
- sizedChildrenLabel → String?
-
Label for Custom Screens or Children
final
- title → String
-
Title for AppBar
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → StoryboardController -
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}) → 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