Skip to content

Flutter Installation guide for windows and deployment of Flutter Demo App in android mobile.

Notifications You must be signed in to change notification settings

SagarPatel98/Flutter

Repository files navigation

Flutter Demo App

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Flutter Installation Guide for Window

To install and run Flutter, your development environment must meet these minimum requirements:

  • Operating Systems: Windows 7 SP1 or later (64-bit)
  • Disk Space: 400 MB (does not include disk space for IDE/tools).
  • Tools: Flutter depends on these tools being available in your environment.
  • Windows PowerShell 5.0 or newer (this is pre-installed with Windows 10)
  • Git for Windows 2.x, with the Use Git from the Windows Command Prompt option

Step-1 : Get the Flutter SDK

Using git clone the following repository git clone https://github.com/flutter/flutter.git

Step-2 : Update the Path

From the Start search bar, enter ‘env’ and select Edit environment variables for your account. Under User variables check if there is an entry called Path: If the entry exists, append the full path to flutter\bin using ; as a separator from existing values. If the entry doesn’t exist, create a new user variable named Path with the full path to flutter\bin as its value.

Step-3 : Setup the Editor

  1. If you are using the Android Studio follow the following step to get the flutter plugin
    • Start Android Studio.
    • Open plugin preferences (Preferences > Plugins on macOS, File > Settings > Plugins on Windows & Linux).
    • Select Marketplace, select the Flutter plugin and click Install.
    • Click Yes when prompted to install the Dart plugin.
    • Click Restart when prompted.
  2. If you are using the Visual Studio Code Editor then follow the following step for flutter plugin
    • Start VS Code.
    • Invoke View > Command Palette….
    • Type “install”, and select Extensions: Install Extensions.
    • Type “flutter” in the extensions search field, select Flutter in the list, and click Install. This also installs the required Dart plugin.

Step-4 : Connect the Mobile device or enable or on and emulator if available for app deployment.

Step-5 : Run flutter doctor to validate all the requirements for Flutter is available or not.

Creating the First Flutter App

  1. Android Studio * Open the IDE and select Start a new Flutter project. * Select Flutter Application as the project type. Then click Next. * Verify the Flutter SDK path specifies the SDK’s location (select Install SDK… if the text field is blank). * Enter a project name (for example, myapp). Then click Next. * Click Finish. * Wait for Android Studio to install the SDK and create the project.

To run the app in android studio run>run

  1. Visual Studio Code Editor * Invoke View > Command Palette. * Type “flutter”, and select the Flutter: New Project. * Enter a project name, such as myapp, and press Enter. * Create or select the parent directory for the new project folder. * Wait for project creation to complete and the main.dart file to appear.

to run the app in visual editor type flutter run inside the project directory.

Below is the screenshot of Flutter First App demo deployment.

  • In the project directory go to the lib folder which has the main.dart file inside it.
  • In the main.dart file we write the main code for our app.
  • To change the color of heder and Float button go to main.dart file and search for primarySwatch.
  • By default primarySwatch will be set to Color.blue change it to primarySwatch: Color.lightgreen.
  • Go to terminal and press the r key without quitting the runing app.
  • r key enable the live reloading without running the whole app again and again.
  • When you first deploy the app the Debug mark will be display in your scrren.
  • To remove the Debug Mark go to main.dart file and inside the return return MaterialApp()
  • Write the debugShowCheckedModeBanner: false, and run again by pressing the r keyword.
  • After doing the above following changses the app will be look like below screenshot.

About

Flutter Installation guide for windows and deployment of Flutter Demo App in android mobile.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published