Open vmeretin opened 2 months ago
Camera animating on new position
Camera not animating on new position
Flutter version: 3.22.0
Dart version: 3.4.0
Platform: iOS only
class YandexMapsStaticWidget extends StatelessWidget { final double latitude; final double longitude; final VoidCallback onPressed; const YandexMapsStaticWidget({ required this.latitude, required this.longitude, required this.onPressed, }); @override Widget build(BuildContext context) => YandexMap( tiltGesturesEnabled: false, zoomGesturesEnabled: false, rotateGesturesEnabled: false, scrollGesturesEnabled: false, mapObjects: [ PlacemarkMapObject( mapId: MapObjectId('$latitude, $longitude'), point: Point( latitude: latitude, longitude: longitude, ), icon: PlacemarkIcon.single(PlacemarkIconStyle( image: BitmapDescriptor.fromAssetImage('assets/icons/map_selected.png'), )), opacity: 1, ), ], onMapCreated: (yandexMapController) async { await yandexMapController.setMapStyle(YandexMapsConstants.style); await yandexMapController.moveCamera( CameraUpdate.newCameraPosition(CameraPosition( target: Point( latitude: latitude, longitude: longitude, ), zoom: MapConstants.initialStaticZoom, )), animation: const MapAnimation(duration: 0.1), ); }, onMapTap: (point) => onPressed(), ); }
null animation parameter in moveCamera method
animation
moveCamera
Link to Pyrus task
Expected behavior
Camera animating on new position
Actual behavior
Camera not animating on new position
Video/Screenshot
Details
Flutter version: 3.22.0
Dart version: 3.4.0
Platform: iOS only
Example of usage
What did you try to solve
null
animation
parameter inmoveCamera
methodChecklist for self-check