PageTabScaffold<T> constructor
const
PageTabScaffold<T>({ - required PageTabController pageTabController,
- required PageEntries items,
- Widget? drawer,
- Widget? endDrawer,
- Widget? bottomSheet,
- Color? backgroundColor,
- bool? resizeToAvoidBottomInset,
- bool primary = true,
- DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
- bool extendBody = false,
- bool extendBodyBehindAppBar = false,
- Color? drawerScrimColor,
- double? drawerEdgeDragWidth,
- bool drawerEnableOpenDragGesture = true,
- bool endDrawerEnableOpenDragGesture = true,
- String? restorationId,
- Widget? floatingActionButton,
- dynamic title,
- dynamic subtitle,
- Color? appBarBackgroundColor,
- Widget? leading,
- List<Widget>? actions,
- Widget wrapper(
- Widget
)?,
- Color? iconColor,
- Color? activeIconColor,
- BottomNavigationBarType? bottomNavigationBarType,
- bool? scrollableTabs,
- Color? labelColor,
- Color? titleColor,
- bool showUnselectedLabels = true,
- double? tabHeight,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- bool useDrawerInstedOfBottomNavigationBar = false,
- Color? bottomBarBackgroundColor,
- GlobalKey<ScaffoldState>? scaffoldKey,
- bool automaticallyImplyLeading = true,
- void onNavigate(
- int oldPageIndex,
- int oldTabIndex,
- int newPageIndex,
- int newTabIndex,
)?,
- Widget tabBuilder(
- PageEntry page,
- TabEntry tab
)?,
- double? leadingWidth,
})
Implementation
const PageTabScaffold({
required this.pageTabController,
required this.items,
this.drawer,
this.endDrawer,
this.bottomSheet,
this.backgroundColor,
this.resizeToAvoidBottomInset,
this.primary = true,
this.drawerDragStartBehavior = DragStartBehavior.start,
this.extendBody = false,
this.extendBodyBehindAppBar = false,
this.drawerScrimColor,
this.drawerEdgeDragWidth,
this.drawerEnableOpenDragGesture = true,
this.endDrawerEnableOpenDragGesture = true,
this.restorationId,
this.floatingActionButton,
this.title,
this.subtitle,
this.appBarBackgroundColor,
this.leading,
this.actions,
this.wrapper,
this.iconColor,
this.activeIconColor,
this.bottomNavigationBarType,
this.scrollableTabs,
this.labelColor,
this.titleColor,
this.showUnselectedLabels = true,
this.tabHeight,
this.floatingActionButtonLocation,
this.useDrawerInstedOfBottomNavigationBar = false,
this.bottomBarBackgroundColor,
this.scaffoldKey,
this.automaticallyImplyLeading = true,
this.onNavigate,
this.tabBuilder,
this.leadingWidth,
}) : super(key: pageTabController);