Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[组件名称] toast 使用navigatorKey.currentContext! 报错 #387

Open
mimimiaomiao1 opened this issue Dec 4, 2024 · 2 comments
Open
Labels

Comments

@mimimiaomiao1
Copy link

tdesign-flutter 版本

最新版

重现链接

No response

重现步骤

final GlobalKey navigatorKey = new GlobalKey();

ScaffoldMessenger.of(navigatorKey.currentContext!)
.showSnackBar(SnackBar(content: Text('这是一条提示')));

TDToast.showFail('请求失败',
    direction: IconTextDirection.vertical,
    context: navigatorKey.currentContext!);

上面的可用,TDToast就报错。

期望结果

No response

实际结果

No response

Flutter版本

No response

设备与机型信息

No response

系统版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented Dec 4, 2024

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

Copy link
Contributor

github-actions bot commented Jan 4, 2025

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

@github-actions github-actions bot added the Stale label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant