You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.
On the first run of this lab, an error shows up when calling setPreferredOrientations() in main() because WidgetsFlutterBinding.ensureInitialized(); needs to be called first.
That line of code is missing from the codelab. Adding it solves the issue.
The text was updated successfully, but these errors were encountered:
@flutter 1.12.13+hotfix.5
From: https://codelabs.developers.google.com/codelabs/flutter-cupertino/#2
On the first run of this lab, an error shows up when calling
setPreferredOrientations()
inmain()
becauseWidgetsFlutterBinding.ensureInitialized();
needs to be called first.That line of code is missing from the codelab. Adding it solves the issue.
The text was updated successfully, but these errors were encountered: