We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I create a Simulator device - iPad Pro 13-inch (M4) 17.4.
When I am using ResponsiveBuilder, deviceScreenType reports DeviceScreenType.desktop.
ResponsiveBuilder
deviceScreenType
DeviceScreenType.desktop
Expected scenario: deviceScreenType should report DeviceScreenType.tablet.
DeviceScreenType.tablet
The text was updated successfully, but these errors were encountered:
For the reference - I used the following fix to handle my emulator case.
DeviceInfoPlugin deviceInfo = DeviceInfoPlugin(); if (Platform.isIOS) { return FutureBuilder( future: deviceInfo.iosInfo, builder: (_, snapshot) { if (!snapshot.hasData) return const SizedBox(); var iosInfo = snapshot.data!; bool isSimulator = !iosInfo.isPhysicalDevice; bool isTablet = iosInfo.model.toLowerCase().contains('ipad'); if (isSimulator && isTablet) { // a fix for a library return _renderTabletWidget(); } else if (sizingInformation.isTablet) { return _renderTabletWidget(); } else { return _renderWidget(); } }, ); }
Sorry, something went wrong.
No branches or pull requests
I create a Simulator device - iPad Pro 13-inch (M4) 17.4.
When I am using
ResponsiveBuilder
,deviceScreenType
reportsDeviceScreenType.desktop
.Expected scenario:
deviceScreenType
should reportDeviceScreenType.tablet
.The text was updated successfully, but these errors were encountered: