withDefaultController<K extends Object> static method

PreferredSizeWidget withDefaultController<K extends Object>({
  1. Key? key,
  2. required Map<K, Widget> tabs,
  3. bool isScrollable = false,
  4. EdgeInsetsGeometry? padding,
  5. Color? indicatorColor,
  6. bool automaticIndicatorColorAdjustment = true,
  7. double indicatorWeight = 2.0,
  8. EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
  9. Decoration? indicator,
  10. TabBarIndicatorSize? indicatorSize,
  11. Color? labelColor,
  12. TextStyle? labelStyle,
  13. EdgeInsetsGeometry? labelPadding,
  14. Color? unselectedLabelColor,
  15. TextStyle? unselectedLabelStyle,
  16. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  17. MaterialStateProperty<Color?>? overlayColor,
  18. MouseCursor? mouseCursor,
  19. bool? enableFeedback,
  20. ValueChanged<K>? onTap,
  21. ScrollPhysics? physics,
  22. InteractiveInkFeatureFactory? splashFactory,
  23. BorderRadius? splashBorderRadius,
})

Creates the widget that will look up its controller from the widget tree.

Implementation

static PreferredSizeWidget withDefaultController<K extends Object>({
  Key? key,
  required Map<K, Widget> tabs,
  bool isScrollable = false,
  EdgeInsetsGeometry? padding,
  Color? indicatorColor,
  bool automaticIndicatorColorAdjustment = true,
  double indicatorWeight = 2.0,
  EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
  Decoration? indicator,
  TabBarIndicatorSize? indicatorSize,
  Color? labelColor,
  TextStyle? labelStyle,
  EdgeInsetsGeometry? labelPadding,
  Color? unselectedLabelColor,
  TextStyle? unselectedLabelStyle,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  MaterialStateProperty<Color?>? overlayColor,
  MouseCursor? mouseCursor,
  bool? enableFeedback,
  ValueChanged<K>? onTap,
  ScrollPhysics? physics,
  InteractiveInkFeatureFactory? splashFactory,
  BorderRadius? splashBorderRadius,
}) =>
    _KeyedTabBarWithDefaultController<K>(
      key: key,
      tabs: tabs,
      isScrollable: isScrollable,
      padding: padding,
      indicatorColor: indicatorColor,
      automaticIndicatorColorAdjustment: automaticIndicatorColorAdjustment,
      indicatorWeight: indicatorWeight,
      indicatorPadding: indicatorPadding,
      indicator: indicator,
      indicatorSize: indicatorSize,
      labelColor: labelColor,
      labelStyle: labelStyle,
      labelPadding: labelPadding,
      unselectedLabelColor: unselectedLabelColor,
      unselectedLabelStyle: unselectedLabelStyle,
      dragStartBehavior: dragStartBehavior,
      overlayColor: overlayColor,
      mouseCursor: mouseCursor,
      enableFeedback: enableFeedback,
      onTap: onTap,
      physics: physics,
      splashFactory: splashFactory,
      splashBorderRadius: splashBorderRadius,
    );