Skip to content

flutter/services library is not compatible with stand-alone VM #19134

@ened

Description

@ened

For a integration test, I would like to retrieve device informations using the device_info plugin: https://github.com/flutter/plugins/blob/master/packages/device_info/lib/device_info.dart

Then, I will write a test and run it like so:

flutter drive --target=test_driver/main_screen.dart

This results in the following error message:

The built-in library 'dart:ui' is not available on the stand-alone VM.
'package:flutter/src/services/binding.dart': error: line 6 pos 1: library handler failed
import 'dart:ui' as ui;

Is it possible to add a non-ui related services library to flutter. The device_info plugin only requires the binding parts, so perhaps a library just for the binding is sufficient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions