VTopTabBarModel class

@author: wzp_vicky @time: 2022年10月27日23:23:50 @version: V1.1 @description:tabbar相关组件,tabbar+tabbarview 主要实现的功能: 1.tabbar不是在appbar的bottom下 2.tabbar的可滚动(不平分) 3.indicator的自定义大小和动画 */

@author: wzp_vicky @time: 2023年08月30日18:34:20 @version: V1.2 @description:tabbar增加默认的初始化index

关于indicator自定义的问题 我们想要改变指示器的宽度,官方提供了indicatorSize:字段, 但是这个字段接受一个TabBarIndicatorSize字段,这个字段并不是具体的宽度值,而是一个枚举值,见下只有两种情况,要么跟tab一样宽,要么跟文本一样宽

enum TabBarIndicatorSize { 宽度和tab控件一样宽 tab, 宽度和文本一样宽 label, }

,显然这并不能满足一些产品和UI的需求,比如:宽度要设置成比文本小, 指示器离文本再近一点,指示器能不能做成小圆点等等, 那么这时候我们就不可以靠官方的字段来实现了 https://www.cnblogs.com/zhouyong0330/p/14406388.html https://www.jianshu.com/p/cd958722cbfd @author: wzp_vicky @time: 2024年6月21日23:37:37 @description: 开始支持平分的场景(手机横向能展示完整的,eg3个,默认是支持横向滚动的)

@author: wzp_vicky @time:2025年7月10日20:02:21 @description: 增加一个回调方法属性:tabClick;正常的切换tab用的control来切换, 但是在青山的维修单的处理模块,在点某一个tab时要做初始化处理, 也就会出现一个tab允许点多次,别的正常情况不允许再点 但是像今日头条它允许点多次的

Constructors

VTopTabBarModel.new({String title = "", Widget? widget})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
getter/setter pair
widget Widget?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited