info: fixed offscreen marker generation for Google Maps
This commit is contained in:
parent
085990c854
commit
3709e0cb07
1 changed files with 9 additions and 2 deletions
|
@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue