Tencent / Tencent/tdesign-flutter

[TDAlertDialog] 支持 width

Open
#889 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

这个功能解决了什么问题

TDAlertDialog 宽度无法自定义,包括 TDAlertDialog.vertical

你建议的方案是什么
  1. TDAlertDialog 和 TDAlertDialog.vertical 增加 width 参数
    1. TDDialogScaffold 的 width 的固定值 311 调整为根据屏幕宽度动态计算

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.