Skip to content

Commit

Permalink
feat: let's get locked on portrait mode (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
gokadzev committed Dec 18, 2024
1 parent 14d0638 commit ae06038
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
android:taskAffinity=""
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:screenOrientation="portrait"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">

Expand Down
4 changes: 4 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ class _MusifyState extends State<Musify> {
systemNavigationBarColor: Colors.transparent,
),
);
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
});

try {
Expand Down

0 comments on commit ae06038

Please sign in to comment.