pop_pop_components 0.1.1 copy "pop_pop_components: ^0.1.1" to clipboard
pop_pop_components: ^0.1.1 copied to clipboard

Prebuilt components implementing pop_pop

bubbles pop_pop_components bubbles #

Pub build codecov License: MIT

Extends upon pop_pop to provide out of the box components to implement a bubble popping game in Flutter.

Getting Started #

  • Add to your pubspec.yaml:
dependencies:
  
  pop_pop_components: <version>

Components #

  • See the example app for how these are used together.

PopPopBloc #

Controls the logic of the game, scoring, calculating the game size and subscribing to an optional PopPopTimer implementation. Also takes an optional PopPopAudio to implement sound effects.

PopPopGrid #

Builds a bubble grid which can either be staggered or straight. Provides widget callbacks to allow decoupling bubble widget implementations from the game grid.

PopPopStreamTimer #

A stream-based countdown timer which emits a tick every second. Also contains an extension to transform seconds left into a digital clock timestamp (eg. 00:12).

ProviderBubble #

A provider based bubble wrapper that encapsulates each bubbles' state, and updates the widget to display the given popped bubble widget upon popping.

ReflectiveBubblePainter/PoppedBubblePainter #

CustomPainter based bubble UI widgets. Builds their colors based upon the given PopPopBubbleTheme.

Feedback/Suggestions? #

Maintainers #

0
likes
130
points
9
downloads

Publisher

unverified uploader

Weekly Downloads

Prebuilt components implementing pop_pop

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, pop_pop, provider, rxdart

More

Packages that depend on pop_pop_components