Tencent / Tencent/tdesign-flutter
[TDDialog] 弹框文本按钮的点击效果不对
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.7
重现链接
No response
重现步骤/代码
将弹框的按钮设置为文本样式时,点击按钮的背景形状不正确。
TDAlertDialog(
...
buttonStyle: TDDialogButtonStyle.text,
);
期望结果
官网VUE组件的演示截图:
实际结果
机器上运行的按钮点击效果截图(官网Flutter的弹框演示也是这样的问题):
Flutter版本
Flutter(3.40)
设备与机型信息
Android(XIAOMI 17 Pro)
系统版本
Android 16
补充说明
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
Start at the TDAlertDialog entry point and trace the TDDialogButtonStyle.text behavior, then reproduce the pressed-state appearance on Android using the example from the issue. Done means the text-style button's pressed background shape matches the expected dialog behavior; verify the result against the provided screenshots.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100