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