cutout 1.0.3
cutout: ^1.0.3 copied to clipboard
A mask-driven cutout widget — punch through content to reveal what's beneath.
1.0.3 #
- 🐛 Fixed unbalanced
saveLayer— the content buffer was never popped, clipping everything painted after aCutout. - 🐛 Fixed
Clip.none— buffers now grow to cover every child, so overflow is no longer cut away. - ✨ Added debug assertion for masks that push a composited layer.
- ⚡️ Perf no buffers when there is nothing to cut.
- ✨ Added rendering test suite — 16 pixel-level tests.
- 📝 Docs rewritten English README, new Chinese
README_CN.md. - 🔧 Minor:
maskChild/childexposed as fields,createRenderObjecttyped.
1.0.2 #
- 🐛 Fixed
includelist in pubspec.yaml — addedanalysis_options.yaml,test/, and fullexample/directory so dartdoc generates API reference on pub.dev.
1.0.1 #
- ✨ Added CI/CD workflow — auto-build & deploy Flutter web demo to GitHub Pages.
- ✨ Added live demo link on pub.dev & README.
- 📝 Added comprehensive bilingual README (EN/CN) with badges, API reference, support section.
- 🔧 Changed lowered environment constraints to
sdk: ^3.10.0/flutter: ">=3.38.0"for broader compatibility. - 💛 Added Ko-fi support link.
1.0.0 #
- 🎉
Cutoutwidget — punch a mask shape through content viaBlendMode.dstOut. - ✨ Added support for icons, text, images (transparent PNG), and composable Widgets masks.
- ⚠️ Known limitation: layer-pushing children (
AnimatedSwitcher,Opacity,FadeTransition, etc.) escape thesaveLayerbuffer — engine-level fix required.
