SignaturePad constructor

SignaturePad({
  1. required dynamic onSave(
    1. FileData
    ),
  2. Key? key,
  3. String saveButtonText = "Save",
  4. String clearButtonText = "Clear",
  5. Color backgroundColor = Colors.white,
  6. Color strokeColor = Colors.black,
  7. double minStrokeWidth = 1.0,
  8. double maxStrokeWidth = 4.0,
  9. Border? border = const Border.fromBorderSide(BorderSide(color: Colors.grey)),
  10. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8)),
  11. EdgeInsets margin = const EdgeInsets.all(10),
  12. EdgeInsets padding = const EdgeInsets.all(8),
  13. ButtonStyle? buttonStyle,
  14. Widget? saveButtonIcon,
  15. Widget? clearButtonIcon,
  16. double spacing = 10.0,
  17. MainAxisAlignment alignment = MainAxisAlignment.center,
  18. TextStyle? errorTextStyle,
  19. dynamic onError(
    1. String
    )?,
  20. double pixelRatio = 3.0,
  21. BoxConstraints? constraints,
})

Implementation

SignaturePad({
  required this.onSave,
  super.key,
  this.saveButtonText = "Save",
  this.clearButtonText = "Clear",
  this.backgroundColor = Colors.white,
  this.strokeColor = Colors.black,
  this.minStrokeWidth = 1.0,
  this.maxStrokeWidth = 4.0,
  this.border = const Border.fromBorderSide(BorderSide(color: Colors.grey)),
  this.borderRadius = const BorderRadius.all(Radius.circular(8)),
  this.margin = const EdgeInsets.all(10),
  this.padding = const EdgeInsets.all(8),
  this.buttonStyle,
  this.saveButtonIcon,
  this.clearButtonIcon,
  this.spacing = 10.0,
  this.alignment = MainAxisAlignment.center,
  this.errorTextStyle,
  this.onError,
  this.pixelRatio = 3.0,
  this.constraints,
});