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

A value of type 'DialogThemeData' can't be assigned to a variable of type 'DialogTheme' #92

Open
ali-raza-flutter opened this issue Dec 13, 2024 · 7 comments

Comments

@ali-raza-flutter
Copy link

A value of type 'DialogThemeData' can't be assigned to a variable of type 'DialogTheme'

After updating flutter version to 3.27.0 I am encountering this issue.

"Error (Xcode): ../../../.pub-cache/hosted/pub.dev/csc_picker-0.2.7/lib/dropdown_with_search.dart:320:49: Error: A value of type 'DialogThemeData' can't be assigned to a variable of type 'DialogTheme'."

Flutter Doctor result
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.0, on macOS 15.2 24C101 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.96.0)
[✓] Connected device (4 available)
! Error: Browsing on the local area network for Ali Raza’s iPhone. Ensure the device is unlocked and attached with a cable or associated
with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
! Error: Browsing on the local area network for Muhammad Ali’s iPhone. Ensure the device is unlocked and attached with a cable or associated
with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

@abdullhasseeb
Copy link

Step 01 : open this dart file: ../../../.pub-cache/hosted/pub.dev/csc_picker-0.2.7/lib/dropdown_with_search.dart
Step 02 : Go to Line no: 320
Step 03:
before --> final DialogTheme dialogTheme = DialogTheme.of(context);
✅--> change DialogTheme to DialogThemeData
after --> final DialogThemeData dialogThemeData = DialogTheme.of(context);

@ali-raza-flutter
Copy link
Author

Step 01 : open this dart file: ../../../.pub-cache/hosted/pub.dev/csc_picker-0.2.7/lib/dropdown_with_search.dart Step 02 : Go to Line no: 320 Step 03: before --> final DialogTheme dialogTheme = DialogTheme.of(context); ✅--> change DialogTheme to DialogThemeData after --> final DialogThemeData dialogThemeData = DialogTheme.of(context);

@abdullhasseeb

This is not a valid solution, as I am working in a team with multiple developers collaborating on the project.

Unless I create a fork and use that.

However, I still wanted to highlight this issue so that contributors can address it in upcoming updates.

I was considering creating a pull request myself, but after observing the status of older pull requests in this project, I decided not to proceed.

@abdullhasseeb
Copy link

Ok Bro,
Yes you are right, the owner is not active

@ahmerbilaljan
Copy link

Faced the same issue. Not fixed with changing line number 320. Any alt for this package?

@tony123S
Copy link

ging line number 320. Any alt for this

you may use my forked repository

csc_picker_plus:
    git:
      url: git@github.com:tony123S/csc_picker_plus.git

@Nazehs
Copy link

Nazehs commented Jan 4, 2025

I had the same issue and I cloned it and fixed it but it seems you can make a PR to the package in any way.

@labrujasiete
Copy link

ging line number 320. Any alt for this

you may use my forked repository

csc_picker_plus:
    git:
      url: git@github.com:tony123S/csc_picker_plus.git

i think is not up anymore

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

6 participants