MacosTabView constructor
const
MacosTabView({
- Key? key,
- required MacosTabController controller,
- required List<
MacosTab> tabs, - required List<
Widget> children, - MacosTabPosition position = MacosTabPosition.top,
- EdgeInsetsGeometry padding = const EdgeInsets.all(12.0),
A multipage interface that displays one page at a time.
A tab view contains a row of navigational items, tabs, that move the user through the provided views (children). The user selects the desired page by clicking the appropriate tab.
The tab controller's MacosTabController.length must equal the length of the children list and the length of the tabs list.
Implementation
const MacosTabView({
super.key,
required this.controller,
required this.tabs,
required this.children,
this.position = MacosTabPosition.top,
this.padding = const EdgeInsets.all(12.0),
}) : assert(controller.length == children.length &&
controller.length == tabs.length);