Hide placeholder for maps plugin on desktop
This commit is contained in:
parent
4492f9e4ee
commit
d3e7e7e606
@ -134,7 +134,7 @@ class _ScrollingContent extends StatelessWidget {
|
|||||||
buildText(data.locationInfo2),
|
buildText(data.locationInfo2),
|
||||||
]),
|
]),
|
||||||
Gap($styles.insets.md),
|
Gap($styles.insets.md),
|
||||||
AspectRatio(aspectRatio: 1.65, child: _MapsThumbnail(data)),
|
_MapsThumbnail(data),
|
||||||
Gap($styles.insets.md),
|
Gap($styles.insets.md),
|
||||||
..._contentSection([Center(child: buildHiddenCollectible(slot: 3))]),
|
..._contentSection([Center(child: buildHiddenCollectible(slot: 3))]),
|
||||||
Gap(150),
|
Gap(150),
|
||||||
@ -228,8 +228,10 @@ class _MapsThumbnailState extends State<_MapsThumbnail> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
void handlePressed() => context.push(ScreenPaths.maps(widget.data.type));
|
void handlePressed() => context.push(ScreenPaths.maps(widget.data.type));
|
||||||
if (PlatformInfo.isDesktop) return Placeholder();
|
if (PlatformInfo.isDesktop) return SizedBox.shrink();
|
||||||
return MergeSemantics(
|
return AspectRatio(
|
||||||
|
aspectRatio: 1.65,
|
||||||
|
child: MergeSemantics(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Flexible(
|
Flexible(
|
||||||
@ -268,6 +270,7 @@ class _MapsThumbnailState extends State<_MapsThumbnail> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user