NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #4195 most downloaded on pub.dev
Tencent TDesign UI component library of Flutter, suitable for use in mobile projects.
Latest stable
1.1.0
Last release 26 days ago
28 Oct 2026
Release timing varies
gaps range from 2 weeks to 6 months
Nearly every release is documented
notes for 27 of 27 stable releases
2 versions withdrawn
withdrawn after publishing
3 years old
31 releases · first in 2023
Drag across the ruler to compare, or tap a release to open it.
升级提示:本版本包含公开 API、默认行为和视觉变化。使用 tdesign_flutter: ^1.0.0 的项目可能解析到 1.1.0;升级前请检查以下兼容性影响,并回归相关业务场景。
2026-10-28升级提示:本版本包含公开 API、默认行为和视觉变化。使用 tdesign_flutter: ^1.0.0 的项目可能解析到 1.1.0;升级前请检查以下兼容性影响,并回归相关业务场景。
TActionSheet: 命令式入口返回的 Popup 句柄默认在关闭后保留内容 State;重开时可复用,所属 Navigator 卸载时释放。替换会话时请检查 GlobalKey、Controller 和资源释放。 @RSS1102 (#1197)
TButton: child 中的 TText 默认接受按钮尺寸、配色和状态文案样式;显式字段优先,依赖原正文默认值的用法需明确样式。 @RSS1102 (#1180)
TCheckboxGroup: 新增 onSelectionLimitExceeded,保留旧参数和回调 onMaxSelected(业务自定义 implements TCheckboxGroup 须补 onSelectionLimitExceeded getter,否则无法编译;旧入口已废弃,计划在 2.0.0 删除)。 @RSS1102 (#1196)
TDrawer: 新增 onItemTap / TDrawerItemTapCallback,保留旧参数、回调入口及类型(业务自定义 implements TDrawer 须补 onItemTap getter,否则无法编译;旧入口已废弃,计划在 2.0.0 删除)。 @RSS1102 (#1196)
Theme:
TNavBar: title 中的 TText 默认接受导航标题字体和颜色;复合标题及长标题可能改变布局,保留旧外观需显式定制。 @RSS1102 (#1180)
TNoticeBar: 新增 onTargetTap,保留旧参数和回调 onPressed(业务自定义 implements TNoticeBar 须补 onTargetTap getter,否则无法编译;旧入口已废弃,计划在 2.0.0 删除)。 @RSS1102 (#1196)
TPickerPopup: 关闭后默认保留内容 State;同一句柄在同一 Navigator 中重开时可复用。设置 destroyOnClose: true 时关闭后释放。1.0.0 关闭后始终释放,升级时请检查状态重置和资源生命周期。 @RSS1102 (#1197)
TPopover: 新增 onLongPress,保留旧参数和回调 onLongTap(业务自定义 implements TPopoverAnchor 或 TPopoverWidget 须补 onLongPress getter,否则无法编译;旧入口已废弃,计划在 2.0.0 删除)。 @RSS1102 (#1196)
TPopup:
TSteps: 新增 onStepTapped,保留旧参数和回调 onChange,保留当前步骤点击通知(业务自定义 implements TSteps、TStepsHorizontal 或 TStepsVertical 须补 onStepTapped getter,否则无法编译;旧入口已废弃,计划在 2.0.0 删除)。 @RSS1102 (#1196)
TTabBar:
TBackTop: 新增 onCompleted,成功回顶后触发;onPressed 保持原有时机(计划在 2.0 统一为点击时触发,成功回顶通知使用 onCompleted)。 @RSS1102 (#1193)Theme: 新增 Badge 气泡圆角、Button 四档图标尺寸和 Tag 四档内边距配置;默认视觉变化见上方说明。 @RSS1102 (#1172)TPopup: 新增蒙层点击回调 onTap,兼容旧入口。 @RSS1102 (#1199)DropdownMenu: 隔离共享 Controller 的状态与过期回调 @lnuxe (#1203)TAvatar: 补齐 TText 头像文字默认样式 @RSS1102 (#1182)TCalendar: 补齐日期副标题的 TText 默认样式 @RSS1102 (#1182)TCellGroup: 修复 scrollable 在无界高度父级下触发布局异常 @runoob-coder (#1162)TCollapse: 补齐标题、正文和尾部的 TText 默认样式 @RSS1102 (#1182)TDialog:
TDivider: 补齐 TText 分隔线标签默认样式 @RSS1102 (#1182)TDrawer:
TDropdownMenu: 修复旧组件解绑影响后绑定组件菜单命令的问题 @RSS1102 (#1191)TFooter:
TForm: 修复 Controller 替换失败后原绑定失效及卸载清理异常 @RSS1102 (#1191)Theme:
TLink: 补齐 TText 链接默认样式 @RSS1102 (#1182)TLoading: 修复所属 Overlay 卸载后全局加载会话未自动释放的问题 @RSS1102 (#1190)TMessage: 修复所属 Overlay 卸载时遗留句柄和 Entry 的问题 @RSS1102 (#1190)TNoticeBar: 修复自定义区域将拖动、长按、多指及鼠标按键组合误判为点击的问题 @RSS1102 (#1192)TPicker: 自定义选项接入选中与禁用状态字体 @RSS1102 (#1184)TPopover:
TProgress: 补齐 TText 进度标签默认样式 @RSS1102 (#1182)TPullDownRefresh:
TSlider:
TSteps: 自定义标题和说明接入对应方向及状态字体 @RSS1102 (#1184)TSwipeCell: 修复 Controller 替换失败后原控制器无法继续控制的问题 @RSS1102 (#1191)TSwiper: 修复重复提交无效 Controller 时绕过绑定校验的问题 @RSS1102 (#1191)TTabBar:
TTable: 补齐表头和单元格的 TText 默认样式 @RSS1102 (#1182)TToast:
Your coding agent can read these notes before it upgrades. Set up the MCP server →
🌈 TDesign Flutter 1.0.0 2026-10-15
2026-10-15TDesign Flutter 1.0 正式发布!
本次版本围绕组件 API、主题体系、默认视觉和交互体验完成系统性升级,统一常用组件的使用方式,并增强表单、上传、选择器、图片预览、表格和轮播等能力。
T 前缀、内容插槽、回调与受控状态,梳理 Controller 和浮层职责,移除旧版兼容入口及重复配置。1.0 包含不兼容的 API 和默认行为调整,最低要求 Flutter ≥ 3.32.0、Dart ≥ 3.8.0。
从 0.2.7 升级时,请先阅读 0.2.7 → 1.0 迁移指南(仓库版本),按项目实际使用的组件迁移公共配置、参数、回调与业务流程。不能仅通过替换 TD 前缀完成升级;编译通过后,还需回归默认视觉、受控状态、确认/取消和异步操作。
TThemeData
grayColor3/5/11 分别调整为 #E7E7E7、#C5C5C5、#383838,Gy4 修正为 #DCDCDC。依赖旧 Token 或默认视觉的应用需复核主题。(#1104、#1143、#1146)copyWith(name: ..., spacerMap: ...),移除旧复制包装、ofColor/ofFont/ofCorner/ofFontFamily/ofShadow/ofExtra 和公开 parseThemeData;copyWith/lerp 返回 TThemeData。(#1152)TIcon / TIcons:图标迁移到 TIcon 与独立图标包的 TIcons;旧 all 改为 allIconsMap,部分旧图标名称不再提供同名常量,替代方式见迁移指南;独立 TIcon 默认尺寸为 24dp,颜色为主文字色。(#967、#1146)TButton
TText
TDivider:统一默认线条、文字、间距和垂直尺寸;垂直分割线默认左右间距由 8dp 改为 16dp。(#1044、#1101)TLink:移除互斥的 variant,改为独立组合下划线及前后图标;统一尺寸、状态和无障碍行为,配色参数由 colorScheme 改为 colorPreset。(#1043、#1146)TFab
TForm:字段约束统一使用 validator,移除 TFormField.rules;横向标签字号改为 16px,竖向保持 14px,表单根节点默认使用容器背景色。(#1038、#1102、#1146)TInput
TTextarea:移除 Material decoration 透传,由组件 Theme 管理容器与输入视觉;内置标题默认横排,原竖排效果使用 layout: TTextareaLayout.vertical,内置编辑视觉使用 TDesign 配置。(#1038、#1111、#1157)TSearchBar:取消按钮、自动聚焦和样式入口统一为 actionText/onActionPressed/autofocus/TSearchBarThemeData;内置文字、操作和编辑视觉使用 TDesign 配置。(#1051、#1157)TCheckbox / TCheckboxGroup
TRadio / TRadioGroup
TSwitch:加载态改为独立 loading 参数,移除 TSwitchVariant.loading;未选中轨道默认使用组件背景激活色。(#1050、#1146)TRate:移除 TRateThemeData.showText,评分文案统一由 texts 控制;整星点击、长按和拖动默认显示评分提示,可通过 showValueIndicator: false 关闭。(#1056)TUpload:文件点击回调统一为 onFileTap,取代 onPreview/onRetry。(#1047)TCalendar:firstDayOfWeek 改为 TCalendarFirstDayOfWeek 枚举,日期格模型改为不可变快照;使用日期受控值并通过 value/onChanged 更新,弹层与确认流程由业务组合。(#942、#953、#1059)TPicker:选择内容与弹层、标题和确认流程分离;父级未接收并回写 onChanged 时,滚轮停止后恢复受控 value,标准弹层可通过 TPickerPopup 组合。(#921、#926、#1062、#1121)TDateTimePicker:选择内容与业务确认流程分离,按受控值回写;弹层与标题操作使用 TPickerPopup 或 TPopup 组合。(#921、#926、#1121)TCascader:分支点击后等待调用方回写 value 再推进层级,业务需在 onChanged 中接收并回写候选路径。(#1060)TPopup
TPopupOptions + TPopupHandle 管理展示、关闭和结果;蒙层配置集中到 TPopupOverlayConfig,透明度写入颜色 alpha,动画时长使用 TPopupOptions.animationDuration。(#946、#1037、#1146)child,标题和操作通过 headerBuilder + TPopupHeader 组合,移除旧标题和确认/取消构建参数;生命周期使用 onVisibleChange/onOpened/onClosed。(#1037)useSafeArea 默认改为 false,如需安全区避让须显式开启。(#1037)TPopover
TActionSheet
TDialog:普通操作默认改为浅色填充;actionsPadding/actionSpacing 改为可空并从主题 Token 解析默认值;三项及以上混合角色操作默认按主要/危险优先排序。(#1036)TDrawer
TToast
TMessage
TNoticeBar
TLoading:size 改为逻辑像素数值,默认 20,移除 TLoadingSize;动画默认时长由 2000ms 改为 800ms,图文排列默认由竖向改为横向。(#1031)TSwipeCell
TPullDownRefresh:统一使用 TPullDownRefresh,移除 TRefreshHeader/TRefreshThemeData;默认 loadingBarHeight=50、maxBarHeight=80,触发阈值由 48 改为 50。(#1029)TTabsBar:形态统一为 line/tag/card,调整 Tag 主题字段和默认视觉;移除 TTab.badge,改用 TTab(child: TBadge(child: ...)) 组合。(#1072)TTabBar
TSideBar:style 改为非空 variant(line/tag),默认宽度改为 103;徽标使用 TBadgeConfig?,默认定位在文字右上角;移除 Theme 的 style/height/selectedColor,选中样式统一通过 selectedTextStyle 配置。(#1083、#1141、#1146)TNavBar
TIndexes:吸顶、方向和胶囊模式统一由组件实例管理,移除 Theme 中的同义状态入口;调整侧栏、按压提示和锚点的默认尺寸、字体、颜色及间距。(#1081)TBackTop:shape/visibilityOffset 使用非空实例默认值,移除 Theme 同义状态;onPressed 改为回顶完成通知,配色参数统一为 colorPreset。(#1079、#1146)TSteps:使用 TSteps.progress/selectable/display 区分进度、可选择和纯展示模式,以 indicator/onChange 替代 simple/readOnly/verticalSelect;success 状态更名为 process,successIcon 更名为 icon,移除持有业务模式的 Theme。(#1084)TBadge:默认形态更名为 circle,移除 TBadgeVariant.small,尺寸使用 TBadgeSize.medium/large;统一预设、自定义及组合组件的徽标配置语义。(#1071、#1141)TTag
TAvatarGroup:调整默认描边、阴影及可见成员的尺寸继承,依赖旧头像缩放或描边表现的布局需复核。(#1146)TCell:有主内容时,note 改用受约束的自然宽度分配。(#1143)TCollapse:展开状态统一由 List<T> value/onChanged 管理,移除旧 Panel 状态和索引回调 API。(#1089)TImage:形状和适配方式分别使用 TImageShape 与 BoxFit,默认改为方形和拉伸填充。(#1087)TImageViewer:关闭完成通过 TImageViewer.show 返回的 Future 感知,移除 onClose 和无实际蒙层区域的 barrierDismissible。(#1091)TSwiper
TProgress:使用 .linear/.plump/.circular/.microCircular/.button/.microButton 六个命名构造函数替代 variant;按形态统一有效参数、尺寸、圆角、标签位置和交互语义,线性进度百分比默认显示在右侧。(#1092、#1143)TTable:默认列宽改为自动均分,TTableColumn.width 改为可空;onCellTap 改用 TTableCellContext。(#1140)TTreeSelect:调整默认列宽,避免在 375px 容器中使用两列或三列布局时水平溢出。(#1065)TResult:状态统一为 status/TResultStatus,描述改为 description,替代旧 variant/TResultVariant/subtitle。(#1093)TSkeleton:预设构造的 variant 改为非空,原 variant: null 改用 TSkeleton();自定义布局使用 TSkeleton.custom(layout: ...)。(#1094)TFooter:移除 variant/width,通过 logo/links/text 组合内容,未设置高度时由内容自然撑开;品牌内容可与说明文案共存,调整链接分隔间距和颜色。(#1088、#1143)TEmpty:移除场景枚举和内置操作参数,使用 operation Widget 组合操作区。(#1086)TDropdownMenu:animationDuration 改为可空,显式值优先于主题;单选和多选选项区默认最大高度改为 280dp,超出后在面板内滚动,可通过 maxHeight 覆盖。(#1034、#1146)TButton:新增渐变背景能力。(#1005、#1007、#1010、#1018、#1021)TIcon / TIcons:图标包升级至 0.0.6,新增 tablet、tablet-filled 图标。(#1045)TText:支持 TextScaler、语义标识和文本选区颜色,未显式设置缩放时遵循系统无障碍策略。(#1042)TForm:支持字段级校验、清除校验状态和外部错误注入。(#1038)TSearchBar:支持加权字数限制、受控操作按钮、焦点回调和实例级文字对齐。(#1051)TUpload:新增列表布局 TUploadLayout.list、长按拖拽排序 draggable 和可重试失败状态 retryableError。(#1047)TDateTimePicker:新增月日选择模式。(#1061)TPicker:新增 TPickerPopup.show,统一 Picker 与 DateTimePicker 的标准弹层尺寸和配置。(#1121)TCascader:支持按活动层级展示次级标题。(#1060)TPopover:新增 TPopoverAnchor 与 TPopoverController,支持 open/close/isOpen 控制展示。(#1099)TDialog:新增可选 barrierResult/closeButtonResult,用于区分蒙层与关闭按钮的关闭来源。(#1036)TDrawer:showTDrawer 新增蒙层点击通知 onOverlayClick 和关闭后销毁策略 destroyOnClose。(#1080)TToast:支持可见半透明蒙层,并可独立控制是否拦截背景交互。(#1018、#1154)TSwipeCell:面板展开后,点击本格或外部区域可自动关闭。(#1021)TPullDownRefresh:默认启用 3 秒刷新超时,超时通过 onStateChanged(timeout) 通知并自动结束刷新,refreshTimeout: null 可关闭;配置 onLoadMore 后支持按 lowerThreshold 触底加载。(#1029)TTabsBar:新增 small/large 尺寸和 disabledLabelStyle 禁用标签样式入口。(#1072、#1100)TTabBar:新增 iconTextLayout,支持图标与文字左右排列。(#1146)TIndexes:新增 initialIndex 初始定位与 useSafeArea 安全区配置;竖向索引条超高时支持滚动和点击选择,未溢出时支持拖动选择。(#1081、#1117、#1160)TBackTop:新增 light/dark 配色预设及视觉定制字段。(#1079)TBadge:新增方形、气泡、左右带状角标和左右三角角标,支持位置偏移;通过 TBadge.custom/TBadgeConfig 统一预设、自定义和组合徽标。(#1071、#1106、#1141)TTag:支持在组件 Theme 中分别定制 danger/success 基础色和 success 浅色填充。(#1146)TAvatar:新增形状、实例颜色及字符文字样式配置。(#1090)TAvatarGroup:新增成员尺寸和方向感知的层叠配置。(#1090)TCollapse:新增 leadingBuilder/trailingBuilder 组合标题前后内容;expandIconBuilder 可替换展开图标,显式传入 null 可隐藏。(#1089)TImage:新增 onLoad/onError 事件,空来源显示加载态、空字符串显示失败态;完善图片类型及默认、自定义加载和失败提示。(#1087)TImageViewer:支持双击、双指缩放和下拉关闭,放大时自动暂停切图与轮播。(#1091)TSwiper:支持实例级切换时长、动画曲线和相邻卡片缩放效果。(#1095)TProgress:支持常规、警告、错误和成功状态、状态图标、百分比、线性渐变,以及辅助技术可读的进度描述。(#1092)TTable:新增 onRowTap、实例级 bordered/stripe、行 key、合并单元格、列最小宽度和固定高度,优化排序、固定列及横向滚动交互。(#1140)TResult:统一内置状态图标、字号与间距,支持通过 iconSize/descriptionStyle 定制图标和描述样式。(#1093)TSlider:新增 normal/capsule 视觉形态,统一胶囊轨道、游标和刻度绘制。(#1144)TThemeData:修复稀疏自定义深色 JSON 的未配置背景、文字及引用错误回退为浅色 Token 的问题。(#1169)TButton
TText:修复实例与组件 Theme 的样式优先级、子 Span 样式继承,以及内置单行文字在固定内容槽中的垂直偏移,保留多行正文、显式排版和自定义内容。(#1042、#1160)TFontLoader:并发加载共享 Future,加载失败可重试,并拒绝同名字体切换 URL。(#1042)TForm:修复校验时机、错误状态和 placeholder 的主题优先级,以及横排表单标签的间距与行高。(#1038、#1144)TInput
TTextarea:修复横排标签与输入提示文字未对齐的问题。(#1144)TSearchBar:修复背景高度、禁用操作文字、只读态清除按钮及中文输入法组合文本截断问题。(#1051)TCheckbox / TCheckboxGroup:修复单行、多行和卡片文案对齐、禁用未选样式、卡片间距及分割线起点和残留线问题;方形指示器圆角修正为 1.5px。(#1104、#1143、#1144)TRadio / TRadioGroup:修复群组分割线、横向间距、未选禁用态、状态文案和卡片内容安全间距。(#1119)TSwitch:修复长状态文案被额外缩字或不可读省略的问题,保留显式尺寸和两种状态的组件字号。(#1160)TRate:修复整星小数归一化、半星及 RTL 命中、拖动清零、交互生命周期、读屏信息和长文案布局;统一辅助文案的垂直对齐、默认颜色及未显式配置的字体属性。(#1056、#1070、#1108)TStepper:修复编辑草稿后加减按钮边界状态未及时更新、数字跨平台垂直对齐、三档尺寸行高,以及未设置主题字段时的尺寸和颜色插值问题。(#1064、#1122)TUpload:修复异步或重复选择时覆盖最新文件、丢失已添加文件,以及使用过期回调和文件限制的问题;区分选择器错误与业务回调异常。(#1151、#1153)TCalendar:修复日期文字默认颜色,日期、星期和月份区域按内容适配,保留显式高度、自定义 builder 和日期选择能力。(#1118、#1160)TPicker
TDateTimePicker:修复候选值被父级拒绝后的自动回滚,以及文案回调或展示配置更新导致滚轮重建、连续拖动和惯性中断的问题。(#1061、#1159)TCascader:修复受控交互、键盘操作、层级面板尺寸与主题回退,以及层级图标颜色和标题间距。(#1060、#1144)TPopup:修复标题默认出现诊断下划线的问题,保留显式文字装饰。(#1062)TPopover:修复角落气泡及箭头的 12px 边缘间距、切换触发器后首次点击只关闭旧气泡,以及动态主题切换时可空样式被错误插值为透明色或零值的问题。(#1099、#1129、#1143)TActionSheet:修复列表自适应高度、带描述项高度、空描述占位和长列表滚动;统一宫格图标槽位、描述间距、分页指示点、取消区及分隔线。(#1030、#1123)TDialog:修复长内容缺少可见滚动条和关闭图标实际边距不正确的问题。(#1124)TToast:修复允许背景交互时可见蒙层仍拦截点击的问题。(#1154)TMessage:修复图标与文字间距及默认左右外边距,跑马灯宽度和结束位置适配显式字体、字距与系统文字缩放,避免结束后残留文字。(#1035、#1127、#1157)TNoticeBar:修复跑马灯滚动距离及首帧宽度计算;前缀与正文间距统一跟随 spacer8,避免自定义图标缺少间距,并修复主题过渡时尺寸归零或颜色变透明的问题。(#1032、#1128)TLoading:修复 customIcon 在 icon 为空时的显示优先级,使其持续旋转并响应动画时长更新;修正 activity 指示器默认颜色。(#1031、#1126)TFab:修复拖拽返回起点附近的误触,磁吸改为可取消的平滑动画,新拖拽或布局变化可终止旧动画。(#1040)TSwipeCell:修复外层文字样式错误覆盖操作项默认反色文字的问题。(#1131)TPullDownRefresh:修复暗色模式下刷新状态文案层级过亮的问题。(#1145)TTabsBar:修复自定义标签使用 Column/Expanded 时的高度约束异常,保持内置标签居中及默认胶囊高度。(#1160)TTabBar:修复一次手势触发重复选中回调、指示器动画模式切换及连续切换时的位置跳变,并校正胶囊圆角和弱选中徽标定位;修复局部文字及菜单主题覆盖、面板背景和可空主题字段插值问题。(#1085、#1144)TSideBar:修复徽标偏离文字右上角,以及字体放大时远端选中项无法准确滚动显露的问题,不增加额外选择回调;修复主题过渡时回退样式被半透明颜色或零内边距临时覆盖的问题。(#1135、#1137、#1160)TIndexes:修复主题切换时固定默认尺寸在动画中间态跳变的问题。(#1137)TNavBar:明确标题 Widget 自带样式优先于默认标题样式,修复主题切换时间距、边框和阴影跳变。(#1082、#1136)TSteps:修复局部文字主题覆盖失效和横向纯展示节点状态不一致的问题。(#1084)TBadge:修复中文、跨平台及文本缩放下的垂直对齐、默认位置和尺寸偏差,以及 bubble 被 Material 胶囊形状错误裁剪的问题。(#1070、#1071、#1106、#1107、#1141)TAvatar / TAvatarGroup:修复头像组形状裁剪、双向层叠、非法尺寸边界、成员尺寸、徽标圆点规格及主题动画插值问题。(#1090、#1141)TTag:修复配色和方角在动态主题切换时的中间帧跳变或意外半透明。(#1146)TCell:修复辅助信息默认字号、右侧插槽对齐,以及局部文字 Theme 覆盖部分字段时丢失默认字号、行高和字重的问题。(#1026、#1146)TCollapse:修复标题默认字重被上层主题意外加粗的问题。(#1143)TImageViewer:图片加载失败时显示错误占位,优化关闭动效、全屏背景、页码及顶部操作按钮的尺寸和交互状态。(#1091)TSwiper:修复默认圆角、卡片露出、fraction 胶囊、控制按钮及外置分页布局;修复显式按钮样式合并、状态回退与主题过渡,保留自定义图标及图层的调用方主题。(#1095、#1157)TProgress:修复按钮形态轨道和渐变绘制,以及自定义 Material 主色错误改写状态语义色,以及环形内圆在主题切换时跳变或意外半透明的问题。(#1092、#1146)TResult:修复主题切换时图标尺寸不稳定和部分文字样式覆盖丢失默认属性的问题;自定义插图保留原始比例,内置状态提供可读语义。(#1093)TSkeleton:统一占位色、16dp 行间距、图片圆角和 2 秒闪烁动效,改善预设与加载过程的视觉一致性。(#1094)TSlider / TRangeSlider:修复轨道、滑块、数值标签及禁用态配色,数值提示常驻显示,垂直标签保持正向;修复 Flutter 3.47 下连续/离散滑块的提示兼容问题。(#1010、#1063)TTreeSelect:补齐选中根节点左侧指示条。(#1144)TTimeCounter:修复动态启停、方向切换、终点回调和毫秒格式处理异常,统一三档尺寸及方形、圆形和单位倒计时展示。(#1096)TDropdownMenu:修复多列宽度不一致、蒙层透明度丢失、仿射滤镜越界拉伸时菜单与面板分离,以及禁用项背景和单选项错误文字高亮问题;统一菜单触发项与筛选面板的默认视觉。(#1034、#1125、#1144)感谢所有参与开发、反馈和贡献的社区伙伴!
0.2.7 → 1.0.0-alpha.1 · main@36af3143 → develop@1f527212
0.2.7→1.0.0-alpha.1·main@36af3143→develop@1f527212
Warning
Alpha 期间 API 和视觉仍可能调整,请锁定精确版本。
environment:
sdk: ">=3.8.0 <4.0.0"
flutter: ">=3.32.0"
dependencies:
tdesign_flutter: 1.0.0-alpha.1package:tdesign_flutter/tdesign_flutter.dart 导入;不要深层导入 lib/src。TD* 改为 T*,无 v0 兼容层;TDIcons.* 改为 TIcons.*。| 范围 | 用户要做的事 |
|---|---|
| 受控状态 | value 是唯一真值,在 onChanged 中回写;部分组件无回调即禁用 |
| Controller | 谁创建谁释放;不在 build 中创建;同一 Controller 不绑定多个组件 |
| Overlay | 从目标 Theme/Navigator 子树的 context 调用;异步前检查 mounted;按需设置 useRootNavigator |
| 应用样式 | Token 通过 TThemeBuilder.light/dark 接入 |
| 组件样式 | 全局/局部使用对应 T*ThemeData,局部覆盖使用 mergeExtension |
| 单实例样式 | 使用显式参数或 Flutter 标准样式对象;内容使用 Widget 槽位/builder |
实例显式参数
> 组件 ThemeData
> 用户显式设置的 Flutter 子树主题
> 用户显式设置的 Material 主题
> TDesign Token
Flutter/M3 隐式默认值不参与解析。禁止用 copyWith(extensions: [...]) 覆盖整个扩展列表,也不要把数据、内容、回调或 Controller 放入 ThemeData。
高:需重写调用;中:需调整参数/状态;低:主要是改名/主题迁移。下表不重复列出通用的 TD* → T*。
| 组件 | 风险 | 迁移动作 |
|---|---|---|
| ActionSheet | 中 | 重建 item/分组;样式转 TActionSheetThemeData |
| Avatar | 中 | 换用图片/文字/图标槽位 |
| BackTop | 低 | 替换形状枚举与 ThemeData |
| Badge | 中 | 使用 label、variant、child;按需设 showZero |
| Button | 高 | text/onTap/disabled 改为 child/onPressed/null。单例样式用 ButtonStyle,公共样式用 TButtonThemeData |
| Calendar | 高 | 时间戳 List<int> 改为 List<DateTime> 受控值,内建 Popup/时间选择移除。业务需回写 value,并自行组合标题和确认操作 |
| Cascader | 高 | List<Map> 改为 TCascaderOption 树,组件改为严格受控。业务需维护并回写选中路径 |
| Cell | 中 | TDCellStyle 转槽位和 TCellThemeData |
| Checkbox | 中 | 回写受控值;替换尺寸/内容 builder |
| Collapse | 中 | 回写展开值;样式转 TCollapseThemeData |
| DateTimePicker | 高 | TDDatePicker/TDPicker.showDatePicker 改为纯选择的 TDateTimePicker。用 mode/value/start/end/steps 表达列与边界,弹层/确认外置 |
| Dialog | 高 | Input/Image/Alert 等多套类型统一为 TDialog + TDialogAction。输入、图片和自定义内容改用 Widget 槽位 |
| Divider | 低 | 替换 layout/align 枚举与 ThemeData |
| Drawer | 中 | 替换 placement/item 回调;回归安全区 |
| DropdownMenu | 高 | 旧内建选项模型改为 item + panel builder。业务自行管理面板草稿、确认和取消状态 |
| Empty | 低 | 替换 variant;图片/操作用槽位 |
| FAB | 中 | 样式转 TFabThemeData;回归拖拽边界 |
| Footer | 低 | 替换 variant 和链接槽位 |
| Form | 高 | TDFormValidation 改为 TFormRule,FormItem 值与 builder 契约调整。需重接校验时机和错误展示 |
| Icon | 高 | TDIcons.* 改 TIcons.*;不再依赖主包图标字体 |
| Image | 中 | 替换 variant 和加载/失败槽位 |
| ImageViewer | 高 | 移除对旧 Swiper 的参数透传。改用 itemBuilder/新页码回调,回归动态数据和关闭生命周期 |
| Indexes | 中 | 替换索引/锚点类型;回归滚动 |
| Input | 中 | 保留业务 controller/focusNode;公共样式转 ThemeData |
| Link | 中 | 替换配色/尺寸/变体;内容用槽位 |
| Loading | 中 | 替换 size/icon 枚举;样式转 ThemeData |
| Message | 高 | 移除 MessageLink/MessageMarquee;内容改用 Widget |
| NavBar | 中 | 替换 item action;回归安全区/边框 |
| NoticeBar | 中 | 移除 Style 类;样式转 ThemeData,点击用 tap target |
| Picker | 高 | 旧 MultiPicker/TDPicker.show* 改为 TPickerOption + columns/linked 受控模型。header、取消、确认和 Popup 由业务组合 |
| Popover | 中 | 替换 placement/回调;样式转 ThemeData |
| Popup | 高 | 旧 Panel/Route 入口统一为 TPopupOptions + TPopupHandle。top/bottom 默认高 240,left/right 默认宽 280,center 默认 240×240,显式尺寸优先 |
| Progress | 中 | 替换 variant/labelPosition;回归 button/micro 事件 |
| Radio | 中 | 回写受控值;替换尺寸/内容 builder |
| Rate | 中 | 回写分值;自定义图标改用 builder |
| Refresh | 低 | 替换类型名与 ThemeData |
| Result | 低 | 替换 variant;图标/标题/操作用槽位 |
| Search | 中 | 重接输入回调;公共样式转 ThemeData |
| SideBar | 中 | 移除旧 Controller;改用受控选中值 |
| Skeleton | 高 | RowCol 旧类型改为 TSkeletonLayout/Block,delay 改为 Duration。可使用预设 variant 或重建 block 布局 |
| Slider | 中 | 替换单值/区间值契约;回写受控值 |
| Stepper | 中 | 替换 size/variant;按新 value/callback 迁移 |
| Steps | 中 | 替换 item/direction/status 类型 |
| SwipeCell | 高 | 左右 Widget 参数改为 panel/action/side/motion 模型。需重建操作列表并处理开关状态回调 |
| Swiper | 高 | 移除旧第三方 Swiper 透传,改为自有 TSwiper。需迁移 Controller、autoplay、pagination 和 pageEffect |
| Switch | 中 | 回写 value;样式转 TSwitchThemeData |
| TabBar | 高 | TDBottomTabBar* 改 TTabBar*;重建 item/variant/badge |
| Table | 高 | TDTableCol/Empty 改为泛型列与 Widget 空态。业务需回写排序和选择状态 |
| Tabs | 高 | 改用 TTabsBar/TTabsBarView/TTab。需同步 controller/index,并回归 Tab 与 View 联动 |
| Tag | 中 | 移除 Style 类;样式转 ThemeData,回写选中态 |
| Text | 中 | 替换 Text/Span/Configuration;回归文本继承 |
| Textarea | 中 | 保留业务 controller/focusNode;样式转 ThemeData |
| Theme | 高 | 应用入口用 TThemeBuilder;局部覆盖用 mergeExtension |
| TimeCounter | 高 | 改用 status/builder/新 Controller;由创建方释放 |
| Toast | 高 | 替换 show/close 与图文方向;使用正确 context |
| TreeSelect | 高 | 重建选项数据和受控值;回归动态更新 |
| Upload | 高 | 转换文件/状态模型和回调;回归权限/失败流程 |
先处理高风险组件,再在深浅色、窄屏、大字号、RTL、键盘、系统返回和动态数据下回归。
详细迁移指南将在后续文档列出。
这是 v1 的首个预发布版本,API 和视觉细节在正式版前仍可能调整。建议试用项目锁定
tdesign_flutter: 1.0.0-alpha.1,并重点回归浮层、选择器、日历和轮播等重构组件。
T 前缀并移除旧版兼容参数。ThemeData 与 TDesign ThemeExtension。mergeExtension。TSwiper 改为 TSwiperController 驱动;TBadge 使用语义化 label 展示数字或自定义短文本。DateTime 受控值;Picker、DateTimePicker 与 Cascader 只负责选择,标题、确认和弹层由业务组合。TPopupOptions + TPopupHandle,Dialog 改为统一内容槽位与 TDialogAction。TSwiper 支持 autoplay 生命周期管理、真实卡片视口、横竖布局、外置分页、自定义标记和自定义前后按钮。Nothing published for this version
🚀 Features TDInput: TDInput密文模式下支持粘贴 @jflin19990707 ( #827 ) TDDropdownMenu: TDDropdownMenu的arrowIcon颜色可自定义 @jflin19990707 ( #831 ) TDInput: TDInput高度
🌈 0.2.7
🚀 Features
TDInput: TDInput密文模式下支持粘贴 @jflin19990707 (#827)
TDDropdownMenu: TDDropdownMenu的arrowIcon颜色可自定义 @jflin19990707 (#831)
TDInput: TDInput高度自适应 @jflin19990707 (#840)
TDCalendar: 允许月历控件在拖动后返回当前月份,用于延迟加载月份改变数据 @rxnh8256 (#816)
TDActionSheetItem: 支持设置cell描述信息的能力 @leenc123 (#811)
TDBottomTabBar: tabbar新增indicatorAnimation动画属性 @journeyding (#848)
🐞 Bug Fixes
TDPopup: 底部弹出popup重绘问题 @jflin19990707 (#826)
TDropdownMenu: TDropdownMenu分组菜单多选模式下的返回值bug @jflin19990707 (#828)
TDTable: TDTable中TDTableCol的索引BUG @jflin19990707 (#830)
TDTreeSelect: 树形选择器异步数据更新后能重新渲染;二级菜单文字过长处理一下;TDSelectOption中的value改为dynamic类型 @jflin19990707 (#834)
TDToast: TDToast过长溢出问题 @jflin19990707 (#839)
TDDropdownItem: TDDropdownItem不兼容TDMultiCascader @jflin19990707 (#846)
TDCalendar: 自定义日期单元格组件移除padding,使之沾满并覆盖默认选中样式从而实现自定义选中以及当前日期的样式问题,并增加日期锚点属性来实现自动滚动到锚点位置 @leenc123 (#808)
DropdownMenu: 修复 item 的 label 过长时导致显示不完全的 bug @edram (#823)
TDRadio、TDCheckbox: 单选框、多选框多列展示问题 @jflin19990707 (#841)
TDNavBar: 优化标题栏返回图标 支持暗黑模式 @sinianbao (#844)
TInput: TInput密文模式下支持粘贴 @jflin19990707 (#827)TDropdownMenu: TDropdownMenu的arrowIcon颜色可自定义 @jflin19990707 (#831)TInput: TInput高度自适应 @jflin19990707 (#840)TCalendar: 允许月历控件在拖动后返回当前月份,用于延迟加载月份改变数据 @rxnh8256 (#816)TActionSheetItem: 支持设置cell描述信息的能力 @leenc123 (#811)TBottomTabBar: tabbar新增indicatorAnimation动画属性 @journeyding (#848)TPopup: 底部弹出popup重绘问题 @jflin19990707 (#826)TDropdownMenu: TDropdownMenu分组菜单多选模式下的返回值bug @jflin19990707 (#828)TTable: TTable中TDTableCol的索引BUG @jflin19990707 (#830)TTreeSelect: 树形选择器异步数据更新后能重新渲染;二级菜单文字过长处理一下;TSelectOption中的value改为dynamic类型 @jflin19990707 (#834)TToast: TToast过长溢出问题 @jflin19990707 (#839)TDropdownItem: TDropdownItem不兼容TDMultiCascader @jflin19990707 (#846)TCalendar: 自定义日期单元格组件移除padding,使之沾满并覆盖默认选中样式从而实现自定义选中以及当前日期的样式问题,并增加日期锚点属性来实现自动滚动到锚点位置 @leenc123 (#808)DropdownMenu: 修复 item 的 label 过长时导致显示不完全的 bug @edram (#823)TRadio、TCheckbox: 单选框、多选框多列展示问题 @jflin19990707 (#841)TNavBar: 优化标题栏返回图标 支持暗黑模式 @sinianbao (#844)TDNoticeBar : 新增content属性,废弃并兼容原有的context属性 @runoob-coder
2025-11-14TDNoticeBar : 新增content属性,废弃并兼容原有的context属性 @runoob-coder (#744)TDButton: 添加渐变颜色背景 @jflin19990707 (#773)TDToast: TDToast支持展示多个 @jflin19990707 (#780)TDUpload: 增加自定义上传监听 @leenc123 (#775)TDTable: 增加自定义表尾属性 @leenc123 (#776)TDMultiCascader: 修复initialIndexes 参数不生效 @epoll-j (#752)TDDialog: 按钮文案溢出问题 @jflin19990707 (#772)TDDateTimePicker: 日期时分秒的英文配置改为缩写 @jflin19990707 (#770)TDCell: TDCell的note过长时溢出问题 @jflin19990707 (#769)TDCell: 修复单元格内 icon 与文本的对齐问题 @runoob-coder (#789)TDProgress : 修复进度条改变时的样式问题 @runoob-coder (#744)docs: 优化文档格式和内容 @runoob-coder (#744)TNoticeBar: Added content property, deprecated and compatible with the original context property @runoob-coder (#744)TButton: Added gradient color background @jflin19990707 (#773)TToast: TToast supports displaying multiple toasts @jflin19990707 (#780)TUpload: Added custom upload listener @leenc123 (#775)TTable: Added custom footer property @leenc123 (#776)TMultiCascader: Fixed initialIndexes parameter not taking effect @epoll-j (#752)TDialog: Fixed button text overflow issue @jflin19990707 (#772)TDateTimePicker: Changed English configuration for date, hour, minute, second to abbreviations @jflin19990707 (#770)TCell: Fixed overflow issue when note is too long @jflin19990707 (#769)TCell: Fixed alignment issue between icon and text in the cell @runoob-coder (#789)TProgress: Fixed style issue when progress bar changes @runoob-coder (#744)docs: Optimized document format and content @runoob-coder (#744)demo: Optimized and adjusted demo example project and code demonstrations, upgraded Android build configuration and dependencies to be compatible with Flutter from 3.16.9 to the latest version (3.35.5), adjusted web preview iframe style to remove top margin @runoob-coder (#744)web: Overridden web dependencies, resolved version conflict with flutter_localizations, compatible with previous Flutter versions @runoob-coder (#744)TDPopover: 添加圆角属性自定义 @jflin19990707
2025-09-12TDPopover: 添加圆角属性自定义 @jflin19990707 (#727)TDForm: 增加表单自定义背景颜色属性,按钮部分可为空 @jflin19990707 (#730)TDConfirmDialog: 弹窗支持自定义宽度,按钮增加自定义样式属性 @jflin19990707 (#724)TDPicker: 支持初始化和后续动态加载适量数据,修复卡顿问题@123dw-bot(#728)TDSideBar增加自定义未选中颜色 @jflin19990707 (#723)TPopover: Added custom corner radius property @jflin19990707 (#727)TForm: Added custom background color property for form, button part can be optional @jflin19990707 (#730)TConfirmDialog: Dialog supports custom width, buttons added custom style properties @jflin19990707 (#724)TPicker: Supports initialization and subsequent dynamic loading of appropriate data, fixes stuttering issues @123dw-bot (#728)TSideBar: Added custom unselected color property @jflin19990707 (#723)TDUpload: 支持设置多图间距和对其方式 @cyjaysong
2025-08-14TDUpload: 支持设置多图间距和对其方式 @cyjaysong (#677)TDTreeSelect: 新增自定义宽度和最大行数字段,修复第二级宽度固定,长文本溢出问题 @123dw-bot (#694)TDDropdownMenu: 增加TDDropdownItemController,允许外部重置和更改下拉选项 @Luozf12345 (#697)TDStepper:Stepper增加controller参数,可用于实时修改value @Luozf12345 (#699)TDIndexes: 修复自定义索引无法响应点击事件 @epoll-j (#692)TDPopup: 修复close方法触发两次bug @epoll-j (#690)TDSideBar:修复TDSideBar组件初始化后children无法更新的问题 @Luozf12345 (#698)其他:恢复对flutter SDK 3.32版本的默认适配TUpload: Support setting image spacing and alignment @cyjaysong (#677)TTreeSelect: Added custom width and max lines fields, fixed fixed width for second level and long text overflow issues @123dw-bot (#694)TDropdownMenu: Added TDropdownItemController to allow external reset and change of dropdown options @Luozf12345 (#697)TStepper: Added controller parameter to Stepper for real-time value modification @Luozf12345 (#699)TIndexes: Fixed issue where custom indexes could not respond to click events @epoll-j (#692)TPopup: Fixed bug where close method was triggered twice @epoll-j (#690)TSideBar: Fixed issue where children of TSideBar component could not be updated after initialization @Luozf12345 (#698)Misc: Restored default adaptation for flutter SDK version 3.32TDPicker: 支持切换时优先保持级联的选项值 @epoll-j
TPicker: Supports prioritizing the retention of cascaded option values when switching @epoll-j (#666)TTable: Supports default row selection @ccXxx1aoBai (#665)TCalendar: Adds custom date cell functionality @epoll-j (#667)TForm: Adds Form component @shizhe2018 @SimonWuZY (#620)TTable: Separates TTableCol attribute configuration and empty data configuration @ccXxx1aoBai (#665)TTable: Fixes the issue with unselected icon display in table headers and the selection state problem under disabled conditions @ccXxx1aoBai (#665)TTable: Fixes the empty data issue in tables @ccXxx1aoBai (#671)TDialog: Fixes the issue where dialogs block the keyboard @jflin19990707 (#669)TCollapse: Updates the demo page name for collapse @jflin19990707 (#670)TDropdownMenu: Fixes the incorrect popup position calculation in nested routing scenarios @hcanyz (#648)🚀 Features TDTable: 支持表格行选择、自定义行高 @ccXxx1aoBai (#594) TDTreeSelect: 支持局部多选 @epoll-j (#587) TDCell: 支持自定义高度,底部分割线 @ccXxx1aoBai (#611) TDNoticeBar: 支持自定
🌈 0.2.2
2025-06-13
🚀 Features TDTable: 支持表格行选择、自定义行高 @ccXxx1aoBai (#594) TDTreeSelect: 支持局部多选 @epoll-j (#587) TDCell: 支持自定义高度,底部分割线 @ccXxx1aoBai (#611) TDNoticeBar: 支持自定义文字行数 @ccXxx1aoBai (#611) TDBottomTabBar: TDButtonBottomTabBar 中的 onTap 支持重复点击 @epoll-j @RSS1102(#586) TDBottomTabBar: 实现点击水波纹效果 @RSS1102 (#626) TDAvatar 增加自定义BoxFit参数 @shizhe2018 (#633)
🐞 Bug Fixes TDDatePicker: 修复时间选择器分钟级时间数据展示问题- 优化小时、分钟、秒的选择范围计算逻辑 @epoll-j (#585) TDSearchBar: 支持设置onTapOutside回调 @cyjaysong (#608) TDDropdownMenu: 支持修改选中icon颜色 @jflin19990707 (#631) TDTabBar: fix:TDBottomTabBarBasicType.iconText模式下,text icon 冲突问题 @jflin19990707 (#628) TDEmpty: 支持操作按钮自定义样式 @jflin19990707 (#624) TDToast: toast支持自定义文案 @jflin19990707 (#625) TDPopup: 修改_measureChildHeight方法用于修复child无法修改弹窗高度 @Jzow (#591) TDCascader 修改查询data数据为空状态处理 @shizhe2018 (#635)
🚧 Others [其他]适配flutter 3.32版本 @Luozf12345 (#636)
TTable: Added support for row selection and custom row height. @ccXxx1aoBai (#594)TTreeSelect: Added partial multi-selection support. @epoll-j (#587)TCell: Added support for custom height and bottom divider. @ccXxx1aoBai (#611)TNoticeBar: Added support for custom number of text lines. @ccXxx1aoBai (#611)TBottomTabBar: Made onTap in TButtonBottomTabBar support repeated clicks. @epoll-j @RSS1102 (#586)TBottomTabBar: Implemented tap ripple effects. @RSS1102 (#626)TAvatar: Added custom BoxFit parameter. @shizhe2018 (#633)TDatePicker: Fixed minute-level time display issue and optimized hour/minute/second range calculation logic. @epoll-j (#585)TSearchBar: Added onTapOutside callback support. @cyjaysong (#608)TDropdownMenu: Added support for modifying selected icon color. @jflin19990707 (#631)TTabBar: Fixed text-icon conflict in TBottomTabBarBasicType.iconText mode. @jflin19990707 (#628)TEmpty: Added custom styling support for action buttons. @jflin19990707 (#624)TToast: Added custom text support for toast. @jflin19990707 (#625)TPopup: Modified _measureChildHeight method to fix inability to adjust popup height via child component. @Jzow (#591)TCascader: Fixed empty state handling for query data. @shizhe2018 (#635)Nothing published for this version
🚀 Features TDCellGroup: 添加单元格组标题背景颜色titleBackgroundColor属性. @runoob-coder (#539) TDLink: link参数链接对象LinkObj替换为MessageLink,调整TDLink样式,新增点击回调; @runoob-co
🌈 0.2.0 2025-05-08
🚀 Features TDCellGroup: 添加单元格组标题背景颜色titleBackgroundColor属性. @runoob-coder (#539) TDLink: link参数链接对象LinkObj替换为MessageLink,调整TDLink样式,新增点击回调; @runoob-coder (#554) TDBottomTabBar: 新增自定义标题支持到步骤条组件 @RSS1102 (#576) TDSlider: 添加滑块点击事件 onTap @RSS1102 (#527) TDCascader: 添加右上角"确定"按钮,支持选择任意选项 @Luozf12345 ImageViewer: 支持单张图片删除 @ccXxx1aoBai (#581) TDPopup: 为Popup组件添加标题、左文本、右文本和关闭按钮自定义尺寸属性 @Jzow (#582) TDBottomTabBarTabConfig: 添加长按 tab 触发事件onLongPress @RSS1102 (#580)
🐞 Bug Fixes TDFooter: 修复页脚链接模式时内容溢出问题 @runoob-coder (#554) TDUpload: 修复文件大小限制错误 @epoll-j (#544) TDImageViewer: 增加Swiper组件属性透传,增加点击事件及部分样式属性,支持自定义按钮 @ccXxx1aoBai (#561) TDSlider: 修复是胶囊类型且有区间时,滑块无法拖动到边缘以及数值和刻度展示问题 @qfish (#567) TDInput: 修复非中文标签Input框宽度计算缺陷 @Jzow (#564) TDPopup: 修复无法通过child中的height来修改弹出层高度 @Jzow (#571) TDDropdownMenu: 修复特定情况下的单选失效 @1jialong (#575) TDToast: 修复Toast多行文字不生效的问题 @Luozf12345 TDPopup: 修复Popup外层没有Scaffold时展示文字有横线的问题 @Luozf12345
🚧 Others TDFooter: 重构 TDFooter 组件;将 LinkObj 类移除,直接使用 TDLink 类;移除了 isWithUnderline 参数,改为在 TDLink 中设置链接样式; @runoob-coder (#554)
TCellGroup: Added titleBackgroundColor property for cell group title background color. @runoob-coder (#539)TLink: Replaced link parameter LinkObj with MessageLink, adjusted TLink styles, and added click callback. @runoob-coder (#554)TBottomTabBar: Added custom title support for step bar component. @RSS1102 (#576)TSlider: Added slider tap event onTap. @RSS1102 (#527)TCascader: Added "Confirm" button at top-right corner to support selecting any option. @Luozf12345ImageViewer: Added single image deletion support. @ccXxx1aoBai (#581)TPopup: Added custom size properties for popup title, left text, right text, and close button. @Jzow (#582)TBottomTabBarTabConfig: Added onLongPress event triggered by long-pressing tabs. @RSS1102 (#580)TFooter: Fixed content overflow issue in link mode. @runoob-coder (#554)TUpload: Fixed file size limit error. @epoll-j (#544)TImageViewer: Added Swiper component property passthrough, click events, and style properties; supports custom buttons. @ccXxx1aoBai (#561)TSlider: Fixed edge drag failure and value/scale display issues in capsule type with range. @qfish (#567)TInput: Fixed width calculation defect for non-Chinese label input fields. @Jzow (#564)TPopup: Fixed inability to modify popup height via height in child component. @Jzow (#571)TDropdownMenu: Fixed single-select failure in specific scenarios. @1jialong (#575)TToast: Fixed multi-line text display issue. @Luozf12345TPopup: Fixed horizontal line display issue when popup lacks outer Scaffold. @Luozf12345TFooter: Refactored TFooter component; Removed LinkObj class and directly used TLink class; Removed isWithUnderline parameter (link styles now set in TLink). @runoob-coder (#554)TDProgress: 新增Progress 进度条组件 @CORCTON
2025-03-31TDProgress: 新增Progress 进度条组件 @CORCTON (#307)TDMessage: 新增Message 全局提示组件 @chendingya (#316)TDSkeleton: 新增Skeleton 骨架屏组件 @Ezer015 (#317)TDFooter: 新增Footer 页脚组件 @chendingya (#224)TDPopover: 新增Popover 弹出气泡组件 @ccXxx1aoBai (#435)TDSwitch: 添加自定义“开/关”字体大小 @shinyina (#217)TDDatePicker: filterItems 参数添加,可自定义显示那些选项;itemBuilder 参数添加,用于自定义item @hkaikai (#426)TDDrawer: 新建TDDrawerWidget组件,可用于Scaffold中的drawer属性 @hkaikai (#445)TDTable: 自定义列返回当前行号 @ccXxx1aoBai (#457)TDUpload: upload组件支持宽高设置和快速替换配置 @HubuHito (#462)TDButton: 添加按钮图标位置属性 @epoll-j (#463)TDDropdownMenu: 支持单选(multiple == false)模式下,分栏(optionsColumns > 1)展示选项 @hkaikai (#502)TDActionSheet: 新增动作面板组件 @hkaikai (#485)TDPicker: 增加customSelectWidget参数 @epoll-j (#495)TDSlider: 增加修改滑轨颜色参数 @epoll-j (#506)TDCalendar: 添加动画滚动日历选中值位置 @hkaikai (#509)TDStep: 新增CustomContent参数支持Step的Content可以自定义内容 @Jzow (#452)TDTag: 新增fixedWidth参数固定宽度属性,可自定义Tag的宽度,修复TextOverflow.ellipsis溢出title问题 @Jzow (#496)TDPopup: 为底部浮层面板添加了边缘拖动控制 @Jzow (#514)TDBadge: Badge设置封顶的数字值 @chendingya (#302)TDToast:带图标类型支持设置文字行数 @ccXxx1aoBai (#481)TDRefreshHeader: 升级easy refresh到最新版本,兼容v2和v3写法;交互同步其他移动端平台 @hkaikai (#438)TDCell: 修复无默认样式情况下点击空白区域无反应问题;TDCellStyle默认构造方法提供context参数,可以构建默认样式;完善demo自定义样式用法 @hkaikai (#448)TDTable: 解决空数据图片无法显示问题 @ccXxx1aoBai (#451)TDTabBar: labelStyle、unselectedLabelStyle支持自定义Label的文字大小 @hkaikai (#453)TDCalendar: 修复定位到最后一个月时,无法定位问题 @hkaikai (#449)TDBottomTabBar: 修复capsule类型无法设置背景色 @epoll-j (#497)TDCalendar: 确定按钮添加国际化 @hkaikai (#505)TDUpload: 新增onMaxLimitReached函数修复自定义处理文件数量超过最大限制的Bug @Jzow (#474)TDInput: 新增_getTextWidth函数获取文本实际宽度和点击文本触发事件,修复buildNormalInput文本显示不全 @Jzow (#475)TDImage: 移除自定义宽和自定义高必填,以及默认高度和宽度尺寸72约束,让布局系统自动计算高度 @Jzow (#499)TDConfirmDialog: 新增布局约束和滚动支持动态计算最大高度,修复渲染失败Bug @Jzow (#510)TDDrawer: 新增_deleteRouter()在close函数中的调用强制清除路由,修复关闭路由无法再次打开Bug @Jzow (#512)TDText: 3.22鸿蒙版本text,组件不居中问题 @duleigiser (#437)TDAlertDialog: fix 按钮样式没有铺满 @lvjs (#460)TProgress: Added Progress component @CORCTON (#307)TMessage: Added Message (Global Prompt) component @chendingya (#316)TSkeleton: Added Skeleton component @Ezer015 (#317)TFooter: Added Footer component @chendingya (#224)TPopover: Added Popover (Popup Bubble) component @ccXxx1aoBai (#435)TSwitch: Added custom "ON/OFF" font size support @shinyina (#217)TDatePicker: Added filterItems parameter for custom display options and itemBuilder for custom item rendering @hkaikai (#426)TDrawer: Created TDrawerWidget component compatible with Scaffold's drawer property @hkaikai (#445)TTable: Custom columns now return current row number @ccXxx1aoBai (#457)TUpload: Added width/height settings and quick replacement configuration support @HubuHito (#462)TButton: Added icon position property @epoll-j (#463)TDropdownMenu: Supported single-select mode (multiple == false) with multi-column display (optionsColumns > 1) @hkaikai (#502)TActionSheet: Added Action Sheet component @hkaikai (#485)TPicker: Added customSelectWidget parameter @epoll-j (#495)TSlider: Added track color modification parameter @epoll-j (#506)TCalendar: Added animated scrolling to selected value position @hkaikai (#509)TStep: Added CustomContent parameter for Step content customization @Jzow (#452)TTag: Added fixedWidth parameter and fixed TextOverflow.ellipsis title overflow issue @Jzow (#496)TPopup: Added edge drag control for bottom panel @Jzow (#514)TBadge: Added capped numeric value setting for Badge @chendingya (#302)TToast: Added multi-line text support for icon-type toasts @ccXxx1aoBai (#481)TRefreshHeader: Upgraded Easy Refresh to latest version, improved compatibility between v2/v3 syntax @hkaikai (#438)TCell: Fixed unresponsive click in blank area without default style; Improved default style construction and demo usage @hkaikai (#448)TTable: Fixed empty data image display issue @ccXxx1aoBai (#451)TTabBar: Added labelStyle and unselectedLabelStyle support for custom font sizes @hkaikai (#453)TCalendar: Fixed positioning issue when scrolling to last month @hkaikai (#449)TBottomTabBar: Fixed background color setting for capsule type @epoll-j (#497)TCalendar: Added localization for confirm button @hkaikai (#505)TUpload: Added onMaxLimitReached callback to handle file limit overflow @Jzow (#474)TInput: Added _getTextWidth function and click event to fix incomplete text display @Jzow (#475)TImage: Removed mandatory custom width/height constraints (default 72px) for layout auto-calculation @Jzow (#499)TConfirmDialog: Added layout constraints and dynamic max-height calculation with scroll support @Jzow (#510)TDrawer: Added _deleteRouter() call in close function to force clear routes @Jzow (#512)TText: Fixed text alignment issue in HarmonyOS 3.22 @duleigiser (#437)TAlertDialog: Fixed button style not filling width @lvjs (#460)🌈 0.1.8 2024-12-30 🚀 Features TDUpload: 新增Upload组件 @TingShine (#405) SearchBar: 增加键盘动作类型 @ccXxx1aoBai (#366) Cell: CellGroup 新增样式控制参数:cardBorderRadius
🌈 0.1.8 2024-12-30 🚀 Features TDUpload: 新增Upload组件 @TingShine (#405) SearchBar: 增加键盘动作类型 @ccXxx1aoBai (#366) Cell: CellGroup 新增样式控制参数:cardBorderRadius(卡片模式边框圆角)、cardPadding(卡片模式内边距)、titlePadding(标题内边距) @hkaikai (#409) DropdownMenu: 新增装饰器配置:decoration,可自定义菜单颜色和边框 @hkaikai (#408) ImageViewer: 支持显示图片标题 @ccXxx1aoBai (#411) Calendar: 新增monthTitleBuilder参数 @hkaikai (#419) Calendar: 新增pickerHeight、pickerItemCount参数,用于控制时间选择组件高度 @hkaikai (#421) Toast: 支持自定义蒙层背景色 @ccXxx1aoBai (#423) Rate: 支持disabeld 参数 @hkaikai (#357) Calendar: 修改CalendarBuilder返回值为Widget @Luozf12345 (#396) SearchBar: 新增只读属性与点击事件 @shizhe2018 (#393) Dialog: TDDialogButtonOptions新增属性字体大小 @shizhe2018 (#381) DateTimePicker: 新增时间单位显示属性 @shizhe2018 (#383) Input: 新增additionInfo 左右显示位置 @shizhe2018 (#401)
🐞 Bug Fixes NoticeBar: 解决web端文字显示异常问题 @ccXxx1aoBai (#351) Rate: 修复半选时,点击提示框没有触发onChange事件的问题 @hkaikai (#361) Calendar: 修复因月份日期行数不一致导致回显滚动位置不准确问题 @hkaikai (#363) Calendar: 优化min、max过大导致渲染卡顿问题 @hkaikai (#363) Input: 修复设置contentPadding时分割线与内容没对齐问题 @epoll-j (#365) Table: 解决固定列设置宽度溢出问题 @ccXxx1aoBai (#370) Popup: 修复点击蒙层关闭延迟问题 @hkaikai (#380) Cascader: 新增第一层点击选择功能 @shizhe2018 (#355) DateTimePicker: 新增限制时分秒 @shizhe2018 (#362) Textarea: 优化字数限制变化更新 @shizhe2018 (#385) TabBar: 修复labelStyle和unselectedLabelStyle 不生效的问题 @shizhe2018 (#399) Picker: 修改多层弹框,滑动无法选择颜色问题 @shizhe2018 (#413) SearchBar: 修复SearchBar聚集时默认位置抖动,以及光标未居中的问题 @Luozf12345 (#417) Dialog: 修改Dialog可以只传contentWidget,不用传title和content @Luozf12345 (#418) TDBottomTabBar: 修复iconText模式,底部溢出2.5像素 @epoll-j (#422)
🚧 Others 适配FlutterSdk3.25,最低支持版本调整为3.16.0 @shizhe2018 (#378) 修改Example英文版文案 @shizhe2018 (#382) 升级flutter_slidable版本 @Luozf12345 (#407) demo增加组件搜索功能 @Luozf12345 (#410) 更新Icons @Luozf12345 (#420)
TUpload: Added Upload component @TingShine (#405)SearchBar: Added keyboard action type @ccXxx1aoBai (#366)Cell: CellGroup added style control parameters: cardBorderRadius (card mode border radius), cardPadding (card mode padding), titlePadding (title padding) @hkaikai (#409)DropdownMenu: Added decorator configuration: decoration, which can customize menu color and border @hkaikai (#408)ImageViewer: Supports displaying image titles @ccXxx1aoBai (#411)Calendar: Added monthTitleBuilder parameter @hkaikai (#419)Calendar: Added pickerHeight, pickerItemCount parameters to control the height of the time selection component @hkaikai (#421)Toast: Supports customizing the overlay background color @ccXxx1aoBai (#423)Rate: Supports disabled parameter @hkaikai (#357)Calendar: Modified CalendarBuilder return value to Widget @Luozf12345 (#396)SearchBar: Added read-only attribute and click event @shizhe2018 (#393)Dialog: TDialogButtonOptions added font size attribute @shizhe2018 (#381)DateTimePicker: Added time unit display attribute @shizhe2018 (#383)Input: Added additionInfo left and right display position @shizhe2018 (#401)NoticeBar: Fixed the issue of abnormal text display on the web @ccXxx1aoBai (#351)Rate: Fixed the issue where the onChange event was not triggered when clicking the tooltip in half selection @hkaikai (#361)Calendar: Fixed the issue of inaccurate scroll position due to inconsistent number of rows in the month date @hkaikai (#363)Calendar: Optimized the issue of rendering lag caused by too large min and max @hkaikai (#363)Input: Fixed the issue where the dividing line and content were not aligned when setting contentPadding @epoll-j (#365)Table: Fixed the issue of overflow when setting the width of fixed columns @ccXxx1aoBai (#370)Popup: Fixed the issue of delay in closing when clicking on the overlay @hkaikai (#380)Cascader: Added the function of clicking to select the first layer @shizhe2018 (#355)DateTimePicker: Added restrictions on hours, minutes, and seconds @shizhe2018 (#362)Textarea: Optimized the update of word limit changes @shizhe2018 (#385)TabBar: Fixed the issue where labelStyle and unselectedLabelStyle did not take effect @shizhe2018 (#399)Picker: Fixed the issue of unable to select color when sliding in multi-layer pop-up @shizhe2018 (#413)SearchBar: Fixed the issue of SearchBar jittering at the default position when focusing, and the cursor not being centered @Luozf12345 (#417)Dialog: Modified Dialog to only pass contentWidget, no need to pass title and content @Luozf12345 (#418)TBottomTabBar: Fixed the issue of bottom overflow by 2.5 pixels in iconText mode @epoll-j (#422)TDNoticeBar: 新增noticeBar组件 @ccXxx1aoBai
2024-10-16TDNoticeBar: 新增noticeBar组件 @ccXxx1aoBai (#162)Result: 新增Result结果组件 @shinyina (#220)TimeCounter: 计时组件支持超过转换单位的时间展示,原TDCountDown组件改名为TimeCounter @hkaikai (#272)Calendar: 新增Calendar 日历组件 @hkaikai (#271)Indexes: 新增索引组件 @hkaikai (#321)Table: 新增table组件 @ccXxx1aoBai (#244)Rate: 新增Rate组件 @ hkaikai (#338)Dialog: 支持自定义内容内边距和按钮 @ccXxx1aoBai (#289)Drawer: 支持控制分割线显隐,支持自定义抽屉背景色,支持控制显示最后一条分割线 @ccXxx1aoBai (#278)DropdownMenu: 新增 图标/宽度/高度/图标和文字的对齐方式 控制参数 @hkaikai (#297)Search: 增加action和onActionClick属性 @Ezer015 (#263)Avatar: 增加onTap事件 @ccXxx1aoBai (#344)TDDropdownMenu: TDDropdownItem新增tabBarFlex参数,控制宽度占比 @hkaikai (#338)SearchBar:Feature/td searchbarfix 新增光标高属性 @shizhe2018 (#337)TimeCounter: 添加正向计时功能 @epoll-j (#246)NavBar :[NavBar]支持设置底部阴影 @ccXxx1aoBai (#284)Cell: 添加自定义padding参数 @epoll-j (#276)Input: 增加onTapOutside回调 @epoll-j (#280)Picker: 增加自定义leftText、rightText @epoll-j (#301)Slider:Feature/tdslider 新增文本换行功能 @shizhe2018 (#329)Radio:Feature/tdRadioGroup 新增自带换行,设置行列数 @shizhe2018 (#331)Dialog:新增自定义输入框 @shizhe2018 (#333)TDNavBar:添加flexibleSpace参数 @Luozf12345 (#341)TDSearch:添加搜索框焦点获取及清除事件 @Luozf12345 (#342)ImageViewer: 解决defaultIndex无效问题 @ccXxx1aoBai (#292)TimeCounter: 修复无法重复重置问题 @hkaikai (#272)DropdownMenu: 调整弹出层逻辑,修复无法监听后退问题; @hkaikai (#297)DatePicker: 销毁时移除年月日上监控,避免内存泄露;新增onSelectedItemChanged事件 @hkaikai (#300)SideBar: 解决自定义选中样式文字不居中问题 @ccXxx1aoBai (#313)Popup: 解决快速点击蒙层多次返回问题 @ccXxx1aoBai (#318)ImageViewer: 解决删除首位图片显示异常问题 @ccXxx1aoBai (#322)SideBar: 解决延迟加载组件导致瞄点功能异常问题 @ccXxx1aoBai (#343)TDDropdownMenu: 优化menu显示文字超出显示省略号 @hkaikai (#338)NoticeBar: 解决无法跟随主题色问题 @ccXxx1aoBai (#350)Button: 修复设置shape为square或circle时出现overflow @epoll-j (#257)Slider: bugfix:修复tb_slider setState不更新问题 @arvinwli (#298)Cascader: 修改列表排序问题 @shizhe2018 (#303)Popup:解决键盘出现会遮挡Popup里的输入框 @epoll-j (#264)Cascader:修改联动时间限制范围逻辑 @shizhe2018 (#242)Loading:修复Loading显示后立即dismiss无法生效的问题 @Luozf12345 (#340)TNoticeBar: Added noticeBar component @ccXxx1aoBai (#162)Result: Added Result component @shinyina (#220)TimeCounter: Timer component supports time display beyond conversion units, original TCountDown component renamed to TimeCounter @hkaikai (#272)Calendar: Added Calendar component @hkaikai (#271)Indexes: Added Indexes component @hkaikai (#321)Table: Added table component @ccXxx1aoBai (#244)Rate: Added Rate component @hkaikai (#338)Dialog: Supports custom content padding and buttons @ccXxx1aoBai (#289)Drawer: Supports controlling the visibility of the divider, custom drawer background color, and controlling the display of the last divider @ccXxx1aoBai (#278)DropdownMenu: Added control parameters for icon/width/height/icon and text alignment @hkaikai (#297)Search: Added action and onActionClick properties @Ezer015 (#263)Avatar: Added onTap event @ccXxx1aoBai (#344)TDropdownMenu: Added tabBarFlex parameter to TDropdownItem to control width ratio @hkaikai (#338)SearchBar: Feature/td searchbarfix added cursor height property @shizhe2018 (#337)TimeCounter: Added forward timing function @epoll-j (#246)NavBar: [NavBar] supports setting bottom shadow @ccXxx1aoBai (#284)Cell: Added custom padding parameter @epoll-j (#276)Input: Added onTapOutside callback @epoll-j (#280)Picker: Added custom leftText, rightText @epoll-j (#301)Slider: Feature/tdslider added text wrapping function @shizhe2018 (#329)Radio: Feature/tdRadioGroup added built-in line wrapping, set number of rows and columns @shizhe2018 (#331)Dialog: Added custom input box @shizhe2018 (#333)TNavBar: Added flexibleSpace parameter @Luozf12345 (#341)TSearch: Added search box focus acquisition and clear events @Luozf12345 (#342)ImageViewer: Fixed defaultIndex invalid issue @ccXxx1aoBai (#292)TimeCounter: Fixed issue where it could not be reset repeatedly @hkaikai (#272)DropdownMenu: Adjusted popup layer logic, fixed issue where back button could not be listened to @hkaikai (#297)DatePicker: Removed monitoring on year, month, and day when destroyed to avoid memory leaks; added onSelectedItemChanged event @hkaikai (#300)SideBar: Fixed issue where custom selected style text was not centered @ccXxx1aoBai (#313)Popup: Fixed issue where multiple returns occurred when quickly clicking the mask @ccXxx1aoBai (#318)ImageViewer: Fixed issue where deleting the first image caused display anomalies @ccXxx1aoBai (#322)SideBar: Fixed issue where delayed loading components caused anchor point function anomalies @ccXxx1aoBai (#343)TDropdownMenu: Optimized menu display text to show ellipsis when exceeding display limit @hkaikai (#338)NoticeBar: Fixed issue where it could not follow the theme color @ccXxx1aoBai (#350)Button: Fixed overflow issue when setting shape to square or circle @epoll-j (#257)Slider: Bugfix: Fixed issue where tb_slider setState did not update @arvinwli (#298)Cascader: Fixed list sorting issue @shizhe2018 (#303)Popup: Fixed issue where the keyboard would cover the input box in the Popup @epoll-j (#264)Cascader: Fixed linkage time limit range logic @shizhe2018 (#242)Loading: Fixed issue where dismissing Loading immediately after showing did not take effect @Luozf12345 (#340)TDInput: 新增inputAction API,支持设置键盘行为;新增spacer API,可自定义组件间距 @ccXxx1aoBai
2024-07-24cell: 新增单元格组件 @hkaikai (#150)TDInput: 新增inputAction API,支持设置键盘行为;新增spacer API,可自定义组件间距 @ccXxx1aoBai (#184)Drawer: 新增drawer组件 @hkaikai (#178)swipeCell: 新增swipeCell 组件 @hkaikai (#218)TDSteps: add TDSteps component. @aaronmhl (#199)TDImageViewer: 新增图片预览组件 @ccXxx1aoBai (#187)TDToast: 解决duration属性无效问题 @ccXxx1aoBai (#167)CountDown: 添加 开始/重置/暂停/继续 的控制功能 @hkaikai (#175)TDInput: 解决label溢出问题 @ccXxx1aoBai (#184)Popup: 支持位置,大小设置 @hkaikai (#191)TDText: 增加全局字体配置和加载网络字体的能力 @Luozf12345 (#232)Cell: Added Cell component @hkaikai (#150)Drawer: Added Drawer component @hkaikai (#178)SwipeCell: Added SwipeCell component @hkaikai (#218)Steps: Added Steps component @aaronmhl (#199)ImageViewer: Added ImageViewer component @ccXxx1aoBai (#187)Cascader: Added Cascader component @shizhe2018 (#195)Fab: Added Fab component @TingShine (#239)BackTop: Added BackTop component @TingShine (#239)TreeSelect: Added TreeSelect component @TingShine (#239)Collapse: Added Collapse component @dorayx (#239)Input: Added inputAction API to support setting keyboard actions; added spacer API to customize component spacing @ccXxx1aoBai (#184)Text: Added global font configuration and the ability to load web fonts @Luozf12345 (#232)CountDown: Added start/reset/pause/resume control functions @hkaikai (#175)Popup: Supported position and size settings @hkaikai (#191)Toast: Fixed the issue where the duration attribute was ineffective @ccXxx1aoBai (#167)Input: Fixed the label overflow issue @ccXxx1aoBai (#184)Tabs: For the tabs component, outlineType 'capsule' now supports setting selected and unselected tab background colors, and outlineType 'card' supports setting the selected tab background color @ccXxx1aoBaiButton: Fixed the issue where properties could not be changed under the setState method @shizhe2018 (#201)SearchBar: Added a controller to the search bar, allowing external clearing of search text @shizhe2018 (#194)Slider: Added custom Decoration styles @shizhe2018 (#198)Empty: Added text size style API @shizhe2018 (#219)Dialog: Added input type background @shizhe2018 (#238)add: 新增TDDropdownMenu 下拉菜单 组件 @hkaikai
2024-05-31TDDropdownMenu:
TDTextarea:
TDBottomTabBar:
TDBadge:
TDRadio:
TDCheckbox:
TDImage:
TDInput:
TDDivider:
TDToast:
TDSideBar:
TDButton:
TDDialog:
TDropdownMenu:
TTextarea:
TBottomTabBar:
TBadge:
TRadio:
TCheckbox:
TImage:
TInput:
TDivider:
TToast:
TSideBar:
TButton:
TDialog:
add: 新增TDCountDown倒计时组件 @hkaikai
2024-04-08TDCountDown:
TDTheme:
TDText:
TDBottomTabBar:
TDCheckbox:
TDTabBar:
TDSwitch:
TDDialog:
TDSlider:
TDButton:
TDInput:
TCountDown:
TTheme:
TText:
TBottomTabBar:
TCheckbox:
TTabBar:
TSwitch:
TDialog:
TSlider:
TButton:
TInput:
add:支持通过TDButtonStyle.radius自定义圆角大小
TDButton:
TDPicker:
TDSwitch:
TDBottomTabBar:
TDNavBar:
TDDialog:
TDButton:
TDInput:
TDAlertDialog:
TDRadio:
TDTabBar:
TButton:
TPicker:
TSwitch:
TBottomTabBar:
TNavBar:
TDialog:
TButton:
TInput:
TAlertDialog:
TRadio:
TTabBar:
fix: type为TDInputType.twoLine下leftLabelStyle设置不生效
2024-01-08TDImage:
TDLoading:
TDPopup:
TDAvatar:
TDBottomTabBar:
TDButton:
TDSwiper:
TDInput:
TImage:
TLoading:
TPopup:
TAvatar:
TBottomTabBar:
TButton:
TSwiper:
TInput:
reset code style, can run on 3.7.x
- publisher to pub.dev stable
- update code style
- update License
- update example main.dart
update slider component, make it is not depend on flutter sdk version
- publisher to pub.dev
- fix some bugs
delete default value of TText's package prop, allow set it null value
update ReadMe.md, modify export file is 'tdesign_flutter.dart'
the first version, add button,text and other components.
One column per quarter.