USignaturePad constructor
const
USignaturePad({
- required dynamic onSave(),
- Key? key,
- dynamic onDraw()?,
- String? saveButtonText,
- String? clearButtonText,
- String? emptyMessage,
- USignatureController? controller,
- Color? backgroundColor,
- Color? strokeColor,
- List<
Color> ? penColors, - double minWidth = 1.5,
- double maxWidth = 4.5,
- double height = 220,
- bool showToolbar = true,
- bool showColorPicker = true,
- bool showWidthSlider = false,
- bool showBaseline = true,
- double exportPixelRatio = 3,
- Color? exportBackground,
Implementation
const USignaturePad({
required this.onSave,
super.key,
this.onDraw,
this.saveButtonText,
this.clearButtonText,
this.emptyMessage,
this.controller,
this.backgroundColor,
this.strokeColor,
this.penColors,
this.minWidth = 1.5,
this.maxWidth = 4.5,
this.height = 220,
this.showToolbar = true,
this.showColorPicker = true,
this.showWidthSlider = false,
this.showBaseline = true,
this.exportPixelRatio = 3,
this.exportBackground,
});