Flutter is an open-source cross-platform mobile application development SDK created by Google. It is highly user-friendly and builds high-quality mobile applications. The intention behind this article is to guide readers about the process of building an application through flutter by creating a simple Flutter App on Android Studio. To start creating a Flutter application we have to first create a flutter project and many other things, for that follow the steps mentioned below:
Step 1: Open the Android Studio IDE and select Start a new Flutter project.
Step 2: Select the Flutter Application as the project type. Then click Next.
Step 3: Verify the Flutter SDK path specifies the SDK’s location (select Install SDK… if the text field is blank).
Step 4: Enter a project name (for example, myapp). Then click Next.
Note: 1. Project name: flutter_app 2. Flutter SDK Path: <path-to-flutter-sdk> 3. Project Location: <path-to-project-folder> 4. Description: Flutter based simple application
Step 5: Click Finish and wait till Android Studio creates the project.
After successfully creating a file, we can edit the code of the application to show the output we want. Android Studio creates a fully working flutter application with minimal functionality. Let us check the structure of the application and then, change the code to do our task.
The structure of the application and its purpose are as follows?
We have to edit code in main.dart as mentioned in the above image. We can see that Android Studio has automatically generated most of the files for our flutter app.
Replace the dart code in the lib/main.dart file with the below code:
- Getting Started with Cross-Platform Mobile Application using Flutter
- Flutter - Architecture Application
- How to build a simple Calculator app using Android Studio?
- Compile our own Android Kernel in 5 Simple Steps
- How to build a simple music player app using Android Studio
- How to Build a Simple Flashlight/TorchLight Android App?
- How to Build a Simple Notes App in Android?
- How to Build a Simple Augmented Reality Android App?
- Creating a Calculator for Android devices
- Android | Creating a RatingBar
- Android | Creating a Calendar View app
- Android | Creating a Splash Screen
- Android | Creating multiple Screen app
- Android | Creating a SeekBar
- Difference between React Native and Flutter
- Difference Between Rows and Columns vs Container in Flutter
- Multi Page Applications in Flutter
- Routes and Navigator in Flutter
- Container class in Flutter
- Difference Between Stateless and Stateful Widget in Flutter
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.