screen_retriever
screen_retriever copied to clipboard
Retrieved display name is not correct on Windows.
I use a Huawei Windows11 laptop connected to two external displays. On that machine, retrieving all displays yields incorrect display names with unexpected prefix characters. However, running the same code on my M1 MacBook Pro with the same external displays retrieves the correct display names.
final displays = await screenRetriever.getAllDisplays();
debugPrint('displays : ${displays.map((e) => e.name)}');
on Windows :
flutter: displays : (\\.\DISPLAY1, \\.\DISPLAY2, \\.\DISPLAY3)
on Mac :
flutter: displays : (Built-in Retina Display, 27UF10, U32N3G6R3B)
FYI:
Doctor summary (to see all details, run flutter doctor -v):
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.3)
[√] Android Studio (version 2023.1)
[√] Connected device (3 available)
[√] Network resources