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

DiagnosticableMixin not found #155

Closed
lmanliang opened this issue Jun 16, 2020 · 26 comments
Closed

DiagnosticableMixin not found #155

lmanliang opened this issue Jun 16, 2020 · 26 comments

Comments

@lmanliang
Copy link

../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_datetime_picker-1.3.8/lib/src/datetime_picker_theme.dart:6:28: Error: Type 'DiagnosticableMixin' not found.
class DatePickerTheme with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_datetime_picker-1.3.8/lib/src/datetime_picker_theme.dart:6:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class DatePickerTheme with DiagnosticableMixin {

@jacky-yanglei
Copy link

ecdf40ab3a24fa92d55303b17354fc5

image

flutter update remove DiagnosticableMixin

@jacky-yanglei
Copy link

../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_datetime_picker-1.3.8/lib/src/datetime_picker_theme.dart:6:28: Error: Type 'DiagnosticableMixin' not found.
class DatePickerTheme with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_datetime_picker-1.3.8/lib/src/datetime_picker_theme.dart:6:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class DatePickerTheme with DiagnosticableMixin {

flutter update remove DiagnosticableMixin

@lmanliang
Copy link
Author

so cant fix this error , right?

@jacky-yanglei
Copy link

so cant fix this error , right?
You can modify the DiagnosticMixin in the library to Diagnostic

Luvti added a commit to Luvti/flutter_datetime_picker that referenced this issue Jun 17, 2020
@mzkai
Copy link

mzkai commented Jun 21, 2020

After the most recent Flutter update, changing 'DiagnosticMixin' to 'Diagnostic' indeed solves the problem. Thanks @jacky-yanglei!

The flutter_datetime_picker package should now be updated with the same.

junqi added a commit to junqi/flutter_datetime_picker that referenced this issue Jun 25, 2020
@jayaike
Copy link

jayaike commented Jun 28, 2020

I had this issue too but it was solved by @jacky-yanglei 's suggestion. Thanks

@lcsvcn
Copy link

lcsvcn commented Jul 4, 2020

Will this be released in a V.1.3.9 any soon? I am having issues as well.

@lcsvcn
Copy link

lcsvcn commented Jul 4, 2020

DiagnosticMixin in the library to Diagnosticable, not Diagnostic

@valterh4ck3r
Copy link

Same issue

@NumanIbnMazid
Copy link

Same Issue.
flutter/.pub-cache/hosted/pub.dartlang.org/flutter_datetime_picker-1.3.8/lib/src/datetime_picker_theme.dart:6:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class DatePickerTheme with DiagnosticableMixin {

@kebsont
Copy link

kebsont commented Jul 10, 2020

For me I replace all DiagnosticableMixin in the class by Diagnosticable and it works

@Abhishekhm777
Copy link

Error: Type 'DiagnosticableMixin' not found.
class PictureStream with DiagnosticableMixin {

@m-takata
Copy link

m-takata commented Jul 22, 2020

Same issue.
When will you fix it?

@ahrasel
Copy link

ahrasel commented Jul 26, 2020

same issue.
any solution?

@Bforsyth1234
Copy link

FYI there is a PR to fix this. You can use it now by putting this in your pubspec.yaml

 flutter_datetime_picker:
   git:
     url: https://github.com/ditheshthegreat/flutter_datetime_picker # Repo
     ref: patch-1 # Branch name

pr-> #158

@thenexus00
Copy link

FYI there is a PR to fix this. You can use it now by putting this in your pubspec.yaml

 flutter_datetime_picker:
   git:
     url: https://github.com/ditheshthegreat/flutter_datetime_picker # Repo
     ref: patch-1 # Branch name

pr-> #158

Thank you, this helped get my build running after the recent flutter updates that just broke nearly everything and this was the last thing to get it going.

@Realank
Copy link
Owner

Realank commented Aug 10, 2020

Done

@Realank Realank closed this as completed Aug 10, 2020
@fnicastri
Copy link

fnicastri commented Aug 11, 2020

Done

@Realank
Thanks!

@the-anup-das
Copy link

the-anup-das commented Aug 19, 2020

This update in pubspec.yaml solved my problem.
flutter_svg: 0.18.1
flutter_html: 1.0.2
flutter_widget_from_html: 0.4.3

Don't forget to do flutter clean after the update

valterh4ck3r added a commit to valterh4ck3r/flutter_datetime_picker that referenced this issue Sep 3, 2020
@shinriyo
Copy link
Contributor

shinriyo commented Sep 4, 2020

@the-anup-das

Flutter_svg? Not flutter_svg?

dnfield/flutter_svg is needed?

it works for me.

dependencies:
  flutter_datetime_picker: ^1.4.0

@the-anup-das
Copy link

the-anup-das commented Sep 5, 2020

@the-anup-das

Flutter_svg? Not flutter_svg?

dnfield/flutter_svg is needed?

it works for me.

dependencies:
  flutter_datetime_picker: ^1.4.0

Yeah you are right! thanks for seeing it.

dnfield/flutter_svg is needed?
If you are rendering SVG or XML files you will need flutter_svg

@hiashutoshsingh
Copy link

For me I replace all DiagnosticableMixin in the class by Diagnosticable and it works

how ?

@kebsont
Copy link

kebsont commented Nov 11, 2020

@hiashutoshsingh with Ctrl+F
Search and replace

@hiashutoshsingh
Copy link

hiashutoshsingh commented Nov 11, 2020

@hiashutoshsingh with Ctrl+F
Search and replace

but that class is in cache file of package...is it recommended to modify files in package ?

@Luvti
Copy link

Luvti commented Nov 11, 2020

@hiashutoshsingh with Ctrl+F
Search and replace

but that class is in cache file of package...is it recommended to modify files in package ?

use this fix instead: Luvti@6f70dd5

@kebsont
Copy link

kebsont commented Nov 11, 2020

@hiashutoshsingh with Ctrl+F
Search and replace

but that class is in cache file of package...is it recommended to modify files in package ?

It is not recommended if you don’t know what you are doing.
Search and replace the name of the class and it will works

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