info: fixed offscreen marker generation for Google Maps

This commit is contained in:
Thibault Deckers 2021-07-03 22:27:42 +09:00
parent 085990c854
commit 3709e0cb07

View file

@ -29,11 +29,18 @@ class ImageMarker extends StatelessWidget {
@override
Widget build(BuildContext context) {
final thumbnail = ThumbnailImage(
Widget child = ThumbnailImage(
entry: entry,
extent: extent,
);
// need to be sized for the Google Maps marker generator
child = SizedBox(
width: extent,
height: extent,
child: child,
);
const outerDecoration = BoxDecoration(
border: Border.fromBorderSide(BorderSide(
color: outerBorderColor,
@ -66,7 +73,7 @@ class ImageMarker extends StatelessWidget {
position: DecorationPosition.foreground,
child: ClipRRect(
borderRadius: innerBorderRadius,
child: thumbnail,
child: child,
),
),
),