minimumStrokeWidth property Null safety

double minimumStrokeWidth

The minimum width of the signature stroke.

Default value is 0.8.

The width of the signature stroke can be customized by setting the minimumStrokeWidth and maximumStrokeWidth properties.

The minimumStrokeWidth defines the minimum thickness of the stroke and the maximumStrokeWidth defines the maximum thickness of the signature stroke.

The stroke will be drawn in SfSignaturePad based on the speed of the stroke gesture within its minimum and maximum stroke width ranges. So that the signature will be more realistic.

This snippet shows how to set stroke width in SfSignaturePad.

  minimumStrokeWidth: 3.0,
  maximumStrokeWidth: 6.0,


final double minimumStrokeWidth;