minimumStrokeWidth property

double minimumStrokeWidth

Gets the minimum signature stroke width assigned to RenderSignaturePad.

Default value is 0.8.

Implementation

double get minimumStrokeWidth => _minimumStrokeWidth;
void minimumStrokeWidth=(double value)

Sets the minimum signature stroke width for RenderSignaturePad.

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 RenderSignaturePad based on the speed of the stroke gesture within its minimum and maximum stroke width ranges. So that the signature will be more realistic.

Implementation

set minimumStrokeWidth(double value) {
  if (_minimumStrokeWidth == value) {
    return;
  }
  _minimumStrokeWidth = value;
  _strokeWidthChanged();
  markNeedsPaint();
}