Tencent / tdesign-flutter

A Flutter UI components lib for TDesign.
https://tdesign.tencent.com/flutter
447 stars 51 forks source link

TDButton组件:按钮点事件设置按钮为disable = true,未起效果,点击其他按钮setState,才能生效 #196

Open ArtLeeRen opened 1 month ago

ArtLeeRen commented 1 month ago

tdesign-flutter 版本

重现链接

No response

重现步骤

TDButton( key: Key(target.taskTargetId ?? ''), onTap: () async { disabled = true; setState(); }, text: '无问题', size: TDButtonSize.small, type: TDButtonType.outline, theme: TDButtonTheme.defaultTheme, disabled: disabled, ),

期望结果

按钮disabled

实际结果

没有disabled

Flutter版本

No response

设备与机型信息

No response

系统版本

No response

补充说明

No response

github-actions[bot] commented 1 month ago

👋 @ArtLeeRen,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

github-actions[bot] commented 1 hour ago

这个 Issue 被标记为了过时 stale ,因为它已经持续 30 天没有任何活动了。删除 stale 标签或评论,否则将在 7 天内关闭。