created by sajjad javadi
email: [email protected]
show some ❤️ and star the repo to support the project
flutter shopping app example
in this project i use getx for state management, dio for http client and hive for the local database. products api is for fakestoreapi.
this example learn you how to:
- setup getx and sizer in main.dart
- initializes hive and registers adapter in main.dart
- get data from server with dio and parse json to a list
- using getx to show data in listview and how to work with controller
- save product in cart with hive
getting started
for help getting started with flutter, view flutter documentation.
- download the repository
git download [email protected]:seljad/flutter-getx-state-management.git
- navigate to cloned folder
- get packages using
flutter pub get
- run
flutter run
Comments are closed.