Skip to content

Flutter error with dart:mirrors #6

Open
@stephane-segning

Description

@stephane-segning

I want to use rsocket with my Flutter App.

Expected Behavior

I shall import shelf normally

import 'package:rsocket/shelf.dart';

Actual Behavior

Simply importing this library in a Flutter project causes problem.

import 'dart:mirrors';

So as this library is using it inside route, Flutter crashes.

Steps to Reproduce

To reproduce it, just import the library inside a Flutter project:

import 'package:rsocket/shelf.dart';

Possible Solution

We might use reflectable instead of dart:mirrors as said in the Library here.

Your Environment

rsocket: ^0.1.2
Flutter 2.0.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 1d9032c7e1 (3 weeks ago) • 2021-04-29 17:37:58 -0700
Engine • revision 05e680e202
Tools • Dart 2.12.3

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