Skip to content

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.

Notifications You must be signed in to change notification settings

baguilar6174/flutter-crypto-app

Repository files navigation

Crypto App

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.

Installation

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

My process

Build with (libs)

  • dio: Http Client
  • provider: State management
  • logger: Create friendly logs in console
  • freezed_annotation: Annotations for Freezed
  • web_socket_channel: Allow connections with WS
  • flutter_svg: Render SVG
  • intl: Internationalization
  • build_runner: Generate code
  • freezed

Features

  • Using Sockets
  • Clean Architecture
  • Functional programming with Freezed
  • Dio Http client, interceptor and logger
  • Using Intl to formats and internationalization

What I learned

  • 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

Crypto App

Stay in touch

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published