-
-
Notifications
You must be signed in to change notification settings - Fork 860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packages failure #12
Comments
Can you try using a scaffold with OpenStreetMap and let me know if you still hit this issue? import 'package:flutter/material.dart';
import 'package:latlong/latlong.dart';
import 'package:flutter_map/flutter_map.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
home: new Scaffold(
body: new FlutterMap(
options: new MapOptions(
center: new LatLng(51.5, -0.09),
zoom: 13.0,
),
layers: [
new TileLayerOptions(
urlTemplate: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
subdomains: ['a', 'b', 'c'],
additionalOptions: {
'accessToken': 'my api key from mapbox',
'id': 'mapbox.streets',
},
),
new MarkerLayerOptions(
markers: [
new Marker(
width: 80.0,
height: 80.0,
point: new LatLng(51.5, -0.09),
builder: (ctx) => new Container(
child: new FlutterLogo(),
),
),
],
),
],
),
),
);
}
}
|
Still same exception:
|
Thanks - I'll try to reproduce. It seems like a simple fix. |
Exception occurs when running app with --preview-dart-2 |
ah that makes sense. I'll try to find some time to work on this. |
Facing the same problem. Is there any updates? |
@zhangshu1 what version of flutter_map are you using? this should be fixed in ^0.0.3 |
@johnpryan Thanks! It fixed! |
flutter: #33 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame flutter_map: "^0.6.1" |
@shinygang can you file a separate issue for this please? thanks! |
Running the simplest flutter app with flutter_map causes this Exception:
Dependencies:
imports and dart code:
The text was updated successfully, but these errors were encountered: