Tencent / Tencent/tdesign-flutter
[TDForm] FormItemNotifier->formVal
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 1.2k
- Forks
- 182
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 88
Description
tdesign-flutter 版本
0.2.4
重现链接
重现步骤/代码
class FormItemNotifier with ChangeNotifier {
bool isDisposed = false;
String _formVal = '';
String get formVal => _formVal;
upDataForm(val) {
_formVal = val;
notifyListeners();
}
@override
void dispose() {
super.dispose();
isDisposed = true;
}
}
这里写死了formVal 的类型为String,这样是不对的,应该是dynamic吧
期望结果
No response
实际结果
No response
Flutter版本
No response
设备与机型信息
No response
系统版本
No response
补充说明
No response
IssueShoot
- 预估时长:3
- 期望完成时间:2025-11-30
- 开发难度:中
- 参与人数:1
- 需求对接人:zflyluo
- 验收标准:验证问题是否存在,实现期望改造效果,提 MR并通过 验收无误
- 备注:最终激励以实际提交 pr 并合并为准。TDesignFlutter贡献指南:https://tdesign.tencent.com/flutter/develop
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in tdesign-component/lib/src/components/form/td_form_item.dart and inspect FormItemNotifier, especially the formVal declaration and update path. Verify the current type restriction with the form values used by the component, then run the relevant Flutter tests or checks; done means the notifier supports the intended value type without breaking existing form behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100