We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
单独跑 demo 没问题,但是按照 demo 加在页面里就出了这个错,百思不得其解
The text was updated successfully, but these errors were encountered:
遇到同样的问题,请问解决了吗?
Sorry, something went wrong.
你需要把Intro包裹在class的外层。而不是build内的树的跟节点。 例如有一个界面是:HomePage
错误的写法是:
@override Widget build(BuildContext context) { return Intro(child: IntroStepBuilder(child:Text('data'))) }
正确的写法是:
第一层 Intro(child: HomePage()), 第二层(HomePage内部) class HomePage extends StatefulWidget{ //... @override Widget build(BuildContext context) { return IntroStepBuilder(child:Text('data')) } }
遵循以上结构才可以,
No branches or pull requests
单独跑 demo 没问题,但是按照 demo 加在页面里就出了这个错,百思不得其解
The text was updated successfully, but these errors were encountered: