discontinuedPackage androssy_widgets has been discontinued.

attach method

  1. @override
TabLayoutController attach(
  1. YMRView<ViewController> view, {
  2. ViewPagerController? pagerController,
  3. List<TabItem>? items,
  4. double? tabIconSize,
  5. ValueState<double>? tabIconSizeState,
  6. double? tabIconSpace,
  7. Color? tabIconTint,
  8. ValueState<Color>? tabIconTintState,
  9. double? tabMargin,
  10. double? tabMarginStart,
  11. double? tabMarginEnd,
  12. double? tabMarginTop,
  13. double? tabMarginBottom,
  14. double? tabMarginHorizontal,
  15. double? tabMarginVertical,
  16. double? tabPadding,
  17. double? tabPaddingStart,
  18. double? tabPaddingEnd,
  19. double? tabPaddingTop,
  20. double? tabPaddingBottom,
  21. double? tabPaddingHorizontal,
  22. double? tabPaddingVertical,
  23. Color? tabContentColor,
  24. ValueState<Color>? tabContentColorState,
  25. double? tabTitleSize,
  26. ValueState<double>? tabTitleSizeState,
  27. FontWeight? tabTitleWeight,
  28. ValueState<FontWeight>? tabTitleWeightState,
  29. Decoration? tabIndicator,
  30. Color? tabIndicatorColor,
  31. bool? tabIndicatorFullWidth,
  32. double? tabIndicatorHeight,
  33. bool? tabInlineLabel,
  34. TabMode? tabMode,
  35. bool onVisibleIconWhenTabSelected(
    1. bool selected
    )?,
  36. bool onVisibleTitleWhenTabSelected(
    1. bool selected
    )?,
})
override

Implementation

@override
TabLayoutController attach(
  YMRView<ViewController> view, {
  ViewPagerController? pagerController,
  List<TabItem>? items,
  double? tabIconSize,
  ValueState<double>? tabIconSizeState,
  double? tabIconSpace,
  Color? tabIconTint,
  ValueState<Color>? tabIconTintState,
  double? tabMargin,
  double? tabMarginStart,
  double? tabMarginEnd,
  double? tabMarginTop,
  double? tabMarginBottom,
  double? tabMarginHorizontal,
  double? tabMarginVertical,
  double? tabPadding,
  double? tabPaddingStart,
  double? tabPaddingEnd,
  double? tabPaddingTop,
  double? tabPaddingBottom,
  double? tabPaddingHorizontal,
  double? tabPaddingVertical,
  Color? tabContentColor,
  ValueState<Color>? tabContentColorState,
  double? tabTitleSize,
  ValueState<double>? tabTitleSizeState,
  FontWeight? tabTitleWeight,
  ValueState<FontWeight>? tabTitleWeightState,
  Decoration? tabIndicator,
  Color? tabIndicatorColor,
  bool? tabIndicatorFullWidth,
  double? tabIndicatorHeight,
  bool? tabInlineLabel,
  TabMode? tabMode,
  bool Function(bool selected)? onVisibleIconWhenTabSelected,
  bool Function(bool selected)? onVisibleTitleWhenTabSelected,
}) {
  super.attach(view);
  this.pagerController = pagerController ?? this.pagerController;
  this.items = items ?? this.items;

  //TAB ICON PROPERTIES
  this.tabIconSize = tabIconSize ?? this.tabIconSize;
  this.tabIconSizeState = tabIconSizeState ?? this.tabIconSizeState;
  this.tabIconSpace = tabIconSpace ?? this.tabIconSpace;
  _tabIconTint = tabIconTint ?? _tabIconTint;
  _tabIconTintState = tabIconTintState ?? _tabIconTintState;

  // TAB MARGIN PROPERTIES
  this.tabMargin = tabMargin ?? this.tabMargin;
  _tabMarginStart = tabMarginStart ?? _tabMarginStart;
  _tabMarginEnd = tabMarginEnd ?? _tabMarginEnd;
  _tabMarginTop = tabMarginTop ?? _tabMarginTop;
  _tabMarginBottom = tabMarginBottom ?? _tabMarginBottom;
  this.tabMarginHorizontal = tabMarginHorizontal ?? this.tabMarginHorizontal;
  this.tabMarginVertical = tabMarginVertical ?? this.tabMarginVertical;

  // TAB PADDING PROPERTIES
  this.tabPadding = tabPadding ?? this.tabPadding;
  this.tabPaddingStart = tabPaddingStart ?? this.tabPaddingStart;
  this.tabPaddingEnd = tabPaddingEnd ?? this.tabPaddingEnd;
  this.tabPaddingTop = tabPaddingTop ?? this.tabPaddingTop;
  this.tabPaddingBottom = tabPaddingBottom ?? this.tabPaddingBottom;
  this.tabPaddingHorizontal =
      tabPaddingHorizontal ?? this.tabPaddingHorizontal;
  this.tabPaddingVertical = tabPaddingVertical ?? this.tabPaddingVertical;

  // TAB TITLE PROPERTIES
  this.tabContentColor = tabContentColor ?? this.tabContentColor;
  this.tabContentColorState =
      tabContentColorState ?? this.tabContentColorState;
  this.tabTitleSize = tabTitleSize ?? this.tabTitleSize;
  this.tabTitleSizeState = tabTitleSizeState ?? this.tabTitleSizeState;
  this.tabTitleWeight = tabTitleWeight ?? this.tabTitleWeight;
  this.tabTitleWeightState = tabTitleWeightState ?? this.tabTitleWeightState;

  // TAB INDICATOR PROPERTIES
  this.tabIndicator = tabIndicator ?? this.tabIndicator;
  this.tabIndicatorColor = tabIndicatorColor ?? this.tabIndicatorColor;
  this.tabIndicatorFullWidth =
      tabIndicatorFullWidth ?? this.tabIndicatorFullWidth;
  this.tabIndicatorHeight = tabIndicatorHeight ?? this.tabIndicatorHeight;

  // TAB OTHER PROPERTIES
  this.tabMode = tabMode ?? this.tabMode;
  this.tabInlineLabel = tabInlineLabel ?? this.tabInlineLabel;
  this.onVisibleIconWhenTabSelected =
      onVisibleIconWhenTabSelected ?? this.onVisibleIconWhenTabSelected;
  this.onVisibleTitleWhenTabSelected =
      onVisibleTitleWhenTabSelected ?? this.onVisibleTitleWhenTabSelected;
  return this;
}