Video Player Default Fullscreen Mode turns into landscape mode for Apk and Ios Devices

Widgets & Design

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.

What have you tried so far?

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

Did you check FlutterFlow's Documentation for this topic?
Yes