sketch_flow 1.2.4+1
sketch_flow: ^1.2.4+1 copied to clipboard
A powerful and flexible Flutter sketching plugin. Easily build drawing applications with elegant UI and comprehensive export features.
[1.2.4+1]
Added #
- Added
isOverlayWidgetCenterparameter toSketchBoard.- When set to
true, theoverlayWidgetis centered within the board, preserving its intrinsic size and aspect ratio. - When set to
false(default), theoverlayWidgetstretches to fill the entire board area usingPositioned.fill.
- When set to
[1.2.4]
Fixed #
- Fixed an issue where drawing was allowed outside the right and bottom boundaries when
SketchBoardwas smaller than the screen size.
Changed #
- Refactored
SketchBoardto useLayoutBuilder. The board size is now calculated based on parent constraints or explicit dimensions instead of relying solely onMediaQuery. - Updated
_isInDrawingAreato validate coordinates against the actual calculated board size (_currentBoardSize).
[1.2.3+2]
- Refactored
SketchBottomBarto use a unified_closeToolConfigOverlaymethod. This reduces code duplication and ensures consistent behavior (closing the overlay and re-enabling drawing) across thickness selection, color selection, and background tap events.
[1.2.3+1]
- Wrapped
overlayWidgetwithinSketchBoardin aPositioned.fillwidget. This ensures that the overlay content expands to cover the entire canvas area, resolving issues where the overlay would render at its intrinsic size instead of fitting the board.
[1.2.3]
- Removed the default
SingleChildScrollViewwrapper when usingcustomBuilderinSketchBottomBar. This resolves the issue where the entire bottom bar container would scroll instead of its content.
[1.2.2+2]
- Remove
overlayMargin, Refined the layout and padding logic in_showToolConfigto better adapt to content size.
[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