Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

flutter dice app

a sample flutter ap,p that shows how to manage responsive state using the bloc pattern.

concepts illustrated

bloc pattern

  • using a bloc pattern for global app state (i.e. theme)
  • using a bloc pattern as a view model for a screen
  • using an inheritedwidget provider to make the blocs accessible
  • consumption of bloc using streambuilder widgets

persistence

  • app and screen state saves when changed and is loaded on startup
  • an instrance of sharedpreferences is creeated globally as a singleton
  • blocs are able to save and load their own state

dynamic theme

  • can change between light and dark theme.
  • implemented as a bloc.

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.