Skip to content

[Bug]: type 'BaseDeviceInfo' is not a subtype of type 'LinuxDeviceInfo' in type cast #1552

@Holofox

Description

@Holofox

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

  • 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'm 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions