-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playback Scribble #26
Comments
This should be possible easily by iterating through the Lines and points. Currently it's outside of the scope of our team, but feel free to open a PR! |
Ok thanks. Do you have any quick bits of advice on where to start? |
@timcreatedit i've been trying this for hours. can you give me a couple clues on how to do this? i'd like to store the json for replay at a later time but i'm stumped. any help appreciated. here's some code i modified but it's broken: void main() { class MyApp extends StatelessWidget { // This widget is the root of your application. class HomePage extends StatefulWidget { final String title; @OverRide class _HomePageState extends State { // Initialize the list of strokes. @OverRide @OverRide // Add a replay button to the toolbar. Future _saveImage(BuildContext context) async { // The replay function.
} Widget _buildColorToolbar(BuildContext context) { Widget _buildPointerModeSwitcher(BuildContext context, Widget buildStrokeButton( Widget _buildEraserButton(BuildContext context, {required bool isSelected}) { Widget _buildColorButton( Widget _buildUndoButton( Widget _buildRedoButton( Widget _buildClearButton(BuildContext context) { |
Did you get it working? If not what is issue? |
@danschewy i ended up making one from scratch using chat gpt. it works ok but not line width and it's a bit hacky |
Is it possible to "play" the scribble from JSON? Like as if it is being drawn from scratch?
Thanks
The text was updated successfully, but these errors were encountered: