Say you’re trying to build a Snapchat-like application, like this: Building a snapchat-like interface in Flutter
If you just want to see the code, check it out here!medium.com Ideally you’d want to “lock” the device orientation and not allow it to change as the user rotates their phone; and this was surprisingly tricky (and easy) to set. SystemChrome.setPreferredOrientations returns a Future . We want to wait until that’s done and then (pun intended) we can start our app.