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

A package for freehand use on whiteboard.

whiteboard #

A package for freehand use on whiteboard.

Feature #

  • Save whiteboard as PNG
  • 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 as PNG
    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 png
whiteBoardController.convertToImage();
// Redo last stroke
whiteBoardController.redo();
// Undo last stroke
whiteBoardController.undo();
25
likes
140
pub points
82%
popularity

Publisher

unverified uploader

A package for freehand use on whiteboard.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on whiteboard