Skip to content

Commit 5f711a1

Browse files
committed
Deprecate initialValue for Signature field. There's no easy way of converting Uint8List to List<Point>
1 parent 99e1c1a commit 5f711a1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/flutter_form_builder.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
library flutter_form_builder;
22

33
export 'package:flutter_typeahead/flutter_typeahead.dart';
4+
export 'package:signature/signature.dart';
45

56
export './src/fields/form_builder_checkbox.dart';
67
export './src/fields/form_builder_checkbox_list.dart';

lib/src/fields/form_builder_signature_pad.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import 'package:signature/signature.dart';
99
class FormBuilderSignaturePad extends StatefulWidget {
1010
final String attribute;
1111
final List<FormFieldValidator> validators;
12+
@Deprecated('There is currently no way of converting Uint8List to List<Point> - https://github.com/4Q-s-r-o/signature/issues/17.'
13+
'To Pass a list of points is initial value use `SignatureController`.')
1214
final Uint8List initialValue;
1315
final bool readOnly;
1416
final InputDecoration decoration;

0 commit comments

Comments
 (0)