Closed nelsonic closed 1 year ago
Already got a working app using Bloc
, after using Cubit
.
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
.
Why?
@LuchoTurtle recently opened the following issue: https://github.com/dwyl/app/issues/320 We need to build an example
App
akin to ourMVP
: 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?
BLoC
Architecturebloc
library works and why it's a good fit for medium to largerFlutter
Apps.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 widerFlutter
community that's great!How?
The expectation is that they have already followed at least 2 of our other tutorials:
These should be included as prerequisites in the
README.md
"How?" sectionTodo
[x] Follow test-driven development from the start.
GitHub Actions CI
and track coverage for the project.[x] Follow and combine the following tutorials:
bloc
helps to separate presentation from business logic.[x] Include as many in-line comments in the code as would be reasonable for a beginner who has never seen
bloc
before to understand what is going on. i.e. the code is not "self documenting" ...