dart-lang/labs

Blank screen when importing gcloud/db.dart

andrelegault opened this issue · 2 comments

Whenever I add the db module of the gcloud package to any of my projects, the app just shows a blank screen.

import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'dart:async';
import 'directions_api.dart';
import 'package:flutter_polyline_points/flutter_polyline_points.dart';
import 'dart:convert';

import 'package:gcloud/db.dart' as gcloud; // THIS IMPORT GIVES A BLANK SCREEN

Anyone experience this before?

EDIT: I tried running flutter clean

Here are some errors I see in the console:

E/flutter ( 9559): [ERROR:flutter/shell/common/shell.cc(209)] Dart Error: error: import of dart:mirrors is not supported in the current Dart runtime
E/flutter ( 9559): [ERROR:flutter/shell/common/engine.cc(205)] Could not prepare to run the isolate.
E/flutter ( 9559): [ERROR:flutter/shell/common/engine.cc(144)] Engine not prepare and launch isolate.
E/flutter ( 9559): [ERROR:flutter/shell/common/shell.cc(481)] Could not launch engine with configuration.
Connecting to VM Service at ws://127.0.0.1:40169/gXoJXnqv7w4=/ws
W/mple.test_app_( 9559): Reducing the number of considered missed Gc histogram windows from 138 to 100```

I've had the same issue trying to use pubsub. I now realise that this package is not compatible with flutter.

See #67.

I see. Just saw the readme and issue comment. Makes sense now, I'll close and stick to using other packages.