spoiler_widget 1.0.12
spoiler_widget: ^1.0.12 copied to clipboard
A Flutter package to create spoiler animations similar to the one used in Telegram, allowing you to hide sensitive or spoiler-filled content until it's tapped or clicked.
Changelog #
1.0.12 #
SpoilerOverlay
first blur render issueenableFadeAnimation
false issue
1.0.11 #
Breaking Changes #
-
Class Renames:
SpoilerConfiguration
renamed toSpoilerConfig
WidgetSpoilerConfiguration
renamed toWidgetSpoilerConfig
TextSpoilerConfiguration
renamed toTextSpoilerConfig
-
Parameter Renaming:
speedOfParticles
renamed toparticleSpeed
fadeAnimation
renamed toenableFadeAnimation
enableGesture
renamed toenableGestureReveal
style
renamed totextStyle
inTextSpoilerConfig
selection
renamed totextSelection
inTextSpoilerConfig
-
New Features:
- Added
maskConfig
to support advanced masking withPath
,PathOperation
, andoffset
. - Added
textAlign
toTextSpoilerConfig
for custom text alignment control.
- Added
1.0.10 #
Breaking Changes #
- Class Renames:
SpoilerWidget
renamed toSpoilerOverlay
SpoilerTextWidget
renamed toSpoilerText
- Parameter Renaming:
configuration
parameter changed toconfig
- Rendering Update:
- Replaced
RenderParagraph
withTextPainter
for better canvas performance
- Replaced
1.0.9 #
- A new
SpoilerSpotsController
class can schedule "wave" or "ripple" effects, causing particles to move outward from random origins within the spoiler bounds. - Reusable buffers in
drawRawAtlas
reduce per-frame allocations, providing smoother animations. - Reorganized Core. Clearer Names & Docs.
1.0.8 #
- chore: added tags
- small fixes
1.0.7 #
- perf: Refactored particle rendering to use
drawRawAtlas
, significantly improving performance for rendering large numbers of particles
1.0.6 #
- Gesture issue fixed
- start with already spoilered state in SpoilerTextWidget
- import refactor
1.0.5 #
- Added new SpoilerWidget widget to hide widgets below
1.0.4 #
- Added docs
1.0.3 #
- Position fix
1.0.1 #
- Added docs
1.0.0 #
- Initial release.