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
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final thumbnail = ThumbnailImage(
|
Widget child = ThumbnailImage(
|
||||||
entry: entry,
|
entry: entry,
|
||||||
extent: extent,
|
extent: extent,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// need to be sized for the Google Maps marker generator
|
||||||
|
child = SizedBox(
|
||||||
|
width: extent,
|
||||||
|
height: extent,
|
||||||
|
child: child,
|
||||||
|
);
|
||||||
|
|
||||||
const outerDecoration = BoxDecoration(
|
const outerDecoration = BoxDecoration(
|
||||||
border: Border.fromBorderSide(BorderSide(
|
border: Border.fromBorderSide(BorderSide(
|
||||||
color: outerBorderColor,
|
color: outerBorderColor,
|
||||||
|
@ -66,7 +73,7 @@ class ImageMarker extends StatelessWidget {
|
||||||
position: DecorationPosition.foreground,
|
position: DecorationPosition.foreground,
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: innerBorderRadius,
|
borderRadius: innerBorderRadius,
|
||||||
child: thumbnail,
|
child: child,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue