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

Compatibility issue with recent Flutter versions #244

Open
ziad-ezzat opened this issue May 9, 2024 · 9 comments
Open

Compatibility issue with recent Flutter versions #244

ziad-ezzat opened this issue May 9, 2024 · 9 comments

Comments

@ziad-ezzat
Copy link

ziad-ezzat commented May 9, 2024

Hello,

I'm currently using the device_preview package in my Flutter project. However, I've encountered some issues when trying to run my application with recent versions of Flutter.

Here are the error messages I'm getting:
Error: The getter 'backgroundColor' isn't defined for the class 'ThemeData'. Error: No named parameter with the name 'toggleableActiveColor'.

It seems like these properties have been removed in recent versions of Flutter, causing the application to fail to compile.

I'm currently using Flutter version 3.21.0-1.0.pre.2

Could you please look into this issue and provide a fix or update the package to be compatible with recent Flutter versions?

Thank you for your help.

@alirezat66
Copy link

It also provide problem in run test, I had to comment it from my project for now.

@subzero911
Copy link

image

same here
incompatible to Flutter 3.22

@subzero911
Copy link

subzero911 commented May 14, 2024

By the way, I asked Flutter team to make the same tool out of the box, please give some thumbs up flutter/devtools#7336

@mister-rao
Copy link

just upgraded to flutter v3.22 and the project won't run. It was a good package to quickly preview app on different screen sizes. Seems like removing this package from dependency is the only solution as of now.

@vijayvaghela72
Copy link

need solution please update this package for flutter v3.22 .

@viniaf13dti
Copy link

viniaf13dti commented May 15, 2024

Same problem and also had to remove it from my project after updating to v3.22. I hope it gets fixed soon🤞

@halfaHalfawy
Copy link

same issue ,will remove it until fix.

@elmermj
Copy link

elmermj commented May 16, 2024

ziad

Here, try this one. I've just updated it today and haven't been able to test it . It will mean so much if you guys can help me with the tests.

Disclaimer: I'm not the original author.

Link:
https://github.com/elmermj/device_preview_2-beta.git

@mattia-venturini
Copy link

Is this solved with version 1.2.0? Now it seems to build and run fine.

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

9 participants