flutter_drawing_board 0.1.0 icon indicating copy to clipboard operation
flutter_drawing_board: ^0.1.0 copied to clipboard

A new Flutter package of drawing board.

flutter_drawing_board #

A new Flutter package of drawing board.

Getting Started #

flutter_drawing_board:
    git:
      url: https://git.liugl.cn/flutter_drawing_board.git
      ref: master

非空安全请使用 non-nullsafety 分支

//simple example

import 'package:flutter_drawing_board/flutter_drawing_board.dart';

DrawingBoard(
  background: Container(width: 400, height: 400, color: Colors.white),
  showDefaultActions: true,
  showDefaultTools: true,
),
//获取画板数据

import 'package:flutter_drawing_board/flutter_drawing_board.dart';

final DrawingController _drawingController = DrawingController();

DrawingBoard(
  controller: _drawingController,
  background: Container(width: 400, height: 400, color: Colors.white),
  showDefaultActions: true,
  showDefaultTools: true,
),

Future<void> _getImageData() async {
  print((await _drawingController.getImageData()).buffer.asInt8List());
}

效果预览 #

预览网址:https://painter.liugl.cn

Phone #

Web #

Windows #

macOS #

Linux #

9
likes
100
pub points
70%
popularity

Publisher

shield icon for verified publishersfluttercandies.com

A new Flutter package of drawing board.

Homepage (missing)

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_colorpicker

More

Packages that depend on flutter_drawing_board