- Flutter Mac Os
- Download Flutter For Mac
- Flutter M1
- Install Flutter Mac
- Flutter Download Mac Download
- Jdk Download
- Flutter Download Mac Version
Setting the Site URL on mac. Adding App Icon on mac. Setting App Name on mac. Firebase on mac. Change Package Name. First, download the Flutter here: https. Download Flutter SDK Page. Click the blue-button to download the SDK. Git for Windows. This page opens up when you click the Git for Windows link and thedownload starts automatically.
- Jul 02, 2021 Installing Flutter on Mac OS permalink. Let's start with installing Flutter so we can build a basic Hello World application (Hey, who doesn't like those π). I'm a big fan of Homebrew me it's the quickest way to install the Flutter. Open up your favorite terminal and execute the following command. Brew install-cask flutter.
- Install and Setup Flutter on MAC OS Catalina. If you see flutter version, then you have successfully install flutter; Configure Android Studio. Download android.
Image designed by Giridhar Reddy Vennapusa
Flutteris an open source mobile app development SDK from Google, used to build beautiful Native Android and iOS apps with a single codebase. Dart is the language used to develop Flutter apps.
Flutter is now out of beta andFlutter 1.0 was announced on Dec 4th.
This article covers how to install Flutter and the development environment, and also shares solutions for the most common requirements and issues faced in Flutter app development. The process below is more helpful for Android developers who want to try their hand at Flutter app development.
#1 βSetup
β
IDEs used to develop Flutter apps
Installation of Flutter
- Download Flutter Zip file.
- Extract Zip file.
- Add Flutter tool to the path from the terminal.
$ export PATH = $PATH: 'PWD'/flutter/bin
PWD β Present Working Directory.
This is a temporary path setting, so when you restart your system, you have to set the Flutter tool path again.
β
Note: To set the Flutter path permanently in MacOS and avoid setting on every restart, do as shown below in your MacOS terminal.
β
- touch .bash_profile
- open .bash_profile
- $ export PATH=$PATH: 'PWD'/flutter/bin
βPWDβ β Present Working Directory.
β
To verify Flutter installation and version
- flutter doctor -v
#2β Android Studio Configuration
β
Installation of Android Studio
β
To run the app in Android Emulator, you must install Android Studio to get the Android SDK and emulators.
- Download Android Studio and run the .dmg file. It will automatically install the latest Android SDK.
β
Add Dart Plugin to Android Studio
If you prefer to use Android Studio as your main IDE to develop Flutter, you have to set dart language support to Android Studio as shown below. From here we will be focusing more on Android Studio setup, but you could also use Visual Studio Code or IntelliJ (which is similar to Android Studio).
- Preferences β Plugins β Browse Repository β type Dart in search bar β Install and Restart Android Studio.
β
Add Flutter Plugin to Android Studio
- Preferences β Plugins β Browse Repository β type Flutter in search bar β Install and Restart Android Studio.
β
Create Android Emulator
- Tools β AVD Manager β Opens a window
- Select β Create Virtual Device
- Phone β Nexus 5X 5β2β³ β Oreo x86 β Android 8.0 β AVD Name(Nexus 5X API 26) β Finish
- Select Nexus 5X API 26 emulator β click on Launch AVD(start) button
β
β
#3ββiOS Simulator Setup
β
Installation of Xcode
- To execute the app in iOS simulator, we must install Xcode. Get Xcode from App Store and install.
β
Launch iOS Simulator from Android Studio
- You can see the Flutter Device Selection button below the toolbar in Android Studio.
- If you have already installed Xcode, clicking the Flutter Device Selection button opens the iOS simulator.
β
Useful iOS Simulator Commands
- Return to Home β Cmd+Shift+h
- See Recent Apps βCmd+Shift+h+h
- Quit SimulatorβCmd+q
β
#4βUsing Terminal to Run on Emulator or Simulator
β
Execute Flutter Apps from Terminal
- Run From Terminal β flutter run
- Run in all devices β flutter run -d all lib/welcome.dart
β
If your system is connected with multiple devices then, check the connected devices with this command β flutter devices
β
Running above command will list devices like below
SM G890UU β’ 4299a0c86788f678 β’ android-arm β’ Android 7.0 (API 24) (emulator)
β
Run in the selected device β flutter run -d 4299a0c86788f678
Check the specific design/run particular dart file in a selected device β flutter run -d 4299a0c86788f678 lib/main.dart
β
#5βββFlutter Project Structure
In this article, I am using Flutter with Android Studio.
β
Flutter Project Structure
In the Project section, the above screenshot shows the structure of the Flutter app.
β
- android: Has all the Android related files.
- iOS: Has all the iOS-related files.
- lib: Has all the dart files. This is the main folder, where we can write all the application code.
- test: Has all the testing code.
- images: I created this folder. This has all the images we used in our application.
- pubspec.yaml: Has all the third party dependencies and the assets we use in our application.
yamlβββYet Another MultiColumn Layout.
β
Add dependencies and images in pubspec.yaml file
flutter_rating is the third party dependency.
We have to specify assets in the pubspec.yaml. We can
specify file path with folder name and file name or only the folder name.
images/apple.jpeg β we can use only apple.jpeg image.
images/ β we can use all images that are in the images folder.
Make sure that dependencies are properly aligned with spaces. Otherwise, the images wonβt display. This particular issue is hard to figure out if you are fairly new to Flutter or YAML.
Flutter Mac Os
#6βββHow to Change App Name
β
In Android
β
Android folder β app β src β main β Open Manifest β change the label in Application tag.
android:name=βio.flutter.app.FlutterApplicationβ
android:label=βflutter_android_appβ/>
β
In iOS
β
iOS folder β Runner β info.plist β Edit the string under CFBundleName
<key>CFBundleName</key>
<string></string>flutter_ios_app
Download Flutter For Mac
β
#7βββHow to Change App Icon
β
In Android
β
Expand the Android folder β app β src β main β res β add app icons in mipmap folders.
β
Expand the Android folder β app β src β main β open Manifest β change the icon in Application tag.
android:name=βio.flutter.app.FlutterApplicationβ
android:label=βflutter_android_appβ
android:icon=β@mipmap/ic_launcherβ>
β
In iOS
β
Expand iOS folder β Runner β Assets.xcassets β AppIcon.appiconset
In that folder add all app icons.
β
Flutter M1
Expand iOS folder β Runner β Assets.xcassets β AppIcon.appiconset β update the Contents.json file.
β
#8βββHow to change Splash Image
β
In Android
Install Flutter Mac
β
Expand Android folder β res β drawable β add image
Expand Android folder β res β drawable β in Launch_background.xml, add bitmap tag.
<item></item>
android:gravity=βcenterβ
android:src=β@drawable/ios_androidβ />
Flutter Download Mac Download
β
In iOS
Jdk Download
β
Flutter Download Mac Version
Expand iOS folder β Runner β Assets.xcassets β LaunchImage.imageset β add all sizes of splash images in the folder
Expand iOS folder β Runner β Assets.xcassets β LaunchImage.imageset β β open Contents.json β change file name
β
I hope the above setup instructions and advice on how to set a few basic requirements are useful for beginners in Flutter app development. As Flutter is now out of beta, I look forward to seeing more and more developers using Flutter for developing Android and iOS apps with a single codebase. For motivation, check out this Widgets Library website built by the Flutter community.