window_paint 0.1.0-nullsafety.4
window_paint: ^0.1.0-nullsafety.4 copied to clipboard
WindowPaint lets you pan, zoom and paint over any other widget. It uses the new InteractiveViewer together with a CustomPainter, giving you the bare minimum to get you started.
0.1.0-nullsafety.4 Jan 25, 2021 #
- Expose
TransformationControlleronWindowPaintCanvas/WindowPaint.
0.1.0-nullsafety.3 Jan 21, 2021 #
InteractiveViewer'sminScaleandmaxScaleare now configurable.- Scale objects, outlines, hitboxes, and path-simplification tolerance relative to the zoom-level.
DrawRectangle._paintOutlineparameterSizesizecorrected toSize size.
0.1.0-nullsafety.2 Jan 13, 2021 #
- Added a button for toggling hitboxes in the
exampleapp. - The framework now supports selecting objects. It's the adapter's responsibility to perform hit-testing, (de)selecting, rendering outlines and resize handles, and moving the objects. This gives the greatest flexibility and gives a tool the opportunity to include only the features it needs.
- The reference
DrawObjectandDrawObjectAdapterimplementations demonstrate both simple (AABB) and complex (OBB) hit-testing techniques. - The
Lineclass has been added to make it easier to work with lines of a given width. Itscontainsmethod makes it easy to perform OBB hit-testing. - Added a dependency on vector_math: ^2.1.0-nullsafety.5
- Lots of other small changes to the API.
0.1.0-nullsafety.1 Jan 12, 2021 #
- Replaced the
example's picture with a solid color. - Added explanation of the package's name in the README.
- Added
DrawTextAdapterandDrawTextto theexampleproject. DrawObjectAdapter.startreturnsFutureOr<DrawObject?>?to support async operations, i.e. showing a dialog for text input.DrawObjectAdapter.startaccepts aBuildContextand the current transformationMatrix4.
0.1.0-nullsafety.0 Jan 12, 2021 #
- Solves an issue with how
InteractiveViewer.onInteractionUpdateon the beta channel behaves. This change is both backward and forward compatible. - Added static analysis with the pedantic 1.9.0 ruleset.
- Migrated to sound null-safety.
- Controllers now use the
ValueNotifierpattern fromTextEditingControllerinstead of the mixin way ofAnimationController. - Controllers now also have
Restorableequivalents, i.e. howTextEditingControllerhasRestorableTextEditingController. CustomRadiohas been moved to theexampleproject.- The
exampleproject'sWindowPaintControlnow has a more clear icon for the "rectangle with cross" paint mode. - Files are organized in a more consumer-friendly fashion, with a
lib/srcfolder and alib/window_paint.dartfile which exports all the necessary library files.
0.0.1 Jan 11, 2021 #
- Initial release.