PlatformTabScaffold constructor
PlatformTabScaffold({
- Key? key,
- Key? widgetKey,
- List<
BottomNavigationBarItem> ? items, - Widget bodyBuilder(
- BuildContext context,
- int index
- Color? pageBackgroundColor,
- Color? tabsBackgroundColor,
- PlatformAppBar? appBarBuilder(
- BuildContext context,
- int index
- PlatformTabController? tabController,
- void itemChanged(
- int index
- bool iosContentPadding = false,
- bool iosContentBottomPadding = false,
- String? restorationId,
- PlatformBuilder<
MaterialTabScaffoldData> ? material, - PlatformIndexBuilder<
MaterialTabScaffoldData> ? materialBuilder, - PlatformBuilder<
MaterialNavBarData> ? materialTabs, - PlatformBuilder<
CupertinoTabScaffoldData> ? cupertino, - PlatformIndexBuilder<
CupertinoTabScaffoldData> ? cupertinoBuilder, - 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,
);