Platform
Linux
Plugin
device_info_plus
Version
8.1.0
Flutter SDK
3.7.3
Steps to reproduce
When running tests in Gitlab CI, I encounter a type mismatch error for Linux.
Code Sample
await DeviceInfoPlugin().linuxInfo;
Logs
{"testID":41,"error":"type 'BaseDeviceInfo' is not a subtype of type 'LinuxDeviceInfo' in type cast","stackTrace":"package:device_info_plus/device_info_plus.dart 71:36 DeviceInfoPlugin.linuxInfo\n","isFailure":false,"type":"error","time":181529}
[✓] Flutter (Channel stable, 3.7.3, on macOS 13.0 22A380 darwin-x64, locale ru-RU)
• Flutter version 3.7.3 on channel stable at /Volumes/Development/FVM/3.7.3
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 9944297138 (11 days ago), 2023-02-08 15:46:04 -0800
• Engine revision 248290d6d5
• Dart version 2.19.2
• DevTools version 2.20.1
[✓] IntelliJ IDEA Ultimate Edition (version 2022.2.4)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 72.1.3
• Dart plugin version 222.4533
Checklist before submitting a bug
Platform
Linux
Plugin
device_info_plus
Version
8.1.0
Flutter SDK
3.7.3
Steps to reproduce
When running tests in Gitlab CI, I encounter a type mismatch error for Linux.
Code Sample
Logs
{"testID":41,"error":"type 'BaseDeviceInfo' is not a subtype of type 'LinuxDeviceInfo' in type cast","stackTrace":"package:device_info_plus/device_info_plus.dart 71:36 DeviceInfoPlugin.linuxInfo\n","isFailure":false,"type":"error","time":181529}Checklist before submitting a bug
flutter pub upgradeflutter clean