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! 🎉