rename package
This commit is contained in:
parent
1fb3d91106
commit
f2a4f49e0c
|
@ -1,5 +1,4 @@
|
|||
import 'package:x_amap_base/x_amap_base.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
/// 相机位置,包含可视区域的位置参数。
|
||||
class CameraPosition {
|
||||
|
@ -66,7 +65,7 @@ class CameraPosition {
|
|||
}
|
||||
|
||||
@override
|
||||
int get hashCode => hashValues(bearing, target, tilt, zoom);
|
||||
int get hashCode => Object.hashAll([bearing, target, tilt, zoom]);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
|
|
|
@ -2,11 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:ui' show hashValues, Offset;
|
||||
import 'dart:ui' show Offset;
|
||||
import 'package:amap_map/src/types/base_overlay.dart';
|
||||
import 'package:x_amap_base/x_amap_base.dart';
|
||||
import 'bitmap.dart';
|
||||
import 'base_overlay.dart';
|
||||
|
||||
/// Marker拖动回调
|
||||
typedef void MarkerDragEndCallback(String id, LatLng endPosition);
|
||||
|
@ -68,7 +67,7 @@ class InfoWindow {
|
|||
}
|
||||
|
||||
@override
|
||||
int get hashCode => hashValues(title, snippet);
|
||||
int get hashCode => Object.hashAll([title, snippet]);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
import 'dart:ui' show hashValues;
|
||||
|
||||
import 'package:flutter/foundation.dart' show setEquals;
|
||||
|
||||
import 'types.dart';
|
||||
import 'marker.dart';
|
||||
|
||||
/// 用以描述Marker的更新项
|
||||
class MarkerUpdates {
|
||||
|
@ -91,7 +88,7 @@ class MarkerUpdates {
|
|||
|
||||
@override
|
||||
int get hashCode =>
|
||||
hashValues(markersToAdd, markerIdsToRemove, markersToChange);
|
||||
Object.hashAll([markersToAdd, markerIdsToRemove, markersToChange]);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:ui' show hashValues;
|
||||
|
||||
import 'package:flutter/foundation.dart' show setEquals;
|
||||
import 'types.dart';
|
||||
|
||||
|
@ -94,7 +92,7 @@ class PolygonUpdates {
|
|||
|
||||
@override
|
||||
int get hashCode =>
|
||||
hashValues(polygonsToAdd, polygonIdsToRemove, polygonsToChange);
|
||||
Object.hashAll([polygonsToAdd, polygonIdsToRemove, polygonsToChange]);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
|
|
|
@ -2,11 +2,8 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:ui' show hashValues;
|
||||
|
||||
import 'package:flutter/foundation.dart' show setEquals;
|
||||
|
||||
import 'polyline.dart';
|
||||
import 'types.dart';
|
||||
|
||||
/// 该类主要用以描述[Polyline]的增删改等更新操作
|
||||
|
@ -96,7 +93,7 @@ class PolylineUpdates {
|
|||
|
||||
@override
|
||||
int get hashCode =>
|
||||
hashValues(polylinesToAdd, polylineIdsToRemove, polylinesToChange);
|
||||
Object.hashAll([polylinesToAdd, polylineIdsToRemove, polylinesToChange]);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'dart:typed_data';
|
||||
import 'dart:ui' show Color, hashValues;
|
||||
import 'dart:ui' show Color;
|
||||
import 'package:x_amap_base/x_amap_base.dart';
|
||||
import 'package:amap_map/amap_map.dart';
|
||||
|
||||
|
@ -94,7 +94,7 @@ class MinMaxZoomPreference {
|
|||
}
|
||||
|
||||
@override
|
||||
int get hashCode => hashValues(minZoom, maxZoom);
|
||||
int get hashCode => Object.hashAll([minZoom, maxZoom]);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
|
@ -190,7 +190,7 @@ class MyLocationStyleOptions {
|
|||
|
||||
@override
|
||||
int get hashCode =>
|
||||
hashValues(enabled, circleFillColor, circleStrokeColor, icon);
|
||||
Object.hashAll([enabled, circleFillColor, circleStrokeColor, icon]);
|
||||
}
|
||||
|
||||
///地图自定义样式
|
||||
|
@ -247,7 +247,7 @@ class CustomStyleOptions {
|
|||
}
|
||||
|
||||
@override
|
||||
int get hashCode => hashValues(enabled, styleData, styleExtraData);
|
||||
int get hashCode => Object.hashAll([enabled, styleData, styleExtraData]);
|
||||
|
||||
CustomStyleOptions clone() {
|
||||
return CustomStyleOptions(enabled,
|
||||
|
|
|
@ -15,9 +15,9 @@ dependencies:
|
|||
plugin_platform_interface: ^2.0.0
|
||||
stream_transform: ^2.0.0
|
||||
|
||||
# x_amap_base: ^1.0.0+2
|
||||
x_amap_base:
|
||||
path: ../x_amap_base
|
||||
x_amap_base: ^1.0.0+2
|
||||
# x_amap_base:
|
||||
# path: ../x_amap_base
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
|
|
|
@ -1,22 +1,21 @@
|
|||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
const MethodChannel channel = MethodChannel('amap_map');
|
||||
// const MethodChannel channel = MethodChannel('amap_map');
|
||||
|
||||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
setUp(() {
|
||||
channel.setMockMethodCallHandler((MethodCall methodCall) async {
|
||||
return '42';
|
||||
});
|
||||
});
|
||||
|
||||
tearDown(() {
|
||||
channel.setMockMethodCallHandler(null);
|
||||
});
|
||||
|
||||
// test('getPlatformVersion', () async {
|
||||
// expect(await AMapWiget.platformVersion, '42');
|
||||
// setUp(() {
|
||||
// channel.setMockMethodCallHandler((MethodCall methodCall) async {
|
||||
// return '42';
|
||||
// });
|
||||
// });
|
||||
|
||||
// tearDown(() {
|
||||
// channel.setMockMethodCallHandler(null);
|
||||
// });
|
||||
|
||||
// // test('getPlatformVersion', () async {
|
||||
// // expect(await AMapWiget.platformVersion, '42');
|
||||
// // });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue