flutter_signature_view 0.0.3 copy "flutter_signature_view: ^0.0.3" to clipboard
flutter_signature_view: ^0.0.3 copied to clipboard

outdated

The signature plugin serve place to paint your signature and export it to many differences type to store.

Signature Widget library #

Signature widget library

Preview

Usage

import 'package:flutter_signature_view/flutter_signature_view.dart';

Simple init SignatureView

  SignatureView _signatureView = SignatureView();

Init with optional params

   SignatureView _signatureView = SignatureView(  
      backgroundColor: Colors.yellow,  
      penStyle: Paint()  
        ..color = Colors.blue  
      ..strokeCap = StrokeCap.round  
      ..strokeWidth = 5.0,  
      onSigned: (data) {  
        print("On change $data");  
      },  
    );

Params

  • backgroundColor - Color. Canvas background color
  • data - String. Init your signature view with default data (it will generate after your signed from callback function onSigned
  • penStyle - Paint. Custom your Paint style
  • onSigned - Function(String). Response list offset as String value. You can use it for data to render default signature view

Access data

  • Get list offset as string value _signatureView.exportListOffsetToString()
  • Get data as Bytes _signatureView.exportBytes() -> async function
  • Check empty _signatureView.isEmpty
  • Clear current signature _signatureView.clear()

References

6
likes
40
points
166
downloads

Publisher

unverified uploader

Weekly Downloads

The signature plugin serve place to paint your signature and export it to many differences type to store.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_signature_view