A Flutter package for drawing smooth signatures, easy to export image data.

Screenshot

Getting started

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  signature_kit: ^1.0.1

Usage

import 'package:signature_kit/signature_kit.dart';

  SignatureController controller = SignatureController(
    backgroundColor: Colors.black,
    color: Colors.white,
    strokeWidth: 3,
  );
  
  Signature(controller: controller)
  
  // export to png
  final pngData = await controller.toImage(pixelRatio: MediaQuery.of(context).devicePixelRatio, format: ImageByteFormat.png);

  //clear
  controller.clear();

Libraries

signature_kit