Dictionary 飞镖/颤振包冲突
我尝试在我的颤振应用程序中实现此映射: 如果我从上面的github运行示例代码,它会抛出这样一个错误:Dictionary 飞镖/颤振包冲突,dictionary,dart,flutter,Dictionary,Dart,Flutter,我尝试在我的颤振应用程序中实现此映射: 如果我从上面的github运行示例代码,它会抛出这样一个错误: type 'Bounds<num>' is not a subtype of type 'Bounds<double>' where Bounds is from package:flutter_map/src/core/bounds.dart num is from dart:core Bounds is from package:flutter_map/src/c
type 'Bounds<num>' is not a subtype of type 'Bounds<double>' where
Bounds is from package:flutter_map/src/core/bounds.dart
num is from dart:core
Bounds is from package:flutter_map/src/core/bounds.dart
double is from dart:core
我要说的是,
flatter\u map
被破坏了,应该向作者报告,因为是的,num不是double的子类型。在发布当天,flatter\u map没有更新以支持dart 2.0中更强大的类型系统。它确实适用于dart 1.0
自2018年4月18日起,颤振图的0.0.3版已经发布,并根据修复了此问题。试试看
import 'package:flutter/material.dart';
import 'package:latlong/latlong.dart';
import 'package:flutter_map/flutter_map.dart' as mp;
我的配置或依赖项一定有问题,Flatter_map适用于其他所有人。您应该详细说明这将是一个解决方案的方式/原因。尽管您的代码片段可能会解决问题,但您应该描述代码的用途(它如何解决问题)。此外,您可能需要检查
import 'package:flutter/material.dart';
import 'package:latlong/latlong.dart';
import 'package:flutter_map/flutter_map.dart' as mp;