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

click问题 #56

Open
lantah-1 opened this issue Jan 29, 2021 · 1 comment
Open

click问题 #56

lantah-1 opened this issue Jan 29, 2021 · 1 comment

Comments

@lantah-1
Copy link

void onClicked(String event)

上面的clicked方法中,参数context都没有,后续怎样通过Navigator.of(context)方法跳转?

@dengyin2000
Copy link
Owner

DynamicWidgetBuilder.build(jsonString, buildContext, new DefaultClickListener());

这个也是在widget的build方法中创建,你可以传到你的ClickListener里面。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants