whiteboardkit 0.1.6 copy "whiteboardkit: ^0.1.6" to clipboard
whiteboardkit: ^0.1.6 copied to clipboard

outdated

A Flutter whiteboard implementation.

whiteboardkit #

A Flutter whiteboard widget with so much extendability and flexibility to be used with no need to rewrite your own whiteboard. Enjoy !

Package demo

Installation #

Add the following to pubspec.yaml

dependencies:
  ...
  whiteboardkit: ^0.1.6

Usage Example #

import whiteboardkit.dart

import 'package:whiteboardkit/whiteboardkit.dart';

define GestureWhiteboardController and listen to change event

  GestureWhiteboardController controller;

  @override
  void initState() {
    controller = new GestureWhiteboardController();
    controller.onChange().listen((draw){
      //do something with it
    });
    super.initState();
  }

place your Whiteboard inside a constrained widget ie. container,Expanded etc

@override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Expanded(
              child: Whiteboard(
                controller: controller,
              ),
            ),
          ],
        ),
      ),
    );
  }
50
likes
0
pub points
46%
popularity

Publisher

unverified uploader

A Flutter whiteboard implementation.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, font_awesome_flutter, json_annotation

More

Packages that depend on whiteboardkit