Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LatLng _lastMapPosition = _center;
- void _onCameraMove(CameraPosition position) {
- _lastMapPosition = position.target;
- }
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- ...
- GoogleMap(
- ...
- onCameraMove: _onCameraMove,
- ),
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement