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

After upgraded to the lastest version, I got this... #399

Closed
pulstar opened this issue Aug 6, 2020 · 18 comments
Closed

After upgraded to the lastest version, I got this... #399

pulstar opened this issue Aug 6, 2020 · 18 comments
Labels
bug Something isn't working

Comments

@pulstar
Copy link

pulstar commented Aug 6, 2020

Compiler message:
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_checkbox.dart:28:9: Error: Type 'MouseCursor' not found.
final MouseCursor mouseCursor;
^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_date_time_picker.dart:151:9: Error: Type 'TimePickerEntryMode' not found.
final TimePickerEntryMode timePickerInitialEntryMode;
^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_slider.dart:36:9: Error: Type 'MouseCursor' not found.
final MouseCursor mouseCursor;
^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_switch.dart:67:9: Error: Type 'MouseCursor' not found.
final MouseCursor mouseCursor;
^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_chips_input-1.9.0/lib/src/chips_input.dart:393:3: Error: Type 'AutofillScope' not found.
AutofillScope get currentAutofillScope => null;
^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_checkbox.dart:28:9: Error: 'MouseCursor' isn't a type.
final MouseCursor mouseCursor;
^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_checkbox.dart:101:7: Error: No named parameter with the name 'mouseCursor'.
mouseCursor: widget.mouseCursor,
^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:58:9: Context: Found this candidate, but the arguments don't match.
const Checkbox({
^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_date_time_picker.dart:151:9: Error: 'TimePickerEntryMode' isn't a type.
final TimePickerEntryMode timePickerInitialEntryMode;
^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_date_time_picker.dart:400:9: Error: No named parameter with the name 'currentDate'.
currentDate: widget.currentDate,
^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/pickers/date_picker_dialog.dart:91:18: Context: Found this candidate, but the arguments don't match.
Future showDatePicker({
^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_date_time_picker.dart:433:9: Error: No named parameter with the name 'initialEntryMode'.
initialEntryMode: widget.timePickerInitialEntryMode,
^^^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/time_picker.dart:1803:19: Context: Found this candidate, but the arguments don't match.
Future showTimePicker({
^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_slider.dart:36:9: Error: 'MouseCursor' isn't a type.
final MouseCursor mouseCursor;
^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_slider.dart:138:19: Error: No named parameter with the name 'focusNode'.
focusNode: widget.focusNode,
^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/slider.dart:114:9: Context: Found this candidate, but the arguments don't match.
const Slider({
^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_switch.dart:67:9: Error: 'MouseCursor' isn't a type.
final MouseCursor mouseCursor;
^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_switch.dart:179:17: Error: No named parameter with the name 'mouseCursor'.
mouseCursor: widget.mouseCursor,
^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/switch.dart:65:9: Context: Found this candidate, but the arguments don't match.
const Switch({
^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_text_field.dart:199:7: Error: No named parameter with the name 'autofillHints'.
autofillHints: widget.autofillHints,
^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/text_form_field.dart:131:3: Context: Found this candidate, but the arguments don't match.
TextFormField({
^^^^^^^^^^^^^

Compiler message:
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_checkbox.dart:28:9: Error: Type 'MouseCursor' not found.
final MouseCursor mouseCursor;
^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_date_time_picker.dart:151:9: Error: Type 'TimePickerEntryMode' not found.
final TimePickerEntryMode timePickerInitialEntryMode;
^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_slider.dart:36:9: Error: Type 'MouseCursor' not found.
final MouseCursor mouseCursor;
^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_switch.dart:67:9: Error: Type 'MouseCursor' not found.
final MouseCursor mouseCursor;
^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_chips_input-1.9.0/lib/src/chips_input.dart:393:3: Error: Type 'AutofillScope' not found.
AutofillScope get currentAutofillScope => null;
^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_checkbox.dart:28:9: Error: 'MouseCursor' isn't a type.
final MouseCursor mouseCursor;
^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_checkbox.dart:101:7: Error: No named parameter with the name 'mouseCursor'.
mouseCursor: widget.mouseCursor,
^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/checkbox.dart:58:9: Context: Found this candidate, but the arguments don't match.
const Checkbox({
^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_date_time_picker.dart:151:9: Error: 'TimePickerEntryMode' isn't a type.
final TimePickerEntryMode timePickerInitialEntryMode;
^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_date_time_picker.dart:400:9: Error: No named parameter with the name 'currentDate'.
currentDate: widget.currentDate,
^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/pickers/date_picker_dialog.dart:91:18: Context: Found this candidate, but the arguments don't match.
Future showDatePicker({
^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_date_time_picker.dart:433:9: Error: No named parameter with the name 'initialEntryMode'.
initialEntryMode: widget.timePickerInitialEntryMode,
^^^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/time_picker.dart:1803:19: Context: Found this candidate, but the arguments don't match.
Future showTimePicker({
^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_slider.dart:36:9: Error: 'MouseCursor' isn't a type.
final MouseCursor mouseCursor;
^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_slider.dart:138:19: Error: No named parameter with the name 'focusNode'.
focusNode: widget.focusNode,
^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/slider.dart:114:9: Context: Found this candidate, but the arguments don't match.
const Slider({
^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_switch.dart:67:9: Error: 'MouseCursor' isn't a type.
final MouseCursor mouseCursor;
^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_switch.dart:179:17: Error: No named parameter with the name 'mouseCursor'.
mouseCursor: widget.mouseCursor,
^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/switch.dart:65:9: Context: Found this candidate, but the arguments don't match.
const Switch({
^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_form_builder-3.13.0/lib/src/fields/form_builder_text_field.dart:199:7: Error: No named parameter with the name 'autofillHints'.
autofillHints: widget.autofillHints,
^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/text_form_field.dart:131:3: Context: Found this candidate, but the arguments don't match.
TextFormField({
^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.

@danvick
Copy link
Collaborator

danvick commented Aug 6, 2020

For Flutter 1.17 and below kindly stick to v3.12.*

v3.13.0 works for the newly released Flutter 1.20

@pulstar
Copy link
Author

pulstar commented Aug 6, 2020

For Flutter 1.17 and below kindly stick to v3.12.*

v3.13.0 works for the newly released Flutter 1.20

Thank you for the clarifications! I did try to downgrade to my previous version (3.9) and also did try to use the version 3.12, but when compiling, Flutter stick to the version 3.13... What do I need to do to get it back to a previous version?

@pulstar pulstar changed the title After upgrade to the lastest version, I got this... After upgraded to the lastest version, I got this... Aug 6, 2020
@CodeDok
Copy link

CodeDok commented Aug 6, 2020

Changing the version from 3.13.0 to 3.12.2 in the pubspec.lock file and then executing flutter clean -> flutter pub cache repair fixed it for me.

@pulstar
Copy link
Author

pulstar commented Aug 6, 2020

Changing the version from 3.13.0 to 3.12.2 in the pubspec.lock file and then executing flutter clean -> flutter pub cache repair fixed it for me.

Thank you very much! I will try.

@CodeDok
Copy link

CodeDok commented Aug 6, 2020

No problem. But after fixing the wrong version you'll get another error. Now with the flutter_chips_input plugin which the form_builder depends on. There I couldn't downgrade to an older version. The pubspec.lock file is always updated to the 1.9.0 unfortunately. Whether it is because of the 3.13.0 package which remains in the packages cache is unknown to me.

Error:
Compiler message:
/C:/Users/Produktiv/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_chips_input-1.9.0/lib/src/chips_input.dart:393:3: Error: Type 'AutofillScope' not found.
AutofillScope get currentAutofillScope => null;
^^^^^^^^^^^^^

Compiler message:
/C:/Users/Produktiv/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_chips_input-1.9.0/lib/src/chips_input.dart:393:3: Error: Type 'AutofillScope' not found.
AutofillScope get currentAutofillScope => null;
^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.

Edit: Styling

@CodeDok
Copy link

CodeDok commented Aug 6, 2020

Error:
Compiler message:
/C:/Users/Produktiv/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_chips_input-1.9.0/lib/src/chips_input.dart:393:3: Error: Type 'AutofillScope' not found.
AutofillScope get currentAutofillScope => null;
^^^^^^^^^^^^^

Compiler message:
/C:/Users/Produktiv/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_chips_input-1.9.0/lib/src/chips_input.dart:393:3: Error: Type 'AutofillScope' not found.
AutofillScope get currentAutofillScope => null;
^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.

Only upgrading Flutter to 1.20 fixed it for me.

@ioridev
Copy link

ioridev commented Aug 6, 2020

I have the same issue.
Is there a way to solve it without upgrading Flutter to 1.20?

@danvick
Copy link
Collaborator

danvick commented Aug 6, 2020

I have the same issue.
Is there a way to solve it without upgrading Flutter to 1.20?

Use v3.12.* for Flutter pre-1.20

@danvick
Copy link
Collaborator

danvick commented Aug 6, 2020

If this issue persists (ie flutter clean -> flutter pub cache repair doesn't work) and you need to use a lower version of Flutter, then consider using dependency overrides:

dependency_overrides:
  flutter_chips_input: ^1.8.3

@ioridev
Copy link

ioridev commented Aug 6, 2020

I have the same issue.
Is there a way to solve it without upgrading Flutter to 1.20?

Use v3.12.* for Flutter pre-1.20

If you do v3.12, you will get this error.

Because flutter_form_builder 3.1.2 depends on intl ^0.15.8 and every version of flutter_localizations from sdk depends on intl 0.16.1, flutter_form_builder 3.1.2 is incompatible with flutter_localizations from sdk.

@danvick
Copy link
Collaborator

danvick commented Aug 6, 2020

Use v3.12.3 (three point twelve) and not 3.1.2 (three point one point two)

@ioridev
Copy link

ioridev commented Aug 6, 2020

Use v3.12.3 (three point twelve) and not 3.1.2 (three point one point two)

That was a small mistake. Thank you very much!

@christianarduino
Copy link

I have the exact same problem. I have Flutter v1.17. I tried to change the package version to 3.12.3, did flutter clean and flutter pub cache repair, but the problem persists. Any solution?

@pulstar
Copy link
Author

pulstar commented Sep 21, 2020

I have the exact same problem. I have Flutter v1.17. I tried to change the package version to 3.12.3, did flutter clean and flutter pub cache repair, but the problem persists. Any solution?

I am using FormBuilder 3.13.5 with Flutter 1.20.4 on stable channel.

@sanjaysingh1990
Copy link

@pulstar please try following I had the same issue after many try.

flutter version : 1.20.4
flutter_form_builder: ^3.13.0

@jamilgha
Copy link

@pulstar please try following I had the same issue after many try.

flutter version : 1.20.4
flutter_form_builder: ^3.13.0
add this package in dart file in form_builder_checkbox.dart
import 'package:flutter/rendering.dart';

@deandreamatias
Copy link
Collaborator

This still a issue?

@WilliamCunhaCardoso WilliamCunhaCardoso added bug Something isn't working awaiting author response Waiting for author of issue to respond with more info labels Jun 9, 2022
@pulstar
Copy link
Author

pulstar commented Jun 9, 2022

This still a issue?

It is fine now.

@deandreamatias deandreamatias removed the awaiting author response Waiting for author of issue to respond with more info label Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants