bloc_ease 0.3.1 copy "bloc_ease: ^0.3.1" to clipboard
bloc_ease: ^0.3.1 copied to clipboard

A dart library to solve boilerplate issues with flutter_bloc by just using typedefs instead of defining state classes.

0.1.0 #

  • FourStates declaration
  • BlocEaseStateWidgetsProvider widget - Used to configure default state widgets
  • FourStateBuilder widget - Used instead of BlocBuilder which gives typesafe success object to build UI
  • FourStateListener widget - Used instead of BlocListener which gives typesafe success object
  • FourStateConsumer widget - Used instead of BlocConsumer
  • Context extensions
    • initialStateWidget - Gives default initial state widget
    • loadingStateWidget - Gives default loading state widget
    • failedStateWidget - Gives default failed state widget
  • Included Intellj and VSCode extensions to create cubit/bloc

0.2.0 #

  • map function for state
  • mayBeMap function for state

0.2.1 #

  • feat: isLoading getter in FourState

0.3.0 #

  • feat: when and maybeWhen function for state
  • retryCallback in failed state

0.3.1 #

  • feat: BlocEaseCombinedStateListener widget
    • Used to listen to states of multiple cubits that emits FourStates.
    • Even used to extract specific states of different cubits by using BlocEaseCombinedStateListener
11
likes
140
points
288
downloads

Publisher

unverified uploader

Weekly Downloads

A dart library to solve boilerplate issues with flutter_bloc by just using typedefs instead of defining state classes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

flutter, flutter_bloc, rxdart

More

Packages that depend on bloc_ease