- Displays a list of plants with images, names, prices, and like/add icons.
- Data is loaded from a local JSON file.
- Uses Cubit for state management and business logic.
-
Clone the repository:
git clone https://github.com/omkarChend1kar/plant_shop
-
Navigate to the project directory:
cd plant_shop
-
Get the dependencies:
flutter pub get
-
Run the app:
flutter run
Once the app is running, you will see a grid of plants. Each grid item displays an image of the plant, its name, price, and icons for liking or adding the plant.
- Flutter
- Dart
- Cubit (part of the Bloc library)
lib/
├── services/
│ ├── repositories/
│ │ └── plant_repository.dart
│ ├── models/
│ │ └── plant.dart
├── views/
│ ├── state/
│ │ └── get_plant_cubit.dart
│ │ └── get_plant_state.dart
│ ├── pages/
│ │ └── plant_list_page.dart
│ ├── widgets/
│ │ └── plant_grid_item.dart
└── main.dart