CupertinoTabScaffold constructor

CupertinoTabScaffold({
  1. Key? key,
  2. required CupertinoTabBar tabBar,
  3. required IndexedWidgetBuilder tabBuilder,
  4. CupertinoTabController? controller,
  5. Color? backgroundColor,
  6. bool resizeToAvoidBottomInset = true,
  7. String? restorationId,
})

Creates a layout for applications with a tab bar at the bottom.

Implementation

CupertinoTabScaffold({
  super.key,
  required this.tabBar,
  required this.tabBuilder,
  this.controller,
  this.backgroundColor,
  this.resizeToAvoidBottomInset = true,
  this.restorationId,
}) : assert(
       controller == null || controller.index < tabBar.items.length,
       "The CupertinoTabController's current index ${controller.index} is "
       'out of bounds for the tab bar with ${tabBar.items.length} tabs',
     );