tdesign_flutter library
Classes
- BadgeConfig
- 飘新配置
- Chinese2Formatter
- 中文算作两个字符类型的TextInputFormatter
- DatePickerModel
- Font
- 字体宽高数据
- FontFamily
- 字体样式
- HollowCircle
- IconTextTypeConfig
- 图标加文本标签栏配置
- IconTypeConfig
- 纯图标标签栏配置
- ImageWidget
- 封装图片加载控件,增加图片加载失败时加载默认图片
- ItemDistanceCalculator
- MultiLinkedPickerModel
- PannelWithDownArrow
- 带下箭头的展开pannel
- PlatformUtil
- PopRoute
- PopupDialog
- PopupDialogState
- PopUpMenuItem
- 弹窗菜单item
- RadioCorner
- RadioCornerIcon
- SideItemProps
- SliderMeasureData
- SlideTransitionLayout
- 从各个方向弹出的Transition progress为0到1区间的变化值
- TDAlertDialog
- 弹窗控件
- TDAvatar
- 用于头像显示
- TDBadge
- TDBottomTabBar
- TDBottomTabBarItemWithBadge
- TDBottomTabBarPopUpBtnConfig
- 展开项配置
- TDBottomTabBarPopUpShapeConfig
- 弹窗UI配置
- TDBottomTabBarTabConfig
- 单个tab配置
- TDButton
- TD常规按钮
- TDButtonStyle
- TDButton按钮样式
- TDCapsuleRangeSliderThumbShape
- The default shape of a RangeSlider's thumbs.
- TDCapsuleRangeSliderTickMarkShape
- The default shape of each RangeSlider tick mark.
- TDCapsuleRectRangeSliderTrackShape
- The default shape of a TDRangeSlider's track.
- TDCapsuleRectSliderTrackShape
- Slider轨道绘制
- TDCapsuleSliderThumbShape
- 游标的绘制
- TDCapsuleSliderTickMarkShape
- 刻度绘制
- TDCheckbox
- 复选框组件。
- TDCheckboxGroup
- CheckBox组,可以通过控制器控制组内的多个CheckBox的选择状态
- TDCheckboxGroupContainer
- TDCheckboxGroupContainerState
- TDCheckboxGroupController
- 控制CheckBoxGroup
- TDCheckboxGroupInherited
- TDCheckboxGroupState
- TDCheckboxState
- TDCircleIndicator
- TDConfirmDialog
- 只有一个按钮的弹窗控件
- TDDatePicker
- 时间选择器
- TDDialogButtonOptions
- 弹窗按钮配置
- TDDivider
- 分割线 对于非flutter原有的控件,则只需满足TDesign规范即可; 如果有业务在实际使用,还需兼容实际业务场景。
- TDEmpty
- TDExtraThemeData
- 扩展主题数据
- TDFractionPagination
- TDIcons
- TDImage
- TDImageDialog
- 带有图片的弹窗控件
- TDInput
- TDInputDialog
- 带有输入框的弹窗
- TDInputView
- TDItemWidget
- 所有选择器的子项组件
- TDLink
- TDLinkConfiguration
- 存储可以自定义TDLink跳转算法的控件
- TDLoading
- TDMultiLinkedPicker
- 多项联动选择器
- TDMultiPicker
- 项之间无联动的多项选择器
- TDNoneIndicator
- TDesign不展示下标
- TDNoOverlayShape
- 系统用于绘制Overlay,这里不做绘制,只做slider的宽高计算
- TDPageTransformer
- TD默认PageTransformer
- TDPicker
- TDPopupBottomConfirmPanel
- 带确认的底部浮层面板
- TDPopupBottomDisplayPanel
- 右上角带关闭的底部浮层面板
- TDPopupCenterPanel
- 居中浮层面板
- TDRadio
- 单选框按钮,继承自TDCheckbox,字段含义与父类一致
- TDRadioGroup
- RadioGroup分组对象,继承自TDCheckboxGroup,字段含义与父类一致 RadioGroup应该嵌套在RadioGroup内,所有在RadioGroup的RadioButton只能有一个被选中
- TDRadioGroupState
- TDRadioState
- TDRangeSlider
- 范围滑动选择器
- TDRefreshHeader
- TDesign刷新头部 结合EasyRefresh类实现下拉刷新,继承自Header类,字段含义与父类一致
- TDRoundedRectRangeSliderTrackShape
- The default shape of a TDRangeSlider's track.
- TDRoundedRectSliderTrackShape
- Slider轨道绘制
- TDRoundRangeSliderThumbShape
- The default shape of a RangeSlider's thumbs.
- TDRoundRangeSliderTickMarkShape
- The default shape of each RangeSlider tick mark.
- TDRoundSliderThumbShape
- 游标的绘制
- TDRoundSliderTickMarkShape
- 刻度绘制
- TDSearchBar
- TDSelectTag
- 点击型标签组件,点击时内部更改自身状态 支持样式:方形/圆角/半圆/带关闭图标
- TDSideBar
- TDSideBarController
- TDSideBarItem
-
TDSlidePopupRoute<
T> - 从屏幕的某个方向滑动弹出的Dialog框的路由,比如从顶部、底部、左、右滑出页面
- TDSlider
- 单滑动选择器
- TDSliderState
- TDSliderThemeData
- slider显示样式配置
- TDSliderThemeFactory
- TDStepper
- TDStepperIconButton
- TDSwiperArrowPagination
- TDSwiperDotsPagination
- TDSwiperPagination
- TDesign风格的Swiper指示器样式,与flutter_swiper的Swiper结合使用
- TDSwitch
- TDSwitchState
- TDTab
- TDTabBar
- TDTabBarIndicator
- TDesign自定义下标
- TDTabBarVerticalIndicator
- TDesign自定义下标 竖向
- TDTabBarView
- TDTag
- 展示型标签组件,仅展示,内部不可更改自身状态 支持样式:方形/圆角/半圆/带关闭图标
- TDTagStyle
- 标签样式
- TDText
- 文本控件 设计原则: 1.为了使用更方便,所以对系统组件进行的扩展,需兼容系统控件所有功能,不能让用户使用TDesign时,因不能满足系统功能而弃用。 2.非系统已有属性,尽量添加注释
- TDTextConfiguration
- 存储可以自定义TDText居中算法数据的内部控件
- TDTextPaddingConfig
- 通过Padding自定义TDText居中算法
- TDTextSpan
- TextSpan的TDesign扩展,将部分TextStyle中的参数扁平化。
- TDTheme
- 主题控件
- TDThemeData
- 主题数据
- TDToast
- TGIconHeaderWidget
- 刷新头部组件
- TGIconHeaderWidgetState
- TrapezoidPath
Enums
- IconTextDirection
- SlideTransitionFrom
- 从屏幕弹出的方向
- TDAvatarShape
- TDAvatarSize
- TDAvatarType
- TDBadgeBorder
- TDBadgeSize
- TDBadgeType
- TDBottomTabBarBasicType
- TDBottomTabBarComponentType
- TDBottomTabBarOutlineType
- TDButtonShape
- TDButtonSize
- TDButtonStatus
- TDButtonTheme
- TDButtonType
- TDCardStyle
- TDCheckBoxSize
- TDCheckboxStyle
- 选择框的样式
- TDContentDirection
- 内容相对icon的位置,上、下、左、右,默认内容在icon的右边
- TDDialogButtonStyle
- Dialog按钮样式
- TDDialogImagePosition
- TDEmptyType
- TDImageType
- TDInputSize
- TDInputType
- TDLinkSize
- TDLinkState
- TDLinkStyle
- TDLinkType
- TDLoadingIcon
- Loading的图标
- TDLoadingSize
- Loading 尺寸
- TDRadioStyle
- TDSearchAlignment
- 搜索框对齐方式
- TDSearchStyle
- 搜索框的样式
- TDSideBarStyle
- TDStepperIconType
- TDStepperOverlimitType
- TDStepperSize
- TDStepperTheme
- TDSwitchSize
- TDSwitchType
- TDTabBarOutlineType
- TDTabOutlineType
- TDTabSize
- TDTagShape
- 标签形状
- TDTagSize
- 标签尺寸
- TDTagTheme
- Tag展示类型
- TextAlignment
Mixins
- TDBaseRangeSliderTrackShape
- Base track shape that provides an implementation of getPreferredRect for default sizing.
- TDCapsuleTrackShape
Extensions
- TDBoxShadows on TDThemeData
- 内置投影
- TDColors on TDThemeData
- 业务使用时有两种方法替换主题: 第一种:有独立设计风格的app,明确知道哪些色值用到,哪些设置没用到,有自己设计规范,则可单独配置色值。 第二中:直接接入TDesign,配置所有色值组,此时不需再自定义key-value,可以直接使用。
- TDFontFamilies on TDThemeData
- TDFonts on TDThemeData
- 内置字体数据
- TDRadius on TDThemeData
- 内置圆角数据
- TDSpacers on TDThemeData
- 常用的Margin,一般以8为倍数
Properties
- isCustomStyle ↔ bool
-
getter/setter pair
Functions
-
horizontalChild(
Widget child) → Iterable< Widget>
Typedefs
- ContentBuilder = Widget Function(BuildContext context, bool checked, String? content)
- 自定义Content
-
DatePickerCallback
= void Function(Map<
String, int> selected) - IconBuilder = Widget? Function(BuildContext context, bool checked)
- 自定义Icon
- LinkClick = dynamic Function(Uri? uri)
- 限制Function类型,防止传递错误的Function,导致参数对不上
- MultiPickerCallback = void Function(List selected)
-
OnCheckBoxGroupChange
= void Function(List<
String> ids) - OnCheckValueChanged = void Function(bool selected)
-
OnGroupChange
= void Function(List<
String> checkedIds) - CheckBoxGroup变化监听器
- OnRadioGroupChange = void Function(String? selectedId)
- PopupClick = dynamic Function()
- ScaleFormatter = String Function(double value)
- 刻度显示格式化
- TDBarItemAction = void Function()
- TDButtonEvent = void Function()
- TDSearchBarCallBack = void Function()
- TDSearchBarEvent = void Function(String value)
- TDStepperOverlimitFunction = void Function(TDStepperOverlimitType type)
- TDTapEvent = void Function()
- TDTapFunction = void Function()