Skip to content

Commit d77e908

Browse files
FLUT-931209-[others]: updated signaturepad latest changes
1 parent d66d70a commit d77e908

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

packages/syncfusion_flutter_signaturepad/CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
## [28.1.29] - 12/12/2024
1+
## [28.1.36] - 12/24/2024
2+
3+
**General**
4+
5+
* The compatible version of our Flutter signaturepad widget has been updated to Flutter SDK 3.27.0.
6+
7+
## [28.1.33] - 12/12/2024
28

39
**General**
410

packages/syncfusion_flutter_signaturepad/lib/signaturepad.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -1029,10 +1029,10 @@ class RenderSignaturePad extends RenderBox {
10291029
/// Exports the signature to html canvas.
10301030
void renderToContext2D(dynamic context2D) {
10311031
final String strokePenColor =
1032-
'${strokeColor.red},${strokeColor.green},${strokeColor.blue},${strokeColor.opacity.toStringAsFixed(2)}';
1032+
'${(strokeColor.r * 255).toInt()},${(strokeColor.g * 255).toInt()},${(strokeColor.b * 255).toInt()},${strokeColor.a.toStringAsFixed(2)}';
10331033

10341034
final String backgroundFillColor =
1035-
'${backgroundColor.red},${backgroundColor.green},${backgroundColor.blue},${backgroundColor.opacity.toStringAsFixed(2)}';
1035+
'${(backgroundColor.r * 255).toInt()},${(backgroundColor.g * 255).toInt()},${(backgroundColor.b * 255).toInt()},${backgroundColor.a.toStringAsFixed(2)}';
10361036

10371037
//Drawing the background of the SignaturePad
10381038
context2D.fillStyle = 'rgba($backgroundFillColor)';

0 commit comments

Comments
 (0)