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

Error: The class 'Drag' can't be used as a mixin because it isn't a mixin class nor a mixin. #1

Open
blacknight9 opened this issue May 21, 2023 · 7 comments

Comments

@blacknight9
Copy link

just installed it and i got this.

../../.pub-cache/hosted/pub.dev/image_crop_plus-0.6.1/lib/src/crop.dart:78:68: Error: The class 'Drag' can't be used as a mixin because it isn't a mixin class nor a mixin.
class CropState extends State<Crop> with TickerProviderStateMixin, Drag {
@LogicNg
Copy link

LogicNg commented May 26, 2023

@JaveriaJR same problem here

@JaveriaJR
Copy link
Owner

@LogicNg @blacknight9 Are you getting this error at installation? I am unable to replicate the issue.

@blacknight9
Copy link
Author

blacknight9 commented May 30, 2023

@JaveriaJR @blacknight9 Are you getting this error at installation? I am unable to replicate the issue.

Update to the latest Dart version

@milkyway044
Copy link

: Error: The class 'Drag' can't be used as a mixin because it isn't a mixin class nor a mixin.
class CropState extends State<Crop> with TickerProviderStateMixin, Drag {
                                                                   ^
: Error: The getter 'valueWrapper' isn't defined for the class 'BehaviorSubject<CameraStatus>'.
- 'BehaviorSubject' is from 'package:rxdart/src/subjects/behavior_subject.dart' ('../../../.pub-cache/hosted/pub.dev/rxdart-0.27.7/lib/src/subjects/behavior_subject.dart').
- 'CameraStatus' is from 'package:camera_camera/src/core/camera_status.dart' ('../../../.pub-cache/hosted/pub.dev/camera_camera-2.0.2/lib/src/core/camera_status.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'valueWrapper'.
      statusStream.valueWrapper?.value ?? CameraStatusEmpty();
                   ^^^^^^^^^^^^
[✓] Flutter (Channel stable, 3.10.2, on macOS 12.6.2 21G320 darwin-x64, locale ru-RU)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.78.2)
[✓] Connected device (3 available)
[✓] Network resources

@JaveriaJR
Copy link
Owner

Hi everyone, Please let me know if you get any issues in whatsapp_story_editor: ^0.0.6 (and above).
@milkyway044 @blacknight9 @LogicNg

@blacknight9
Copy link
Author

it's been months since i tried this. still having the same issue.

after installing the app won't work, i get thiss error

../../../.pub-cache/hosted/pub.dev/image_crop_plus-0.6.1/lib/src/crop.dart:78:68: Error: The class 'Drag' can't be used as a mixin because it isn't a mixin class nor a mixin.
class CropState extends State<Crop> with TickerProviderStateMixin, Drag {
                                                               ^

@MartinMbae
Copy link

Still getting the same error

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

5 participants