MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

What is flutter and how to use it for app development?

Flutter is Google’s portable UI (user interface) framework for producing modern, native and reactive mobile(Android, iOS) application, Web and desktop from a single codebase.
Flutter is an open-source project hosted on Github. It contributed by Google and the community . Flutter uses Dart language that compiles to native ARM code and production-ready JavaScript code.

Flutter is fast, and the rendering runs at 60 fps (frames per second) and 120fps for capable devices. The higher the fps, the smoother the animations and transitions.

Flutter provides tools to create beautiful and professional-looking applications to the developer and designers. Flutter have the function of hot reload to refresh the application in milliseconds when you are editing the application for adding new features in your existing app or new ones.

Flutter is built with C, C++, Dart and Skia (2D rendering engine ). Skia works with different types of hardware and software platforms. It is also used by Google Chrome, Chrome OS, Android, Mozilla Firefox and Firefox OS. Skia is sponsored and managed by Google.

How to setup Flutter environment in Windows ?

  1. Installing Flutter SDK from official https://flutter.dev/docs/get-started/install/windows
  2. Extract file at this location C:\src in your PC
  3. Add the Flutter tool to your path at system environment
    1. copy this location C:\src\flutter\bin
    2. open system environment then click on Environment Variables.. button
    3. Click on Path and then click on Edit Button
    4. then click on new button and add C:\src\flutter\bin location and click on Ok => OK => Ok
  4. Now open Windows PowerShell or CMD and Run flutter doctor to check every thing working fine or not.
Windows File Explorer showing the extracted flutter folder under C:\src
3-1. Extract Flutter SDK in C Driver under src folder
Windows System Properties dialog with the Environment Variables button highlighted
3-2. Environment Variables.
Environment Variables dialog with the user Path variable selected and the Edit button highlighted
3-3. Select Path and click on Edit Button.
Edit environment variable dialog listing C:\src\flutter\bin with the New button highlighted
3-4. Click on New Button and Add Location
PowerShell flutter doctor output with Android license and no connected device issues
4. PowerShell Window to Check Flutter dependencies

After above following steps you have to install Android Studio

Install Android Studio

Step 1 : Download and install Android Studio

Step 2 : after download click on software and go through Android Studio Setup Wizard

Android Studio official download page with the Download Android Studio button marked
Android Studio Offical website

Setup your Android Device

Run and Test your flutter app in your android device, you need and Android device running Android 4.1 or Higher.

  1. Open your Android device Settings
  2. go to About Phone and then click on 2-3 times on Build Number (according to different android device setting view can be changed so Click Here for detailed about USB Debugging setup)
  3. after clicking you will see a popup that you are a developer now.
  4. then go back and click on System and click on Developer options
  5. scroll and see under Debugging Tab a option named USB debugging then click on it.
  6. Now connect your Android device to PC and you will see a popup in your device , just click on Ok.
  7. run flutter doctor to see your device is connected or not.
Android Settings screen with the About phone option highlighted
Step 1 : About Phone Button
Android About phone screen showing Build number to tap several times to enable developer mode
Step 2 : About Phone Options
Android System settings screen with Developer options highlighted
Step 3 : Developer options
Android Developer options screen with the USB debugging toggle off and highlighted
Step 4 : USB debugging off
Android Allow USB debugging confirmation prompt with Cancel and OK buttons
Step 5: USB debugging on

Set up the Android emulator

Test you flutter app in Android Emulator, follow below steps:

  1. Open Android Studio
  2. run any Android Studio Project
  3. then click on Tools Menu → AVD Manager → Android Virtual Device Manger popup will appear
  4. Then click on Create Virtual Device…
  5. then a Virtual Device Configuration popup will appear → Select Phone Pixel 2 and click on Next → Select Android version Oreo (Android 8.1) → Click on Next Button → Type Your AVD Name → Click On Finish Button
  6. After that it will take some time to download the files to setup Android Virtual Device
  7. In Android Virtual Device Manager, click Run in the toolbar. The emulator starts up and displays the default canvas for your selected OS version and device.
Android Studio 4.0 welcome screen with an option to start a new Flutter project
Android Studio Front view
Android Studio Tools menu open with AVD Manager highlighted
AVD Manager under Tools Menu
Android Virtual Device Manager listing emulators with the Create Virtual Device button highlighted

Set up an Editor

Here i am going to setup a editor Visual Studio Code for code practices. you can also install other editors Like Sublime, IntelliJ IDEA and Emacs etc.

  1. Download and Install VS Code
  2. then install plugin flutter and dart to work with Flutter projects.
Visual Studio Code website homepage with the Download for Windows Stable Build button
VS Code for Windows

In the above steps you will learn how to setup flutter, Android Studio and Visual Studio Code. After that you can run a flutter project easily. i will show you the hello world app in Flutter to my next blog. Thanks for reading my blog and if you want some help on above blog then comment us. we will help you to solve those issues.

References :

  1. Flutter Youtube Channel
  2. Google’s Flutter tutorial
  3. VS Code Setup and First app
  4. Flutter Beginner Course

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
MotoShare.in provides the perfect two-wheeler for every occasion—daily commuting, weekend escapes, tourist exploration, or test-riding your dream bike. Simplify your mobility with us!

Related Posts

Error – Dart SDK is not configured in Android Studio.

First of all whenever you see this error then see your flutter framework SDK path is set or not. In my system it is not configures. so…

Read More

Ultimate macOS Guide: Flutter + Android SDK

It covers Android SDK, Java (JDK), Flutter, Path wiring, Plugin setup, Validation, AVD/emulator, and creating a project—plus quick fixes. Assumptions: default shell = zsh, Apple Silicon path…

Read More

What is Flutter and use cases of Flutter?

What is Flutter? Flutter is an open-source UI software development toolkit developed by Google. It is applied for building natively compiled applications for mobile, web, and desktop…

Read More

Best & Most Popular 5 Code Editor for Dart programming Language

In this tutorial im going to share top and best 5 code editor for dart programming language. These code editor is very helpful for developers. Top 5…

Read More

[Solved] Flutter : Error: The getter ‘subhead’ isn’t defined for the class ‘TextTheme’ from package:flutter/src/material/text_theme.dart’ – searchable_dropdown

ERROR SOLUTION There are Two Solutions for this error Use Alternative Package Do some changes in .pub-cache Use Alternative Package I switched from searchable_dropdown to search_choices and…

Read More

[SOLVED] Flutter Error: The getter ‘body1’ isn’t defined for the class ‘TextTheme’ – place_picker.

Error SOLUTION Here is what I found on StackOverflow Source (Stackoverflow):- https://stackoverflow.com/questions/69312392/how-to-resolve-error-the-getter-body1-isnt-defined-for-the-class-texttheme To fix this issue you have to make some changes to Two files C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/place_picker-0.9.19-nullsafety/lib/widgets/rich_suggestion.dart 2….

Read More