You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @janardhanmupparaju,
This is a known issue. The problem is that the underlying package we use for the field expects a list of points as the input and not an image.
Currently, I haven't figured out a way to convert an image to a list of points for the initialValue to work.
I am trying to give initial value to FormBuilderSignaturePad but it is not displaying old signature.
this is code
final GlobalKey _fbKey = GlobalKey();
Container(
child: FormBuilder(
key: _fbKey,
autovalidate: true,
child: FormBuilderSignaturePad(
initialValue: Singleton.signatureImage == null
? null
: Singleton.signatureImage,
decoration: InputDecoration(
labelText: "Signature", border: InputBorder.none),
penColor: Colors.blue,
onChanged: (value) async {
setState(() {
Singleton.signatureImagePath = value;
});
},
attribute: "signature",
height: 100,
),
));
The text was updated successfully, but these errors were encountered: