custom_signature 1.0.4 copy "custom_signature: ^1.0.4" to clipboard
custom_signature: ^1.0.4 copied to clipboard

This package project offers an easy way to get your signature with a custom UI, and rotates automatically into landscape mode for most comfortable space to sign.

Custom signature #

This package project offers an easy way to get your signature with a custom UI, and rotates automatically into landscape mode for most comfortable space to sign.

Usage #

CustomSignature(
    context: context
    title: 'Signature',
    closeButtonColor: Colors.indigo,
    icon: FontAwesomeIcons.circleXmark,
    enabledButtonColor: Colors.green,
    disabledButtonColor: Colors.lightGreen.withOpacity(0.5),
    penColor: Colors.black,
    deleteButtonText: 'Delete',
    doneButtonText: 'Done',
    // optional properties
    backgroundColor: Colors.white,
    textColor: Colors.black,
    closeAlert: AlertDialog(
        content:
            const Text('Do you want to exit?'),
        actions: [
        ElevatedButton(
            child: const Text('Ok'),
            onPressed: () {
                Navigator.pop(context);
                Navigator.pop(context);
            }),
        MaterialButton(
            onPressed: () => Navigator.pop(context),
            child: const Text('No')),
        ],
    ),
);

Additional information #

Is recommended that the screen to going to navigate has Stateful Widget with preferred orientation configured, to turn back the default orientation (portrait).

SystemChrome.setPreferredOrientations([
      DeviceOrientation.portraitUp,
      DeviceOrientation.portraitDown,
    ]);
  }
0
likes
150
pub points
29%
popularity

Publisher

unverified uploader

This package project offers an easy way to get your signature with a custom UI, and rotates automatically into landscape mode for most comfortable space to sign.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_screenutil, signature

More

Packages that depend on custom_signature