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

[Question]: What happened to "displayMetrics"? #2754

Closed
8 tasks done
LiveRock opened this issue Mar 26, 2024 · 4 comments
Closed
8 tasks done

[Question]: What happened to "displayMetrics"? #2754

LiveRock opened this issue Mar 26, 2024 · 4 comments
Labels
question Further information is requested

Comments

@LiveRock
Copy link

What is your question?

What happened to "displayMetrics"?

After an update, it is undefined for Android device info:

'displayWidthPixels': build.displayMetrics.widthPx,
'displayWidthInches': build.displayMetrics.widthInches,
'displayHeightPixels': build.displayMetrics.heightPx,
'displayHeightInches': build.displayMetrics.heightInches,
'displayXDpi': build.displayMetrics.xDpi,

Checklist before submitting a question

  • I searched issues in this repository and couldn't find such bug/problem
  • I Google'd a solution and I couldn't find it
  • I searched on StackOverflow for a solution and I couldn't find it
  • I read the README.md file of the plugin
  • I am using the latest version of the plugin
  • All dependencies are up to date with flutter pub upgrade
  • I did a flutter clean
  • I tried running the example project
@LiveRock LiveRock added the question Further information is requested label Mar 26, 2024
@LiveRock
Copy link
Author

Ok, I saw the ChangeLog

@MilkBiscuit
Copy link

Experiencing the same issue, looking for change log also...

@Bisond
Copy link

Bisond commented Apr 17, 2024

Have you found similar documents? The feeling disappeared into thin air

@miquelbeltran
Copy link
Member

https://pub.dev/packages/device_info_plus/changelog#1001

BREAKING FIX(device_info_plus): Remove Display Metrics from Android Device Info (#2731). (c5af3322)

@fluttercommunity fluttercommunity locked as resolved and limited conversation to collaborators Apr 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants