-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
Description
你建议的文案是什么
希望能够统一input组件和cell组件设置icon时时候的间距
可以看到当前两个组件的间距是不一样,希望能够统一一下
return cForm(
"基本设置",
Column(
children: [
TDInput(
leftLabel: "卡片名称",
leftIcon: Padding(padding: EdgeInsets.only(right: 8.0),child: Icon(
TDIcons.card,
color: TDTheme.defaultData().brandNormalColor,
),),
backgroundColor: Colors.white,
hintText: "请输入卡片名称",
needClear: true,
),
TDCell(
title: "有效期",
leftIcon: TDIcons.calendar,
onClick: (TDCell cell) {
TDPicker.showDatePicker(
Get.context!,
title: '选择有效期',
onConfirm: (date) {
// 处理选择的日期
Navigator.of(Get.context!).pop();
},
);
},
),
TDCell(
title: "模板类型",
leftIcon: TDIcons.template,
description: "请选择模板类型",
arrow: true,
onClick: (TDCell cell) {
TDPicker.showMultiPicker(
Get.context!,
title: '选择模板类型',
onConfirm: (selected) {
// 处理选择的模板类型
Navigator.of(Get.context!).pop();
},
data: [
["模板类型1", "模板类型2", "模板类型3"],
],
);
},
),
],
),
);
}```
## IssueShoot
预估时长:3
期望完成时间:2025-7-7
开发难度:中
参与人数:1
需求对接人:jackjflin
验收标准:实现期望改造效果,提 MR并通过 验收无误
备注:最终激励以实际提交 pr 并合并为准。TDesignFlutter贡献指南:https://tdesign.tencent.com/flutter/develop