danvick / form_builder_phone_field

MIT License
8 stars 25 forks source link

Can't launch app Null Safety Exception #14

Open AlaaEldeenYsr opened 3 years ago

AlaaEldeenYsr commented 3 years ago
../../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 commented 3 years ago

Which version of flutter_form_builder are you using?

jinseokoh commented 3 years ago

@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 commented 3 years ago

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