Skip to content

Instantly share code, notes, and snippets.

@kosiara
Created September 2, 2018 09:07
Show Gist options
  • Save kosiara/b0c1ed4ee914a8d92ef3e8a8144277fa to your computer and use it in GitHub Desktop.
Save kosiara/b0c1ed4ee914a8d92ef3e8a8144277fa to your computer and use it in GitHub Desktop.
Flutter portrait only
void main() {
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])
.then((_) {
runApp(new MyApp());
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment