This application connects to coincap API to get cryptocurrency changes in real time, this project implements clean architecture for organization and freezed to use functional programming.
Get code using
git clone https://github.com/baguilar6174/flutter-crypto-app.git
Step 2
Install the necessary libraries (this proyect use Flutter 3.7.0 & Dart 2.19.0)
flutter pub get
Step 3
Generate Freezed files
flutter pub run build_runner build
Step 4
Generate locale strings (en & es)
flutter gen-l10n
Run the app
dio
: Http Clientprovider
: State managementlogger
: Create friendly logs in consolefreezed_annotation
: Annotations for Freezedweb_socket_channel
: Allow connections with WSflutter_svg
: Render SVGintl
: Internationalizationbuild_runner
: Generate codefreezed
- Using Sockets
- Clean Architecture
- Functional programming with Freezed
- Dio Http client, interceptor and logger
- Using Intl to formats and internationalization
- Implement clean architecture with provider
- Using Either class
- Create connection and using Web Sockets
- State management using provider
- Generate classes and entities using Freezed
when
,maybeWhen
,map
, etc. Functional programming operators- Listen changes using streams
![]() |
- Website - www.bryan-aguilar.com
- Medium - baguilar6174
- LinkeIn - baguilar6174