我正在尝试在基于浏览器的应用程序中使用这个包。当尝试编译到 Chrome 时,我得到这个:
编译器消息:/C:/flutter/.pub-cache/hosted/pub.dartlang.org/whiteboardkit-0.1.8/lib/gesture_whiteboard_controller.dart:63:15:错误:“Point”是从“dart”导入的:数学”和“dart:ui”。..add(Point.fromOffset(位置)); ^^^^^ /C:/flutter/.pub-cache/hosted/pub.dartlang.org/whiteboardkit-0.1.8/lib/gesture_whiteboard_controller.dart:77:39:错误:“点”是从两个“导入” dart:math' 和 'dart:ui'。this.draw.lines.last.points.add(Point.fromOffset(secondPoint));
这似乎是特定于包的,所以我想我的问题是为什么“dart:math”和“dart:ui”之间会发生冲突?