FlutterTabBarLite.vertical constructor

FlutterTabBarLite.vertical({
  1. Key? key,
  2. List<String>? titles,
  3. List<IconData>? prefixIcons,
  4. List<IconData>? suffixIcons,
  5. Color? backgroundColor = Colors.blue,
  6. Color selectedTextColor = Colors.black87,
  7. Color unselectedItemTextColor = Colors.white,
  8. Color selectedItemBgColor = Colors.white,
  9. Color unselectedItemBgColor = Colors.transparent,
  10. dynamic onTabChange(
    1. int index
    )?,
  11. Duration animationDuration = const Duration(milliseconds: 300),
  12. LinearGradient? gradient,
  13. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 4, vertical: 4),
  14. EdgeInsets itemPadding = const EdgeInsets.symmetric(horizontal: 8, vertical: 2),
  15. EdgeInsets itemMargin = const EdgeInsets.symmetric(horizontal: 3, vertical: 5),
  16. double iconSize = 20.0,
  17. double? spaceBetweenIconAndText = 4.0,
  18. WrapAlignment alignment = WrapAlignment.center,
  19. VerticalDirection verticalDirection = VerticalDirection.down,
  20. double selectedFontSize = 16,
  21. double unselectedFontSize = 14,
  22. bool animateItemSize = true,
  23. double borderRadius = 8,
  24. double itemBorderRadius = 4,
})

Implementation

factory FlutterTabBarLite.vertical({
  Key? key,
  List<String>? titles,
  List<IconData>? prefixIcons,
  List<IconData>? suffixIcons,
  Color? backgroundColor = Colors.blue,
  Color selectedTextColor = Colors.black87,
  Color unselectedItemTextColor = Colors.white,
  Color selectedItemBgColor = Colors.white,
  Color unselectedItemBgColor = Colors.transparent,
  Function(int index)? onTabChange,
  Duration animationDuration = const Duration(milliseconds: 300),
  LinearGradient? gradient,
  EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 4, vertical: 4),
  EdgeInsets itemPadding =
      const EdgeInsets.symmetric(horizontal: 8, vertical: 2),
  EdgeInsets itemMargin =
      const EdgeInsets.symmetric(horizontal: 3, vertical: 5),
  double iconSize = 20.0,
  double? spaceBetweenIconAndText = 4.0,
  WrapAlignment alignment = WrapAlignment.center,
  VerticalDirection verticalDirection = VerticalDirection.down,
  double selectedFontSize = 16,
  double unselectedFontSize = 14,
  bool animateItemSize = true,
  double borderRadius = 8,
  double itemBorderRadius = 4,
}) {
  return FlutterTabBarLite._internal(
    key: key,
    scrollable: false,
    titles: titles,
    prefixIcons: prefixIcons,
    suffixIcons: suffixIcons,
    backgroundColor: backgroundColor,
    selectedTextColor: selectedTextColor,
    unselectedItemTextColor: unselectedItemTextColor,
    selectedItemBgColor: selectedItemBgColor,
    unselectedItemBgColor: unselectedItemBgColor,
    onTabChange: onTabChange,
    animationDuration: animationDuration,
    padding: padding,
    itemPadding: itemPadding,
    itemMargin: itemMargin,
    iconSize: iconSize,
    gradient: gradient,
    spaceBetweenIconAndText: spaceBetweenIconAndText,
    axis: Axis.vertical,
    alignment: alignment,
    verticalDirection: verticalDirection,
    selectedFontSize: selectedFontSize,
    unselectedFontSize: unselectedFontSize,
    animateItemSize: animateItemSize,
    borderRadius: borderRadius,
    itemBorderRadius: itemBorderRadius,
  );
}