StoryBoard.app constructor

const StoryBoard.app({
  1. Key? key,
  2. MaterialApp? materialApp,
  3. WidgetsApp? widgetsApp,
  4. CupertinoApp? cupertinoApp,
  5. List<Widget>? customScreens,
  6. bool enabled = true,
  7. Size? screenSize = const Size(400, 700),
  8. Offset initialOffset = Offset.zero,
  9. double initialScale = _STARTSCALE,
  10. List<CustomLane>? customLanes,
  11. PreferredSizeWidget? customAppBar,
  12. List<RouteSettings>? customRoutes,
  13. int? crossAxisCount,
  14. String title = _kTitle,
  15. LaneBuilder? laneBuilder,
  16. String? childrenLabel = 'Children',
  17. String? sizedChildrenLabel = 'Sized Children',
  18. List<CustomScreen>? sizedChildren,
  19. Orientation? orientation,
  20. DeviceInfo? androidDevice,
  21. DeviceInfo? cupertinoDevice,
  22. 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);