File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ class MyHomePageState extends State<MyHomePage> {
290
290
FormBuilderSignaturePad (
291
291
decoration: InputDecoration (labelText: "Signature" ),
292
292
attribute: "signature" ,
293
- height: 200 ,
293
+ height: 250 ,
294
294
// onChanged: _onChanged,
295
295
),
296
296
],
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ class FormBuilderSignaturePad extends StatefulWidget {
18
18
final Color backgroundColor;
19
19
final Color penColor;
20
20
final double penStrokeWidth;
21
+ final String clearButtonText;
21
22
22
23
FormBuilderSignaturePad ({
23
24
@required this .attribute,
@@ -27,6 +28,7 @@ class FormBuilderSignaturePad extends StatefulWidget {
27
28
this .backgroundColor = Colors .grey,
28
29
this .penColor = Colors .black,
29
30
this .penStrokeWidth = 3.0 ,
31
+ this .clearButtonText = "Clear" ,
30
32
this .initialValue,
31
33
this .points,
32
34
this .width,
@@ -100,7 +102,7 @@ class _FormBuilderSignaturePadState extends State<FormBuilderSignaturePad> {
100
102
field.didChange (null );
101
103
},
102
104
label: Text (
103
- "Clear" ,
105
+ widget.clearButtonText ,
104
106
style: TextStyle (color: Theme .of (context).errorColor),
105
107
),
106
108
icon: Icon (
You can’t perform that action at this time.
0 commit comments