1

I'm building an application in flutter whose layout is not scrollable, which makes it difficult to use in split screen mode.Is there a way to restrict split screen mode in flutter?

ARYAN KHERA
  • 13
  • 2
  • 4
  • I would suggest that you provide the flutter version you're using as well as some example code. This for sure is gonna help others to figure out how to best help you. – Yoanis Gil Jun 21 '19 at 01:20
  • [Disable Split screen in android studio](https://stackoverflow.com/questions/40259027/disable-split-screen-android) You must write it natively –  Jun 21 '19 at 12:00

3 Answers3

5

You should add

android:resizeableActivity="false"

in the androidManifest.xml file.

You should workaround for iOS in the swift native way in Runner folder

Viktor
  • 2,623
  • 3
  • 19
  • 28
Kiran
  • 51
  • 1
  • 2
3

For android, you would do it this way, I'm sure it would work the same on Flutter if you go into the android folder of your flutter app

Conner
  • 1,771
  • 11
  • 24
0

image of runner folder open in xcodefor the ios, open the runner folder in the xcode, click on the runner app, with your app icon, check the image below, under the status bar, you can choose to enable resizing or not also to enable portrait alone or landscape, you can check the device orientation in the image below. This will help to handle both resizing and device orientation for ios in flutter