We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Link to Pyrus task
Sorry, something went wrong.
Any updates?
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: