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

Loading…
Cancel
Save