SignatureConfig constructor
const
SignatureConfig({
- Color penColor = Colors.black,
- double penStrokeWidth = 2.0,
- double minStrokeWidth = 1.0,
- double maxStrokeWidth = 4.0,
- bool enablePressureSensitivity = false,
- bool enableTiltSensitivity = false,
- Color backgroundColor = Colors.white,
- bool showGrid = false,
- Color gridColor = const Color(0xFFE0E0E0),
- double gridSpacing = 20.0,
- bool enableSmoothing = true,
- double smoothingFactor = 0.3,
- bool enableAntiAliasing = true,
- List<
Color> ? penColors, - bool enableMultiColor = false,
Implementation
const SignatureConfig({
this.penColor = Colors.black,
this.penStrokeWidth = 2.0,
this.minStrokeWidth = 1.0,
this.maxStrokeWidth = 4.0,
this.enablePressureSensitivity = false,
this.enableTiltSensitivity = false,
this.backgroundColor = Colors.white,
this.showGrid = false,
this.gridColor = const Color(0xFFE0E0E0),
this.gridSpacing = 20.0,
this.enableSmoothing = true,
this.smoothingFactor = 0.3,
this.enableAntiAliasing = true,
this.penColors,
this.enableMultiColor = false,
});