Browse Source

修改推送OK

null_safety
哈哈哈 3 years ago
parent
commit
46d471ef8f
  1. 12
      lib/address/address_map_page.dart

12
lib/address/address_map_page.dart

@ -83,7 +83,7 @@ class _AddressMapPage extends State<AddressMapPage> {
.then((value) { .then((value) {
saveLatLng(value); saveLatLng(value);
if (_mapController != null) { if (_mapController != null) {
this.latLng = value; this.latLng = Platform.isIOS ? value : latLng;
addMarker(); addMarker();
_mapController.updateMapOptions( _mapController.updateMapOptions(
BMFMapOptions( BMFMapOptions(
@ -284,10 +284,10 @@ class _AddressMapPage extends State<AddressMapPage> {
bmfMarker = BMFMarker( bmfMarker = BMFMarker(
position: latLng, position: latLng,
screenPointToLock: BMFPoint(window.physicalSize.width / 2, screenPointToLock: BMFPoint((Platform.isIOS ? MediaQuery.of(context).size.width : window.physicalSize.width) / 2,
window.physicalSize.height / 4), Platform.isIOS ? MediaQuery.of(context).size.height : window.physicalSize.height / 4),
isLockedToScreen: true, isLockedToScreen: true,
centerOffset: BMFPoint(1, 1), centerOffset: BMFPoint(0.5, 0.95),
enabled: false, enabled: false,
icon: "assets/image/icon_map_marker.png", icon: "assets/image/icon_map_marker.png",
draggable: false, draggable: false,
@ -296,8 +296,8 @@ class _AddressMapPage extends State<AddressMapPage> {
} }
bmfMarker.updateIsLockedToScreen( bmfMarker.updateIsLockedToScreen(
true, true,
BMFPoint(window.physicalSize.width / 2, BMFPoint((Platform.isIOS ? MediaQuery.of(context).size.width : window.physicalSize.width) / 2,
window.physicalSize.height / 4)); (Platform.isIOS ? MediaQuery.of(context).size.height : window.physicalSize.height) / 4));
} }
saveLatLng(BMFCoordinate latLng) async { saveLatLng(BMFCoordinate latLng) async {

Loading…
Cancel
Save