If you run the created application with an iPad simulator, it will be displayed in iPhone size.

Asked 1 years ago, Updated 1 years ago, 61 views

We are developing a mobile app on Flutter.
If you run the created application on the iPad simulator, it will be displayed in iPhone size.
There is an enlarged mark in the lower right corner, and if you click on it, the size will increase, but the aspect ratio will remain the size of the iPhone app and the blank area will be black.
I think I'm implementing it so that the full screen of the device is displayed in full size, but I'd like you to point out a problem.

·Environment
Android Studio Arctic Fox | 2020.3.1 Patch 3 XCode v13.1
macOS 11.4
Apple M1 chip Memory: 1280M
Cores—8

import'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';


void main() {
  runApp (MainMenu());
}

class MainMenu extensions StatefulWidget{
  MainMenu();

  @override
  _MainMenuCreateState()=>_MainMenu();
}

class_MainMenu extensions State<MainMenu>{
  @override
  Widget build (BuildContext context) {
    US>return MaterialApp(
        debugShowCheckedModeBanner: false,
      home —Home()
    );
  }
}


class Home extensions StatefulWidget {
  @override
  _Home createState()=>_Home();
}

class_Home extensions State<Home>{
  
  @override
  Widget build (BuildContext context) {
    US>return Container(
      height —double.infinity,
      width —double.infinity,
      child —Scaffold(
        appBar —AppBar(
          title:Text('title'),
        ),
        body: Center(
          // Abbreviated
        ),
      ),
    );
  }
}

xcode android-studio flutter dart

2022-09-30 16:17

1 Answers

I saw this site
https://www.reddit.com/r/FlutterDev/comments/c133xz/flutter_ipados/

They say: Google was making samples in this repository.

https://github.com/2d-inc/developer_quest

You may see the code, execute it, and get hints. I only know this much, so please take care of it.

That's it


2022-09-30 16:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.