whiteboard 0.0.2 copy "whiteboard: ^0.0.2" to clipboard
whiteboard: ^0.0.2 copied to clipboard

A package for freehand use on whiteboard. This package provides a cross platform widget for drawing with controller.

whiteboard #

A package for freehand use on whiteboard.

Feature #

  • Save whiteboard as Image
  • Undo
  • Redo
  • Eraser mode
  • Pencil width and color change
  • Whiteboard background color change

Usage #

Whiteboard #

WhiteBoard(
    // background Color of white board
    backgroundColor: Colors.white,
    // Controller for action on whiteboard
    controller: WhiteBoardController(),
    // Stroke width of freehand
    strokeWidth: 5,
    // Stroke color of freehand
    strokeColor: Colors.green,
    // For Eraser mode
    isErasing: false,
    // Save image
    onConvertImage: (list){},
    // Callback common for redo or undo
    onRedoUndo: (t,m){},
)

WhiteBoardController #

// Create a controller
WhiteBoardController whiteBoardController =WhiteBoardController();
// Clear all the strokes
whiteBoardController.clear();
// Convert Whiteboard into file
whiteBoardController.convertToImage();
// Redo last stroke
whiteBoardController.redo();
// Undo last stroke
whiteBoardController.undo();
26
likes
150
points
933
downloads

Publisher

verified publishergoflutter.in

Weekly Downloads

A package for freehand use on whiteboard. This package provides a cross platform widget for drawing with controller.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on whiteboard