A simple cart management syatem
This is a simple Cart Management application that integrates with the FakeStore API to fetch product data. Users can browse and add products to their cart, which is managed locally. The app seamlessly supports offline functionality by utilizing cached data previously fetched from the API, ensuring users can still view and manage their cart even without an active internet connection.
- Fetch Products from FakeStore API: The app fetches product details such as title, price, and description directly from the FakeStore API.
- Cart Management: Users can add, remove, and update product quantities in the shopping cart.
- Offline Support: When the user goes offline, previously fetched product data is cached locally so that users can continue to browse products and manage their cart.
- Local Storage: Cart data is saved locally in the browser, ensuring the cart is persistent between sessions.
As the creator of Fake Store Flutter, my responsibilities included:
-
UI Design(Simple)
-
Implement cart functionality
-
Offline functionality
Ensure Flutter is installed on your machine. For installation instructions, refer to the official Flutter website.
Follow these steps to run the Application:
- Clone this repository to your local machine:
git clone https://github.com/hredhayxz/fake_store_flutter.git
- Navigate to the project folder:
cd fake_store_flutter
- Install dependencies:
flutter pub get
Connect your device or emulator and run the app using the following command:
flutter run
Fake Store Flutter integrates the following packages to enhance functionality:
http: ^1.2.2
: The HTTP package provides a straightforward way to make HTTP requests in your Flutter app. It's essential for fetching data from APIs and working with web services.cached_network_image: ^3.4.1
: For network image caching and showing.get: ^4.6.6
: GetX is a state management library for Flutter that simplifies the process of managing application state. It provides a clean and efficient way to handle state and dependencies in your app.flutter_screenutil: ^5.9.3
: A flutter plugin for adapting screen and font size.Let your UI display a reasonable layout on different screen sizes!package_info_plus: ^8.1.0
: A Flutter plugin providing detailed information about the device.shimmer: ^3.0.0
: A package provides an easy way to add shimmer effect in Flutter project.hive: ^2.2.3 & hive_flutter: ^1.1.0
: Hive is a lightweight and buzzing-fast key-value NoSQL database made for Flutter and Dart.