Created
December 4, 2021 19:23
-
-
Save berkayoruc/3f290b25ae62e94dabe1cd84046483ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PopupOptions buildPopupOptions() { | |
return PopupOptions( | |
popupController: popupController, | |
popupBuilder: (context, marker) { | |
final buffetMarker = marker as BuffetMarker; | |
return Container( | |
padding: const EdgeInsets.all(8), | |
decoration: BoxDecoration( | |
borderRadius: BorderRadius.circular(4), | |
color: Colors.white, | |
), | |
child: InkWell( | |
onTap: () => openMapSheet(context, marker.point.latitude, | |
marker.point.longitude, marker.name), | |
child: buildPopupContent(buffetMarker)), | |
); | |
}, | |
markerTapBehavior: MarkerTapBehavior.togglePopupAndHideRest(), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment