File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -861,11 +861,14 @@ class FormBuilderState extends State<FormBuilder> {
861
861
return formControl.validator (value);
862
862
},
863
863
builder: (FormFieldState <dynamic > field) {
864
- return SignaturePad (onChanged: (image){
865
- field.didChange (image);
866
- },);
864
+ return SignaturePad (
865
+ onChanged: (image) {
866
+ field.didChange (image);
867
+ },
868
+ );
867
869
},
868
870
);
871
+
869
872
break ;
870
873
}
871
874
}).toList (),
Original file line number Diff line number Diff line change @@ -57,14 +57,15 @@ class _SignaturePadState extends State<SignaturePad> {
57
57
@override
58
58
Widget build (BuildContext context) {
59
59
return Container (
60
- height: 200 ,
60
+ height: 250 ,
61
61
child: Column (
62
62
children: < Widget > [
63
63
Container (
64
64
decoration: BoxDecoration (
65
65
color: Colors .white,
66
66
border: Border .all (color: Colors .grey),
67
67
),
68
+ height: 200 ,
68
69
child: GestureDetector (
69
70
onPanUpdate: (DragUpdateDetails details) {
70
71
setState (() {
@@ -82,9 +83,13 @@ class _SignaturePadState extends State<SignaturePad> {
82
83
getImage ();
83
84
});
84
85
},
85
- child: CustomPaint (
86
- painter: SignaturePainter (paint, points: _points),
87
- size: Size .fromHeight (150 ),
86
+ onVerticalDragUpdate: (_) {},
87
+ child: ClipRect (
88
+ // borderRadius: BorderRadius.all(0),
89
+ child: CustomPaint (
90
+ painter: SignaturePainter (paint, points: _points),
91
+ size: Size .fromHeight (150 ),
92
+ ),
88
93
),
89
94
// color: Colors.white,
90
95
),
You can’t perform that action at this time.
0 commit comments