whiteboard 0.0.2 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.
import 'package:flutter/material.dart';
import 'package:whiteboard/whiteboard.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Whiteboard',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
appBar: AppBar(
title: Text('Whiteboard'),
),
body: Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child: Column(
children: [
Expanded(
child: WhiteBoard(),
),
],
),
),
),
);
}
}