A new Flutter project.
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.
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
Using git clone the following repository git clone https://github.com/flutter/flutter.git
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.
- 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.
- 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.
- 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
- 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.
- 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.