AutoTabsScaffold constructor

const AutoTabsScaffold({
  1. Key? key,
  2. required List<PageRouteInfo> routes,
  3. bool lazyLoad = true,
  4. int homeIndex = -1,
  5. Duration animationDuration = const Duration(milliseconds: 300),
  6. Curve animationCurve = Curves.ease,
  7. AnimatedIndexedStackBuilder? builder,
  8. BottomNavigationBuilder? bottomNavigationBuilder,
  9. bool inheritNavigatorObservers = true,
  10. NavigatorObserversBuilder navigatorObservers = AutoRouterDelegate.defaultNavigatorObserversBuilder,
  11. Widget? floatingActionButton,
  12. FloatingActionButtonLocation? floatingActionButtonLocation,
  13. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  14. List<Widget>? persistentFooterButtons,
  15. Widget? drawer,
  16. DrawerCallback? onDrawerChanged,
  17. Widget? endDrawer,
  18. DrawerCallback? onEndDrawerChanged,
  19. Color? drawerScrimColor,
  20. Color? backgroundColor,
  21. Widget? bottomSheet,
  22. bool? resizeToAvoidBottomInset,
  23. bool primary = true,
  24. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  25. double? drawerEdgeDragWidth,
  26. bool drawerEnableOpenDragGesture = true,
  27. bool endDrawerEnableOpenDragGesture = true,
  28. String? restorationId,
  29. bool extendBody = false,
  30. bool extendBodyBehindAppBar = false,
  31. AppBarBuilder? appBarBuilder,
  32. GlobalKey<ScaffoldState>? scaffoldKey,
})

Implementation

const AutoTabsScaffold({
  Key? key,
  required this.routes,
  this.lazyLoad = true,
  this.homeIndex = -1,
  this.animationDuration = const Duration(milliseconds: 300),
  this.animationCurve = Curves.ease,
  this.builder,
  this.bottomNavigationBuilder,
  this.inheritNavigatorObservers = true,
  this.navigatorObservers =
      AutoRouterDelegate.defaultNavigatorObserversBuilder,
  this.floatingActionButton,
  this.floatingActionButtonLocation,
  this.floatingActionButtonAnimator,
  this.persistentFooterButtons,
  this.drawer,
  this.onDrawerChanged,
  this.endDrawer,
  this.onEndDrawerChanged,
  this.drawerScrimColor,
  this.backgroundColor,
  this.bottomSheet,
  this.resizeToAvoidBottomInset,
  this.primary = true,
  this.drawerDragStartBehavior = DragStartBehavior.start,
  this.drawerEdgeDragWidth,
  this.drawerEnableOpenDragGesture = true,
  this.endDrawerEnableOpenDragGesture = true,
  this.restorationId,
  this.extendBody = false,
  this.extendBodyBehindAppBar = false,
  this.appBarBuilder,
  this.scaffoldKey,
}) : super(key: key);