Gesture Art Painter

Gesture Art Painter is a Flutter package that allows users to create mesmerizing abstract art through multi-touch gestures and motion sensors. Whether you're a creative enthusiast or just looking to add a fun feature to your app, Gesture Art Painter is the perfect solution!

Features

  • Multi-touch gesture painting : Paint with multiple fingers simultaneously for dynamic artwork.
  • Motion-based brush effects : Enable motion sensors to influence brush strokes for unique designs.
  • Customizable brush settings : Adjust brush size and color to suit your creative style.
  • Clear canvas functionality : Easily reset the canvas for new creations.

Getting started

Prerequisites:

  • Flutter SDK version 3.0.0 or higher.
  • Add sensors_plus dependency to your project (this package includes it).
  • Example: Run flutter pub get to install the dependencies.
dependencies:
  gesture_art_painter: ^1.0.0
  sensors_plus: ^6.1.1

Installation

  1. Import the package: import 'package:gesture_art_painter/gesture_art_painter.dart';
  2. Add the GestureArtPainter widget to your Flutter application.

Usage

Here's how you can use the package in your app:

import 'package:flutter/material.dart'; import 'package:gesture_art_painter/gesture_art_painter.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, home: Scaffold( appBar: AppBar(title: const Text('Gesture Art Painter')), body: GestureArtPainter( brushColor: Colors.blue, brushSize: 10.0, enableMotion: true, onClearCanvas: () { print("Canvas cleared!"); }, ), ), ); } }

Features in Action

  • Use multiple fingers to paint on the canvas.
  • Enable motion sensors (enableMotion: true) to add motion-based brush effects.
  • Customize the brush with brushColor and brushSize.
  • Clear the canvas using the built-in floating action button.

Additional information

Contribution

Contributions are welcome! If you find bugs or have feature requests, please file an issue or submit a pull request.

Support

If you encounter any issues, feel free to open an issue on the GitHub repository.

License

This package is licensed under the MIT License. See the LICENSE file for details.

Enjoy creating unique artwork with Gesture Art Painter! 🎨