Managing State with Flutter Flux and Building a Crypto Tracker Application with Dart's Flutter Framework

What Will I Learn?

  • You will learn about the Flux pattern and how it relates to Redux
  • You will learn how Flux uses mixins give you access to your stores
  • You will learn to approach building a application that uses an external API with flux

Requirements

Difficulty

  • Intermediate

Description

In this Flutter video tutorial, we build a fairly simplistic Cryptocurrency tracker application using the Flutter Flux plugin. Flux was originally a slightly modified version of the observer pattern that originally was used with frameworks like React. The pattern and principles of Flux were ported into a official Flutter plugin which fits fairly well with flutter's tree based layout. Unlike with Redux, Flux gives us the ability to have multiple stores which means that we can use multiple state objects in our applications. Like Redux, Flux uses a unidirectional data flow to help change these stores by dispatching actions.

Our application is a basic cryptocurrency tracker application. We pull from the Coin market Cap API which allows us to stream the data into a list of widgets. Due to the simplicity of the application, we only need one single store and we also only use one single action. The store contains our list of cryptocurrencies, and our action is what dispatches to the API and then pulls in the data. This application could easily be extended with auto-updating and other similar features through added actions.

The source code for this project can be found here

The Flutter Flux plugin can be found here

Video Tutorial

Projects and Series

Stand Alone Projects:
Building a Calculator
Movie Searcher Application

Minesweeper Game

Curriculum



Posted on Utopian.io - Rewarding Open Source Contributors

H2
H3
H4
3 columns
2 columns
1 column
5 Comments