flutter-cupertino-date-picker icon indicating copy to clipboard operation
flutter-cupertino-date-picker copied to clipboard

DiagnosticableMixin error on flutter master branch

Open songyiYu opened this issue 4 years ago • 15 comments

Hi, I'm using your plugin and I think it's useful. but i have trouble with an error on flutter master branch. I switch to flutter master branch, when I run this error is occured.

../../.pub-cache/hosted/pub.dartlang.org/flutter_cupertino_date_picker-1.0.26/lib/src/date_picker_theme.dart:23:32: Error: Type 'DiagnosticableMixin' not found.
class DateTimePickerTheme with DiagnosticableMixin {
                               ^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/flutter_cupertino_date_picker-1.0.26/lib/src/date_picker_theme.dart:23:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class DateTimePickerTheme with DiagnosticableMixin {
      ^


FAILURE: Build failed with an exception.

No issue on stable channel, but only master channel.

I think you should review this error. Thank you!

songyiYu avatar Jun 22 '20 02:06 songyiYu

Same issue using:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, 1.20.0-2.0.pre, on Mac OS X 10.15.5 19F101, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.46.1)
[✓] Connected device (4 available)

EDIT: the problem is not present on dev v1.19.0-4.0.pre

rignaneseleo avatar Jun 27 '20 09:06 rignaneseleo

@songyiYu @rignaneseleo I have the same problem. How did you solve this problem?

asai569 avatar Jun 29 '20 04:06 asai569

I downgraded to dev v1.19.0-4.0.pre using flutter downgrade 1.19.0-4.0.pre

rignaneseleo avatar Jun 29 '20 07:06 rignaneseleo

@songyiYu @rignaneseleo I have the same problem. How did you solve this problem?

Not yet, I'm just working on stable channel now. It's ok

Flutter 1.17.4 • channel stable

songyiYu avatar Jun 29 '20 22:06 songyiYu

me too

../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_cupertino_date_picker-1.0.26+2/lib/src/date_picker_theme.dart:23:32: Error: Type 'DiagnosticableMixin' not found.
class DateTimePickerTheme with DiagnosticableMixin {
                               ^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_cupertino_date_picker-1.0.26+2/lib/src/date_picker_theme.dart:23:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class DateTimePickerTheme with DiagnosticableMixin {

keluokeda avatar Jun 30 '20 01:06 keluokeda

Removed ‘with DiagnosticableMixin’ or change 'DiagnosticableMixin' to 'Diagnosticable' and it work well for me.

woodstream avatar Jul 04 '20 10:07 woodstream

Removed ‘with DiagnosticableMixin’ or change 'DiagnosticableMixin' to 'Diagnosticable' and it work well for me.

yes with this change it works

naccio8 avatar Jul 16 '20 08:07 naccio8

Eliminado 'con DiagnosticableMixin' o cambie 'DiagnosticableMixin' a 'Diagnosticable' y funciona bien para mí.

it work for me

rodgav avatar Jul 23 '20 14:07 rodgav

How do we modify the package? I can't find it in the project. Any help please? Update: Sorry, figured out right away. Actually, didn't modify the package (because it's been already fixed) but just changed the dependency source in pubspec.yaml. For example,

flutter_cupertino_date_picker:
    git: https://github.com/daveleenew/flutter-cupertino-date-picker.git

hoonblizz avatar Aug 08 '20 23:08 hoonblizz

How do we modify the package? I can't find it in the project. Any help please? Update: Sorry, figured out right away. Actually, didn't modify the package (because it's been already fixed) but just changed the dependency source in pubspec.yaml. For example,

flutter_cupertino_date_picker:
    git: https://github.com/daveleenew/flutter-cupertino-date-picker.git

this is real help . thnx Pro

Tayeb-Ali avatar Aug 23 '20 04:08 Tayeb-Ali

I had input_sheet as dependency.... Removing it solved the issue

sadhu1998 avatar Sep 19 '20 14:09 sadhu1998

Removed ‘with DiagnosticableMixin’ or change 'DiagnosticableMixin' to 'Diagnosticable' and it work well for me.

Not the best solution as pub get will eventually update the package sometime and would return the same error.

stickyburn avatar Oct 25 '20 00:10 stickyburn

Error: Type 'DiagnosticableMixin' not found.

and i am on stable channel Flutter (Channel stable, 1.22.4, how do i fix this error please let me know?

girjeshtech9teen avatar Dec 02 '20 11:12 girjeshtech9teen

Is this package being maintained, or is it dead? This is a breaking error that has been around for some time and has not been addressed. This is not a complaint, I'm just wondering whether or not I should use it.

willhaslett avatar Dec 21 '20 16:12 willhaslett

How do we modify the package? I can't find it in the project. Any help please? Update: Sorry, figured out right away. Actually, didn't modify the package (because it's been already fixed) but just changed the dependency source in pubspec.yaml. For example,

flutter_cupertino_date_picker:
    git: https://github.com/daveleenew/flutter-cupertino-date-picker.git

Thanks for this fix, the referenced repo has been working well for us. However, it seems the latest beta channel of Flutter breaks the flutter-cupertino-date-picker library yet again, so I've worked the repo again and implemented the necessary fixes. Feel free to reference our fork for now: https://github.com/winteragency/flutter-cupertino-date-picker.git

marcusforsberg avatar Jan 29 '21 11:01 marcusforsberg