maximumStrokeWidth property Null safety

double maximumStrokeWidth

The maximum width of the signature stroke.

Default value is 5.0.

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 the stroke width in SfSignaturePad.

  minimumStrokeWidth: 3.0,
  maximumStrokeWidth: 6.0,


final double maximumStrokeWidth;