This repository contains the code for Chapter 1 of the Flutter GetX Masterclass. In this chapter, we cover the installation of GetX, setting up a scalable folder structure, and creating a simple product listing app with navigation to a product details page.
Follow the step-by-step tutorial in the video for a hands-on experience!
π Watch the full tutorial on YouTube
In this chapter, you'll learn:
- How to install and set up GetX in a Flutter project.
- How to structure your project for scalability using MVC principles.
- How to create a product list and navigate to a product details page using GetX for routing.
Hereβs the folder structure weβve set up in this chapter:
lib/
β
βββ app/
β βββ modules/
β β βββ product/
β β β βββ controllers/
β β β β βββ product_controller.dart
β β β βββ views/
β β β β βββ product_view.dart
β β β β βββ product_details_view.dart
β β β βββ models/
β β β βββ product_model.dart
β βββ routes/
β βββ app_pages.dart
β βββ app_routes.dart
βββ main.dart
- Clone the repository:
git clone git clone -b Chapter-1 https://github.com/Amanullahgit/flutter-getx-real-world-application.git
- Navigate to the project directory:
cd flutter-getx-real-world-application
- Install dependencies:
flutter pub get
- Run the app:
flutter run
Feel free to fork and contribute to this repository!
- GetX Package: pub.dev/packages/get
- Flutter Documentation: flutter.dev/docs
Happy Coding! π