dwyl / flutter-bloc-tutorial

A step-by-step example/tutorial explaining the benefits of the BLoC architecture and bloc library including tests!
https://dwyl.github.io/flutter-bloc-tutorial/
GNU General Public License v2.0
67 stars 5 forks source link

Why? What? Who? How? #1

Closed nelsonic closed 1 year ago

nelsonic commented 1 year ago

Why?

@LuchoTurtle recently opened the following issue: https://github.com/dwyl/app/issues/320 We need to build an example App akin to our MVP: https://github.com/dwyl/mvp We cannot simply pick a technology / architecture based on a recommendation from someone we know. We must make the effort up-front to document our choice with a clear step-by-step example that everyone in the team can use to get up-to-speed.

Once that is done we can evaluate if bloc is a good fit for our use-case.

What?

Who?

This tutorial is targeted at the novice Flutter dev. We are writing a step-by-step tutorial as an authoritative guide to the @dwyl team/community up-to-speed. If we can make this tutorial useful to other people in the wider Flutter community that's great!

How?

The expectation is that they have already followed at least 2 of our other tutorials:

  1. https://github.com/dwyl/learn-flutter
  2. https://github.com/dwyl/flutter-todo-list-tutorial

These should be included as prerequisites in the README.md "How?" section

Todo

Note: for now, it's OK for all data to remain on the device. i.e. no need to interact with our API. But if you're feeling like you want to extend the tutorial, feel free to dive into saving data to the API. 👌

LuchoTurtle commented 1 year ago

Already got a working app using Bloc, after using Cubit.

https://user-images.githubusercontent.com/17494745/223520170-13197994-ecbb-4833-99da-54f7edeaf4dc.mp4

Some coverage still needs to be addressed on localhost but it should be manageable. Just wanted to give a status update, as I've been trying to implement Timer with Bloc.