The video player defaults to fullscreen mode in landscape orientation (directly, without changing device's auto rotate) on APK and iOS devices, whereas it functions correctly on the web application.
Video Player Default Fullscreen Mode turns into landscape mode for Apk and Ios Devices
Widgets & Design
I have written a custom action named setPortraitMode() and written the code as
import 'package:flutter/services.dart';
Future setPortraitMode() async {
// Add your function code here!
await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
}
and in main.dart file
added the custom action in INITIAL Action
Yes