humazed / google_map_location_picker

🌍 Map location picker component for flutter Based on google_maps_flutter
Apache License 2.0
206 stars 309 forks source link

Add margin for float button aka MapFabs #163

Open wgcv opened 3 years ago

wgcv commented 3 years ago

Add custom margin because some time overlap in the search textbox in the issue https://github.com/humazed/google_map_location_picker/issues/88

LocationResult result = await showLocationPicker(
      context,
      "AIzaSyAfss1BCW8g4DtoLZF7vh_Xzz7AJJ5qzuc",
      initialCenter: LatLng(0, 0),
      automaticallyAnimateToCurrentLocation: true,
      myLocationButtonEnabled: true,
      requiredGPS: true,
      layersButtonEnabled: true,
      resultCardAlignment: Alignment.bottomCenter,
      desiredAccuracy: LocationAccuracy.best,
// custom buttonMargin
      buttonMargin: EdgeInsets.only(top: 150, right: 8),
    );