A new Flutter collection collects a couple of flutter workarounds and projects conducted by Larry
This Flutter project demonstrates a set of Flutter demos
Sub Folders are Flutter demo projects. Most of the projects follows the standard of folder structure stated below:
The folder structure of this project follows a common Flutter project structure:
lib
: Contains the Dart source code files for the project.presentation
: Contains the presentation layer code.screens
: Contains the screen widgets for the app.widgets
: Contains the common widgets across the screens of the the app.app.dart
: Encapsulates the App widget, which sets up the MaterialApp.
main.dart
: The entry point of the Flutter application.
assets
: Can be used to store static assets such as images, fonts, etc.test
: Contains the unit tests for the project.android
: Contains the Android-specific files for the project.ios
: Contains the iOS-specific files for the project.
To install and run the Flutter app on an Android emulator or iOS simulator, follow these steps:
-
Install Flutter by following the official Flutter installation guide: Flutter Installation Guide
-
Set up an Android emulator or iOS simulator. You can use Android Studio or Xcode for this purpose.
-
Clone this repository to your local machine.
-
Open a terminal or command prompt, navigate to the project directory, and run the following command to fetch the project dependencies:
flutter pub get
-
Connect your Android device or start the Android emulator. To run the app on an Android device, ensure that USB debugging is enabled.
-
Run the following command to build and launch the app on the Android emulator or connected device:
flutter run
If you want to run the app specifically on an iOS simulator, you can use the --simulator
flag followed by the simulator device name. For example:
flutter run --simulator "iPhone 12"
- The app should now be running on the Android emulator or iOS simulator, and you can interact with it.
Please note that these are general steps, and you may need to adjust them based on your specific development environment and setup.
For more information on Flutter, visit the official Flutter documentation: Flutter Documentation