From 7fe8dbe13c7ae97ed842d86a03a4b6f8f22b16d8 Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Wed, 18 Mar 2020 10:48:17 +0900 Subject: [PATCH] fixed bottom overlay height when there is no position/title --- lib/widgets/fullscreen/overlay/bottom.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/widgets/fullscreen/overlay/bottom.dart b/lib/widgets/fullscreen/overlay/bottom.dart index e4de60487..8828130af 100644 --- a/lib/widgets/fullscreen/overlay/bottom.dart +++ b/lib/widgets/fullscreen/overlay/bottom.dart @@ -153,10 +153,11 @@ class _FullscreenBottomOverlayContent extends StatelessWidget { mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [ - SizedBox( - width: maxWidth, - child: Text(positionTitle, strutStyle: Constants.overflowStrutStyle), - ), + if (positionTitle.isNotEmpty) + SizedBox( + width: maxWidth, + child: Text(positionTitle, strutStyle: Constants.overflowStrutStyle), + ), if (entry.hasGps) Container( padding: const EdgeInsets.only(top: _interRowPadding),