This example demonstrates the various ways to use the jsoncanvasviewer package.
A complete editor interface with:
- JSON code editor with syntax highlighting
- Visual canvas viewer
- Real-time synchronization
- Drag and drop functionality
A basic canvas viewer showing:
- Read-only canvas display
- Beautiful example layout
- No editor interface
- Pure rendering capabilities
An interactive demo featuring:
- Element dragging
- Element resizing
- Real-time event callbacks
- Visual feedback
cd example
flutter run -d chromecd example
flutter run -d androidcd example
flutter run -d iosmain.dart: Main entry point with navigation between examples- Each example is implemented as a separate widget
- Demonstrates different use cases and integration patterns
- Check the source code for implementation details
- Modify the JSON strings to experiment with different layouts
- Try adding your own elements and styles
For more information, visit the main package documentation.