A simple Flutter application that allows users to draw lines on a canvas using their finger or mouse.
- Freehand Drawing: Draw lines on the screen by dragging your finger or mouse.
- Customizable Canvas: Utilizes
CustomPaint
for flexible drawing capabilities.
Here's a screenshot of the application:
Screenshot |
---|
![]() |
- Run the application:
flutter run
- Start Drawing: Simply touch and drag your finger (or mouse) across the screen to draw lines.
lib/main.dart
: Contains the main application logic, including theMyHomePage
widget which handles touch input and rendering, and theDrawingPainter
class for custom painting.