Flutter Tutorial - MacBook Simulator Setup

Published: 21 August 2024
on channel: 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]


Watch video Flutter Tutorial - MacBook Simulator Setup online without registration, duration hours minute second in high quality. This video was added by user theailanguage 21 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 12 once and liked it people.