Skip to content

Commit

Permalink
about: added display details to system info
Browse files Browse the repository at this point in the history
  • Loading branch information
deckerst committed Jan 14, 2025
1 parent 9faa9b7 commit aad89c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/widgets/about/bug_report.dart
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ class _BugReportState extends State<BugReport> with FeedbackMixin {
final packageInfo = await PackageInfo.fromPlatform();
final androidInfo = await DeviceInfoPlugin().androidInfo;
final mediaQuery = MediaQuery.of(context);
final view = View.of(context);
final supportsHdr = await windowService.supportsHdr();
final connections = await Connectivity().checkConnectivity();
final storageVolumes = await storageService.getStorageVolumes();
Expand All @@ -167,7 +168,7 @@ class _BugReportState extends State<BugReport> with FeedbackMixin {
'Android version: ${androidInfo.version.release}, API ${androidInfo.version.sdkInt}',
'Android build: ${androidInfo.display}',
'Device: ${androidInfo.manufacturer} ${androidInfo.model}',
'Display: pixel ratio=${mediaQuery.devicePixelRatio}, logical size=${mediaQuery.size}',
'Display: pixel ratio=${view.devicePixelRatio}, logical=${mediaQuery.size.width}x${mediaQuery.size.height}, physical=${view.physicalSize.width}x${view.physicalSize.height}',
'Support: dynamic colors=${device.isDynamicColorAvailable}, geocoder=${device.hasGeocoder}, HDR=$supportsHdr',
'Mobile services: ${mobileServices.isServiceAvailable ? 'ready' : 'not available'}',
'Connectivity: ${connections.map((v) => v.name).join(', ')}',
Expand Down

0 comments on commit aad89c2

Please sign in to comment.