Skip to content

Commit 2fc345c

Browse files
committed
Fix "The getter 'isNotEmpty' was called on null" in PhoneField
1 parent 1185336 commit 2fc345c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/src/fields/form_builder_phone_field.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class FormBuilderPhoneFieldState extends State<FormBuilderPhoneField> {
155155
}
156156

157157
_parsePhone() async {
158-
if (_initialValue.isNotEmpty) {
158+
if (_initialValue != null && _initialValue.isNotEmpty) {
159159
try {
160160
var parseResult = await PhoneNumber().parse(_initialValue);
161161
print(parseResult);

lib/src/widgets/signature.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'dart:ui';
44

55
import 'package:flutter/material.dart';
66

7+
//TODO: Delete class. No longer used
78
///Signature canvas. All parameters are optional. It expands by default. This behaviour can be
89
///overridden using width and/or height parameters.
910
class Signature extends StatefulWidget {

0 commit comments

Comments
 (0)