This app fetches a cryptocurrency exchange rates API from CoinAPI using WebSocket API for real-time data and REST API for historical chart data.
Main features:
- Ability to change currencies
- Interactive graph
- Sembast NoSQL storage
- WebSocket protocol for real-time data
- HTTPS protocol for historical graph data
Project divided by four structure levels (data, domain (business-logic), internal, presentation).
$ git clone https://github.com/heknt/flutter-crypto-chart-view.git
$ cd flutter-crypto-chart-view
-
Set your own CoinAPI apiKey in project service config
-
Connect your phone to computer and enable USB debugging. Next:
flutter-crypto-chart-view$ flutter doctor
flutter-crypto-chart-view$ flutter pub get
flutter-crypto-chart-view$ flutter pub run build_runner build --delete-conflicting-outputs
flutter-crypto-chart-view$ flutter run