flutter_drawing_board 1.0.1+1
flutter_drawing_board: ^1.0.1+1 copied to clipboard
A Flutter package of drawing board, provides basic drawing tools, canvas operations, and image data acquisition.
1.0.1+1 - 2025-12-26 #
Bug Fixes #
- Fixed "Invalid image dimensions" exception when canvas size is zero or invalid
- Added size validation before generating cached images in
_DeepPainter
Documentation #
- Removed hardcoded installation instructions from README files (now handled automatically by pub.flutter-io.cn)
- Version badge at top of README dynamically displays latest version
1.0.0 - 2025-12-26 #
🎉 First Stable Release #
This marks the first production-ready release with stable API and comprehensive documentation.
Documentation #
- Complete rewrite of README.md and README-zh-CN.md with professional structure
- Added detailed usage guide, API reference, and code examples
- Standardized LICENSE format to MIT License
Behavior Changes #
SimpleLine()now defaults touseBezierCurve: true(since v0.9.9), providing smoother lines- JSON import maintains backward compatibility with
useBezierCurve: false
Breaking Changes #
None - Full backward compatibility maintained for existing JSON data and API usage
0.9.10+1 #
- fix Eraser
0.9.9 #
Added #
- Palm Rejection: Added
enablePalmRejectionparameter toDrawingBoardto prevent accidental palm touches on tablets - History Limit: Added
maxHistoryStepsparameter toDrawingControllerto prevent unlimited memory growth (default: 100 steps) - Point Filtering: Added
minPointDistanceparameter toSmoothLineandSimpleLineto filter redundant points (default: 2.0) - Bezier Curve Smoothing: Added
useBezierCurveparameter toSmoothLine(default: true) andSimpleLine(default: true for new instances, false for JSON import) - Advanced Smoothing: Added
smoothLevelparameter toSmoothLinewith Catmull-Rom spline interpolation to eliminate jagged lines during fast drawing (0: fast, 1: balanced, 2: ultra-smooth) - SimpleLine Smoothing: SimpleLine now supports Bezier curve rendering when
useBezierCurve=trueto eliminate jagged lines
Performance #
- Canvas Cache Optimization: Implemented cache version control in
_DeepPainterto avoid redundant image generation (~70% improvement) - Eraser Optimization: Reduced double refresh during eraser drawing (~50% improvement)
- Point Filtering: Reduces data points by 30-50%, improving JSON size and rendering performance
- Overall Performance: 30-50% performance improvement in rendering and memory usage
Improved #
- Drawing Quality: SmoothLine now uses quadratic Bezier curves for significantly smoother strokes
- Fast Drawing: Catmull-Rom spline interpolation eliminates jagged lines when drawing quickly (smoothLevel=2)
- Last Segment: Improved Bezier curve rendering for the last segment to avoid sharp corners
- Data Efficiency: Filtering redundant points reduces memory usage and JSON file size
- Null Safety: Enhanced null safety in
getImageData()andgetSurfaceImageData()methods with better error handling - Error Logging: Added detailed error messages and stack traces for debugging
- Code Quality: Fixed all analyzer warnings and improved code formatting
0.9.8 #
- marge #63
0.9.7 #
- fix #64 #66
0.9.5 #
- marge #59
0.9.4 #
- fix #58
- add getter of content type
0.9.3 #
- Fix the problem of aliasing
0.9.2 #
- Fix image data export exception
0.9.1 #
- Improve drawing performance
0.8.1 #
- Fix eraser
0.8.0 #
- Real-time eraser
0.7.0+2 #
- Detach default toolbar
0.7.0+1 #
- Fix abnormal drawing caused by number of fingers
0.7.0 #
- Fix abnormal drawing caused by number of fingers
0.6.0+2 #
- Update demo site
0.6.0 #
- Fix #32 #38 #39
- marge #27 #29
- marge English README
- Rich example
0.5.0 #
- Upgrade to dart 3.0.0
- remove flutter_hsvcolor_picker
- remove useless files
- Format code
0.4.4+2 #
- Format code
0.4.4+1 #
- Delete unnecessary log
0.4.4 #
- Fix #23
- Update Flutter SDK
0.4.3+2 #
- Fix rotation anomaly
0.4.3+1 #
- Fix rotation anomaly
0.4.3 #
- Lift the ratio limit
- Fix rotation anomaly
- Adjust the layout
0.4.2 #
- Fix web platform operation exception
0.4.1+5 #
- Modify version dependencies
- Flutter SDK 3.0.0 and below please use git dependencies: flutter_drawing_board: git: url: https://github.com/fluttercandies/flutter_drawing_board ref: 2.10.5
0.4.1+4 #
- Modification details
0.4.1+3 #
- Modification details
0.4.1+2 #
- Fix
DrawingControllerabnormal destruction
0.4.1+1 #
- Del
DrawingController.def()
0.4.0+1 #
- Complete the InteractiveViewer parameters
0.4.0 #
- Add PaintContent fromJson()
- Add PaintContent toJson()
- Add Paint toJson()
- Add Tool of style serialization
0.3.1 #
- fix SmoothLine color
0.3.0+2 #
- fix readme
0.3.0+1 #
- fix readme
0.3.0 #
- Breaking change, Please read the documentation carefully
0.2.7 #
- Pass static analysis, update colorpicker
0.2.6 #
- Change colorpicker
0.2.5 #
- Improve brush strokes, add brushPrecision setter
0.2.4 #
- Add brush strokes, improve code quality
0.2.3 #
- Improve code quality
0.2.2 #
- Fix export and update flutter_colorpicker
0.2.1 #
- Organize folders.
0.2.0 #
- Format code, update flutter_colorpicker.
0.1.9 #
- Optimize null-safety.
0.1.8 #
- Optimize layout.
0.1.7 #
- Update example to null-safety.
0.1.6 #
- Perfect example and update color-picker.
0.1.5 #
- Fix color-picker bug.
0.1.4 #
- Migrate to null-safety.