A simple e-commerce application built with Flutter. This app fetches product data from an API and displays it in a user-friendly manner with proper navigation and state management using Provider.
- Product Listing Page: Displays a list of products fetched from the provided API.
- Product Detail Page: Shows detailed information about a selected product, including name, image, price, and description.
- Add to Cart: Includes an "Add to Cart" button (Shows a Snackbar message saying "Added to Cart").
- Responsive UI: Ensures the application looks good on different screen sizes.
- Flutter SDK: Install Flutter
-
Clone the repository:
git clone https://github.com/yourusername/ecommerce_app.git cd ecommerce_app
-
Install dependencies:
flutter pub get
-
Run the app:
flutter run
ecommerce_app/
├── lib/
│ ├── models/
│ │ └── product.dart # Product model
│ ├── screens/
│ │ ├── product_listing_page.dart # Product listing page
│ │ └── product_detail_page.dart # Product detail page
│ ├── services/
│ │ └── api_service.dart # API service to fetch product data
│ └── main.dart # Main entry point of the application
└── pubspec.yaml # Project dependencies