sketch_flow 1.2.2+1
sketch_flow: ^1.2.2+1 copied to clipboard
A powerful and flexible Flutter sketching plugin. Easily build drawing applications with elegant UI and comprehensive export features.
[1.2.2+1]
- Refined the layout and padding logic in
_showToolConfigto better adapt to content size.
[1.2.2]
- Added
overlayMarginandoverlayPaddingparameters toSketchBottomBar. These new options allow for precise control over the spacing inside and outside the tool configuration overlay container.
[1.2.1+1]
- Corrected an error in the v1.2.1 changelog. The
toolConfigOffsetparameter was added toSketchBottomBar, notToolConfigas previously stated.
[1.2.1]
- Added
exportCroppedPNGmethod toSketchController. This allows exporting a high-resolution PNG image that is automatically cropped to fit the bounds of both the drawn sketches and the optionaloverlayWidget. - Added an
toolConfigOffsetparameter toSketchBottomBar. This provides a new way to adjust the tool's position, allowing for more precise control and custom UI interactions (e.g., displaying the tool config menu at a specific location).
[1.2.0]
This release introduces comprehensive UI customization options for SketchBottomBar and improves responsive layouts for tablet devices.
Added #
- Full Bottom Bar Customization: Added an optional
customBuilderparameter toSketchBottomBar. Developers can now provide aSketchBarBuilderfunction to build a completely custom list of tool icons, while still accessing internal state (controller,selectedToolType) and actions (onToolTap). - Custom Eraser Config UI: Added an optional
customEraserConfigparameter. This allows providing anEraserConfigBuilderfunction to build a custom UI for the eraser settings overlay (e.g., usingToggleButtonsinstead ofRadioListTile). - Custom Thickness Icon UI: Added
enableIconStrokeThicknessListanddisableIconStrokeThicknessListtoSketchToolConfig. Developers can now pass aList<Widget>to override the default thickness icons for any specific drawing tool. - Added
asserts toSketchToolConfigto throw an error if the length of custom icon lists does not match thestrokeThicknessList.
Changed #
- Responsive Overlays (Tablet Support): The default tool configuration overlays (for thickness/opacity and color palette) now use
LayoutBuilder. They will automatically display as aRowon wide screens (like tablets) and aColumnon narrow screens (like phones). - Refined Slider UI: The default opacity and color picker sliders have been redesigned with a custom
GradientTrackShape(featuring a 2-row checkerboard background and rounded ends) and a customColorSliderThumbShape(white border with selected color interior).
[1.1.0]
- FEAT: Add
isPadDeviceoption to separate stylus and touch inputs. - FEAT: Add
multiTouchPanZoomEnabledto allow zooming/panning while drawing.
[1.0.0+2]
- license update
[1.0.0+1]
- docs update
[1.0.0]
- re-export core APIs to simplify imports
[0.1.6+3]
- Add Area/Stroke Eraser design settings
- Add selected strokeThickness icon color settings.
[0.1.6+2]
- Add SketchTopBar theme settings
[0.1.6+1]
- Apply to set png, svg icon options
[0.1.6]
- Refactor SketchController of updateConfig
[0.1.5]
- Fix SketchBoard overlayWidget bug
[0.1.4]
- Add SketchBoard width/height size settings
[0.1.3]
- Fix SketchTopBar back button bug
- Update README
[0.1.2]
- Structural Change
- Repackaging
[0.1.1]
- Modify annotations, optimize import statements
[0.1.0]
- Initial version