Closed SM-SHIFAT closed 6 months ago
final TransformationController _transformationController = TransformationController();
DrawingBoard(
transformationController: _transformationController,
)
then use _transformationController.value = Matrix4.identity();
to reset the canvas
Platforms
Android
Description
Need a function to call which reset the size and position to its initial size and position. Like back to the position where it was when its initialized. Otherwise can you stop it from totally going out of screen boundary?
Why
When dragging the canvas , some times it goes out of the sceen thats looks odd. so on a press of a button it should be back to its original position.