PlatformTabScaffold constructor

PlatformTabScaffold({
  1. Key? key,
  2. Key? widgetKey,
  3. List<BottomNavigationBarItem>? items,
  4. Widget bodyBuilder(
    1. BuildContext context,
    2. int index
    )?,
  5. Color? pageBackgroundColor,
  6. Color? tabsBackgroundColor,
  7. PlatformAppBar? appBarBuilder(
    1. BuildContext context,
    2. int index
    )?,
  8. PlatformTabController? tabController,
  9. void itemChanged(
    1. int index
    )?,
  10. bool iosContentPadding = false,
  11. bool iosContentBottomPadding = false,
  12. String? restorationId,
  13. double? navBarHeight,
  14. PlatformBuilder<MaterialTabScaffoldData>? material,
  15. PlatformIndexBuilder<MaterialTabScaffoldData>? materialBuilder,
  16. PlatformBuilder<MaterialNavBarData>? materialTabs,
  17. PlatformBuilder<CupertinoTabScaffoldData>? cupertino,
  18. PlatformIndexBuilder<CupertinoTabScaffoldData>? cupertinoBuilder,
  19. PlatformBuilder<CupertinoTabBarData>? cupertinoTabs,
})

Implementation

PlatformTabScaffold({
  super.key,
  this.widgetKey,
  this.items,
  this.bodyBuilder,
  this.pageBackgroundColor,
  this.tabsBackgroundColor,
  this.appBarBuilder,
  this.tabController,
  this.itemChanged,
  this.iosContentPadding = false,
  this.iosContentBottomPadding = false,
  this.restorationId,
  this.navBarHeight,
  this.material,
  this.materialBuilder,
  this.materialTabs,
  this.cupertino,
  this.cupertinoBuilder,
  this.cupertinoTabs,
})  : assert(
        (material != null && materialBuilder == null) || material == null,
      ),
      assert(
        (material == null && materialBuilder != null) ||
            materialBuilder == null,
      ),
      assert(
        (cupertino != null && cupertinoBuilder == null) || cupertino == null,
      ),
      assert(
        (cupertino == null && cupertinoBuilder != null) ||
            cupertinoBuilder == null,
      );