attach method
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 onVisibleIconWhenTabSelected(
- bool selected
- bool onVisibleTitleWhenTabSelected(
- 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;
}