Skip to content

Commit

Permalink
Merge pull request #512 from HM-Anwar/issue-496/lock-orientation
Browse files Browse the repository at this point in the history
[BUG] Lock Orientation
  • Loading branch information
AbdullahAhmedSoomro committed Oct 17, 2023
2 parents 41e96eb + 81d04fd commit ad5bc8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ String createDirectory({required String path}) {

void main() async {
WidgetsFlutterBinding.ensureInitialized();
await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);

assert(
kEnvironment.isStaging,
'Please run in dev environment for debugging. i.e. --dart-define=flavor=qa',
Expand Down

0 comments on commit ad5bc8c

Please sign in to comment.