Fix issue w/ maps layout
This commit is contained in:
parent
fae324b7ca
commit
7276274eff
@ -232,27 +232,29 @@ class _MapsThumbnailState extends State<_MapsThumbnail> {
|
|||||||
return MergeSemantics(
|
return MergeSemantics(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
ClipRRect(
|
Flexible(
|
||||||
borderRadius: BorderRadius.circular($styles.corners.md),
|
child: ClipRRect(
|
||||||
child: AppBtn.basic(
|
borderRadius: BorderRadius.circular($styles.corners.md),
|
||||||
semanticLabel: $strings.scrollingContentSemanticOpen,
|
child: AppBtn.basic(
|
||||||
onPressed: handlePressed,
|
semanticLabel: $strings.scrollingContentSemanticOpen,
|
||||||
|
onPressed: handlePressed,
|
||||||
|
|
||||||
/// To prevent the map widget from absorbing the onPressed action, use a Stack + IgnorePointer + a transparent Container
|
/// To prevent the map widget from absorbing the onPressed action, use a Stack + IgnorePointer + a transparent Container
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Positioned.fill(child: ColoredBox(color: Colors.transparent)),
|
Positioned.fill(child: ColoredBox(color: Colors.transparent)),
|
||||||
IgnorePointer(
|
IgnorePointer(
|
||||||
child: GoogleMap(
|
child: GoogleMap(
|
||||||
markers: {getMapsMarker(startPos.target)},
|
markers: {getMapsMarker(startPos.target)},
|
||||||
zoomControlsEnabled: false,
|
zoomControlsEnabled: false,
|
||||||
mapType: MapType.normal,
|
mapType: MapType.normal,
|
||||||
mapToolbarEnabled: false,
|
mapToolbarEnabled: false,
|
||||||
initialCameraPosition: startPos,
|
initialCameraPosition: startPos,
|
||||||
myLocationButtonEnabled: false,
|
myLocationButtonEnabled: false,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user