remove app padding when app in landscape mode

38 Views Asked by At

i've created absolutely new app and i replaced main method by

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  //SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);

  await SystemChrome.setPreferredOrientations([
    DeviceOrientation.landscapeLeft,
    DeviceOrientation.landscapeRight,
  ]);

  await SystemChrome.setEnabledSystemUIMode(
    SystemUiMode.immersive,
    overlays: [],
  );

  runApp(const MyApp());
} 

enter image description here and i have black line on the left side and i don't know how to remove it. PS tried all values in setEnabledSystemUIMode

0

There are 0 best solutions below