broken_glass 1.0.0 copy "broken_glass: ^1.0.0" to clipboard
broken_glass: ^1.0.0 copied to clipboard

Break any Flutter widget like a pane of glass — radial fractures, tumbling shards and lit edges.

1.0.0 #

Initial release.

  • BrokenGlass — snapshots any child and breaks it into shards. Drive it declaratively with broken, from a touch with breakOnTap, or imperatively with a BrokenGlassController.
  • ShatterPattern — radial cracks crossed by concentric fracture rings, with fine, chunky and spiderWeb presets.
  • GlassStyle — cracks, lit bevels, per-facet sheen, tint and shadows, with window, screen and frost presets.
  • BrokenGlassController — shatter(), restore() and toggle(); restore() plays the break backwards.
  • scatter: false for crack-in-place damage, and spread / gravity / rotation / fade to tune the motion.
0
likes
160
points
130
downloads
screenshot

Documentation

API reference

Publisher

verified publisherjneela.dev

Weekly Downloads

Break any Flutter widget like a pane of glass — radial fractures, tumbling shards and lit edges.

Repository (GitHub)
View/report issues

Topics

#animation #effects #ui

License

MIT (license)

Dependencies

flutter

More

Packages that depend on broken_glass