flutter_signature_view 1.0.0 copy "flutter_signature_view: ^1.0.0" to clipboard
flutter_signature_view: ^1.0.0 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
0
pub points
78%
popularity

Publisher

unverified uploader

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_signature_view