pencil_kit 0.0.1 pencil_kit: ^0.0.1 copied to clipboard
A Flutter plugin that provides a iOS PencilKit widget on iOS.
Flutter iOS Pencil Kit #
Flutter plugin for using iOS Pencil Kit.
Note 📒 #
- This package only provides iOS implementation. If you try use widget of this package other than iOS, you see a Red warning box.
- iOS Pencil Kit is available from iOS
13.0
Supported Platforms 📱 #
- iOS
Features & Todo 🌟 #
At now, package is very first version. So some feature is missing :)
- ✅ Drawing
- ✅ Show/Hide palette
- ✅ Undo/Redo
- ✅ Clear
- ❌ Import/Export drawing data
- ❌ UI properties(background color, scrollability, etc...)
Requirements ✅ #
- iOS: Deployment target >=
9.0
Setup & Usage 🎉 #
flutter pub add flutter_pencil_kit
Using the player
Available Methods #
Methods available for PencilKitController
.
Method | Description |
---|---|
clear() | Clear canvas |
show() | Show Palette |
hide() | Hide Palette |
redo() | Redo last drawing action |
undo() | Undo last drawing action |
PencilKit
Widget Parameters #
All the available parameters.
Parameter | Description |
---|---|
onPencilKitViewCreated | A callback for platform view created. You can store PencilKitController from argument of this callback. |
hitTestBehavior | iOS UIKitView hitTestBehavior |