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),
|
||||
]),
|
||||
Gap($styles.insets.md),
|
||||
AspectRatio(aspectRatio: 1.65, child: _MapsThumbnail(data)),
|
||||
_MapsThumbnail(data),
|
||||
Gap($styles.insets.md),
|
||||
..._contentSection([Center(child: buildHiddenCollectible(slot: 3))]),
|
||||
Gap(150),
|
||||
@ -228,8 +228,10 @@ class _MapsThumbnailState extends State<_MapsThumbnail> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
void handlePressed() => context.push(ScreenPaths.maps(widget.data.type));
|
||||
if (PlatformInfo.isDesktop) return Placeholder();
|
||||
return MergeSemantics(
|
||||
if (PlatformInfo.isDesktop) return SizedBox.shrink();
|
||||
return AspectRatio(
|
||||
aspectRatio: 1.65,
|
||||
child: MergeSemantics(
|
||||
child: Column(
|
||||
children: [
|
||||
Flexible(
|
||||
@ -268,6 +270,7 @@ class _MapsThumbnailState extends State<_MapsThumbnail> {
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user