Flutter Tutorial - MacBook Simulator Setup

Опубликовано: 21 Август 2024
на канале: theailanguage
123
1

Flutter tutorial. Needed for even no code tools like #flutterflow and theailanguage

Lesson 2
0:00 Intro, Recap
0:22 Create Sample App
1:02 List Devices
1:32 Open iPhone Simulator
2:40 Install iOS 17.5 runtime, SDK
6:55 Run App on iPhone Simulator
7:55 Install Android Simulator
9:38 Run App on Android Simulator
11:12 Run on Chrome
12:30 Run on MacOS
13:28 Outro


After the environment has been setup, it is best to setup all devices for testing as follows -

Create a sample app if you are just testing
flutter create sample_app

---------------------------------------------------------------------

List of run destinations
flutter devices

---------------------------------------------------------------------

Run on iOS simulator
Download iOS 17.5 Simulator runtime from https://developer.apple.com/download/...

IMPORTANT - move the downloaded file out of the downloads directory to the development directory

Install using instructions at https://developer.apple.com/documenta...

xcrun simctl runtime add "~/development/iOS_17.5_Simulator_Runtime.dmg"
open –a simulator
Run flutter devices to check device id

flutter run –d [device id]

---------------------------------------------------------------------

Run on android simulator
Open android studio - more actions - Virtual Device Manager
Click the + button - phone category
Select an image (like API level 34 Upside down cake)

Download and configure the virtual device

Start the device
Run flutter devices to check device id
flutter run –d [device id]

---------------------------------------------------------------------

Run on chrome
flutter run-d chrome web –web-port 8081

---------------------------------------------------------------------

Run on macos
flutter run –d macos

---------------------------------------------------------------------

Run on any available device
flutter run –d [device id]


Смотрите видео Flutter Tutorial - MacBook Simulator Setup онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь theailanguage 21 Август 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 12 раз и оно понравилось людям.