Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
freddiandrew opened this issue Sep 17, 2021 · 2 comments
Open

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

freddiandrew opened this issue Sep 17, 2021 · 2 comments

Comments

@freddiandrew
Copy link

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
Copy link

I have the same Error.

@imhafeez
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants