explode_widget 0.1.0 copy "explode_widget: ^0.1.0" to clipboard
explode_widget: ^0.1.0 copied to clipboard

Shatters any widget into thousands of real pixel fragments on tap. Rasterises its own layer synchronously and draws every fragment in one drawAtlas call, so nothing rebuilds mid-flight.

0.1.0 #

First release.

  • ExplodeWidget shatters any child into fragments of its own pixels, on tap or from an ExplodeController.
  • Implemented as a single RenderObject: it is its own repaint boundary, so it rasterises its layer with OffsetLayer.toImageSync synchronously, and draws every fragment in one Canvas.drawRawAtlas call. Nothing in the widget tree rebuilds while the explosion runs.
  • The child is hidden rather than removed, so its state survives and ExplodeController.reset() puts it back instantly.
  • ExplodeSettings covers the grid, the blast origin, speed, gravity, spin, shrink, stagger, fade, pixel ratio and a seed for a repeatable explosion. ExplodeSettings.dust and .shatter are presets.
  • ExplodeGrid.auto picks a grid from the widget's aspect ratio, so fragments stay square.
0
likes
0
points
96
downloads

Publisher

verified publisherbomsamdi.com

Weekly Downloads

Shatters any widget into thousands of real pixel fragments on tap. Rasterises its own layer synchronously and draws every fragment in one drawAtlas call, so nothing rebuilds mid-flight.

Repository (GitHub)
View/report issues

Topics

#animation #particles #widget #render-object #effects

License

unknown (license)

Dependencies

flutter

More

Packages that depend on explode_widget