StoryBoard constructor
const
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,
Implementation
const StoryBoard({
Key? key,
this.children,
this.customLanes,
this.sizedChildren,
bool showAppBar = false,
Size? childSize,
this.initialOffset = Offset.zero,
this.initialScale = _STARTSCALE,
this.customAppBar,
this.crossAxisCount,
this.title = _kTitle,
this.laneBuilder,
this.childrenLabel = 'Children',
this.sizedChildrenLabel = 'Sized Children',
this.orientation,
this.androidDevice,
this.cupertinoDevice,
this.deviceFrameStyle,
}) : _materialApp = null,
_widgetsApp = null,
_cupertinoApp = null,
_widgets = true,
screenSize = childSize,
customRoutes = null,
hideAppBar = !showAppBar,
enabled = true,
assert(
children != null || customLanes != null || sizedChildren != null),
super(key: key);