danvick / form_builder_phone_field

MIT License
8 stars 25 forks source link

'decoration' isn't a function or method and can't be invoked #15

Open freddiandrew opened 3 years ago

freddiandrew commented 3 years ago

when use with flutter 2.5.0 the following error show up :

`/D:/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/form_builder_phone_field-0.3.0/lib/src/form_builder_phone_field.dart:198:43: Error: 'decoration' isn't a function or method and can't be invoked. decoration: state.decoration(), ^^^^... /D:/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/form_builder_phone_field-0.3.0/lib/src/form_builder_phone_field.dart:187:22: Error: The argument type 'void Function(String)?' can't be assigned to the parameter type 'void Function(String?)?' because 'String?' is nullable and 'String' isn't. onChanged: onChanged, ^

FAILURE: Build failed with an exception.`

any ide to resolve ? thank you

mustadev commented 3 years ago

I have the same Error.

imhafeez commented 3 years ago

This has been fixed. Pull request has been sent #18. use https://github.com/imhafeez/form_builder_phone_field.git if its not merged.

Thanks