The goal is to build a powerful and highly customizable drawing board.
- Draw
- Erase
- Undo
- Redo
- Clear
- Sketch color
- Save
- Load
- Zoom
- Publish on pub.dev
- Add unit tests
- Write documentation
- Add a ColorPicker
- Toolbar needs to be more customizable
- I18n
Add the following dependency to your pubspec.yaml
file:
dependencies:
paper_board:
git:
url: https://github.com/stevenosse/paper_board.git
class HomePage extends StatefulWidget {
const HomePage({super.key});
@override
State<HomePage> createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
final DrawingBoardController controller = DrawingBoardController();
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Paper Board Demo'),
elevation: 3.0,
),
body: FractionallySizedBox(
widthFactor: 1.0,
heightFactor: 1.0,
child: Column(
children: [
Expanded(child: PaperBoard(controller: controller)),
PaperBoardToolbar(controller: controller),
],
),
),
);
}
}
This project is licensed under the MIT License - see the LICENSE file for details
Fork the project and clone it locally.
git clone git://github.com/stevenosse/paper_board.git
Install dependencies
cd paper_board
flutter pub get
Create a new branch
git checkout -b feature/my-feature
Make your changes and create a pull request.