-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
FutureBuilder Error #19952
Comments
That's very likely an issue with your code but it's hard to make suggestions without seeing the code. In Dart variables of type |
@zoechi here's my code snippet. Something wrong I didn't detect? return new MaterialApp(
...
home: new FutureBuilder<bool>(
future: sessionManager.isLoggedIn(), //Async method (this returns false by default if null)
builder: (BuildContext context, AsyncSnapshot<bool> isLoggedIn) {
return isLoggedIn.data ? new MainPageWidget() : new IntroWidget();
}),
... |
Check the sample code in https://docs.flutter.io/flutter/widgets/FutureBuilder-class.html
Async methods complete delayed. Until it completes the |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
The text was updated successfully, but these errors were encountered: