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