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

Can't launch app Null Safety Exception #14

Open
AlaaEldeenYsr opened this issue Sep 8, 2021 · 3 comments
Open

Can't launch app Null Safety Exception #14

AlaaEldeenYsr opened this issue Sep 8, 2021 · 3 comments

Comments

@AlaaEldeenYsr
Copy link

../../env/flutter/latest/.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(),
                                          ^^^^...
../../env/flutter/latest/.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,
                     ^
3

FAILURE: Build failed with an exception.
@danvick
Copy link
Owner

danvick commented Sep 8, 2021

Which version of flutter_form_builder are you using?

@jinseokoh
Copy link

@danvick I have the following dependencies in pubspec.yaml and experience the same issues as @AlaaEldeenYsr

  flutter_form_builder: ^6.1.0+1
  form_builder_phone_field: ^0.3.0

@mustadev
Copy link

me too. I have the same problem.

aunching lib\main.dart on Android SDK built for x86 in debug mode...
flutter/current/.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(),
^^^^...
flutter/current/.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,
^

flutter_form_builder: ^6.1.0+1
form_builder_phone_field: ^0.3.0

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

4 participants