Tencent / Tencent/tdesign-flutter
[TDAlertDialog] 支持 width
Open
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 1.2k
- Forks
- 182
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 88
Description
这个功能解决了什么问题
TDAlertDialog 宽度无法自定义,包括 TDAlertDialog.vertical
你建议的方案是什么
- TDAlertDialog 和 TDAlertDialog.vertical 增加 width 参数
-
- TDDialogScaffold 的 width 的固定值 311 调整为根据屏幕宽度动态计算
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 by locating TDAlertDialog, TDAlertDialog.vertical, and TDDialogScaffold in the Flutter library and inspect how dialog width is currently determined. Confirm the desired width parameter behavior and the screen-width calculation, then verify that both dialog variants and the scaffold use the resulting width.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100