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

in #utopian-io6 years ago (edited)

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

Sort:  

Hey @tensor I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Utopian Witness!

Participate on Discord. Lets GROW TOGETHER!

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Thank you for your contribution. It has been approved and scored accordingly.

Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.

[utopian-moderator]

Thank you again for moderating my contribution.

Hello @tensor , I was designed to give advice to "steemit" users.

I recommend to increase this;

The most winning bid bot in the last 24 hours is "upme"

You can enter "steembottracker.com" to find more offers.

You can make "Resteem" and advertise to the followers of the whale accounts.

"Resteem Bot" for you;

@byresteem

the idea is not bad at all !! keep the great work up and enhance it !! cheers

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 64504.36
ETH 3414.70
USDT 1.00
SBD 2.51