Tencent / Tencent/tdesign-flutter
[TDTextarea] 组件backgroundColor不生效,需使用textareaDecoration
Open
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.6
重现链接
No response
重现步骤/代码
TDTextarea(
controller: controller.contentController,
hintText: '请输入文字',
backgroundColor: Colors.black,
maxLines: 4,
minLines: 4,
maxLength: 100,
indicator: true,
onChanged: (value) {},
),
根据文档使用backgroundColor,不生效,需要使用textareaDecoration
TDTextarea(
controller: controller.contentController,
hintText: '请输入文字',
textareaDecoration: BoxDecoration(
color: Colors.black,
),
maxLines: 4,
minLines: 4,
maxLength: 100,
indicator: true,
onChanged: (value) {},
),
期望结果
No response
实际结果
No response
Flutter版本
3.35.7
设备与机型信息
No response
系统版本
No response
补充说明
No response
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
Search the TDTextarea implementation and inspect how backgroundColor and textareaDecoration are applied. Reproduce the provided example on Flutter 3.35.7, then verify that the documented backgroundColor behavior works consistently with the decoration-based usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100