maximumStrokeWidth property

double maximumStrokeWidth
final

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.

SfSignaturePad(
  minimumStrokeWidth: 3.0,
  maximumStrokeWidth: 6.0,
 );

Implementation

final double maximumStrokeWidth;