Tencent / Tencent/tdesign-flutter

[TDDialog] 弹框文本按钮的点击效果不对

Open
#956 1 comment 0 reactions 0 assignees View on GitHub

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组件的演示截图:
Image

实际结果

机器上运行的按钮点击效果截图(官网Flutter的弹框演示也是这样的问题):
Image

Flutter版本

Flutter(3.40)

设备与机型信息

Android(XIAOMI 17 Pro)

系统版本

Android 16

补充说明

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.