DarshanGowda0 / GeoFlutterFire

:fire:GeoFlutterFire:fire: is an open-source library that allows you to store and query firestore documents based on their geographic location.
https://youtu.be/MYHVyl-juUk
MIT License
305 stars 260 forks source link

GoogleMapController Initialization #176

Open fredwilliam opened 2 years ago

fredwilliam commented 2 years ago

Hi,

I am getting error on initializing GoogleMapController _mapController; there is Error: Field '_mapController' should be initialized because its type 'GoogleMapController' doesn't allow null

when i use late GoogleMapController _mapController; there is error LateInitializationError: Field '_mapController' has not been initialized.

When i use GoogleMapController? _mapController; there is Error: Method 'animateCamera' cannot be called on 'GoogleMapController?' because it is potentially null.

What is the correct way to initialise?