signature_kit 1.0.1 copy "signature_kit: ^1.0.1" to clipboard
signature_kit: ^1.0.1 copied to clipboard

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

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();
3
likes
150
points
75
downloads

Publisher

verified publishergavinsu.site

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on signature_kit