dashed_painter 1.1.0
dashed_painter: ^1.1.0 copied to clipboard
A simple Flutter plugin to draw dashed lines and shapes on canvas easily.
Changelog #
All notable changes to the flutter_dash_painter package will be documented here.
This project adheres to Semantic Versioning.
1.1.0 - 2025-01-28 #
🚀 Major Feature Release - Phase 1 Roadmap
✨ Added #
-
Animation Support: Marching ants effect with
animationOffsetparameter- Use with
AnimationControllerto create moving dash patterns - Works with both traditional and custom patterns
- Smooth animation with proper wrap-around handling
- Use with
-
Advanced Dash Patterns: Custom pattern arrays via
DashedPainter.pattern()- Define patterns with arrays like
[5, 3, 2, 3]for complex sequences - Supports unlimited pattern complexity
- Automatic conversion from traditional step/span/points to arrays
- Define patterns with arrays like
-
Performance Optimization: Path caching system
- Automatic caching of computed path segments
- Significant performance improvement for repeated patterns
enableCachingparameter to control caching behaviorDashedPainter.clearCache()andDashedPainter.cacheSizeutilities
-
Enhanced DashedDecoration:
DashedDecoration.animated()constructor for animated bordersDashedDecoration.pattern()constructor for custom patterns- Full backward compatibility with existing API
🎨 Enhanced #
- Comprehensive example app with 4 demo screens:
- Basic shapes demonstration
- Animation effects showcase
- Custom pattern gallery
- Performance comparison tools
- Improved documentation with detailed usage examples
- Better code organization and maintainability
🔧 Technical #
- Path computation refactored for better performance
- Animation system with proper offset calculations
- Caching system with automatic key generation
- Enhanced error handling and edge cases
1.0.2 - 2025-06-18 #
1.0.1 - 2025-06-17 #
1.0.0 - 2025-06-17 #
🎉 Initial release
Added #
- Core painter (
DashedPainter) to render dashed lines using Canvas - Support for:
- Straight lines (horizontal/vertical)
- Circle shapes (
addOval) - Rounded rectangles (
addRRect)
- Fully customizable:
step: dash lengthspan: space between dashespointCount: number of dots per dashpointWidth: length of each dot
DashedDecorationto easily apply dashed borders toContainer- Supports
colorandgradient(e.g.SweepGradient)