Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Hide locationTag feature desc when name is pre-filled

Neeraj Guptafaea976b5591
diff --git a/lib/ui/viewer/location/add_location_sheet.dart b/lib/ui/viewer/location/add_location_sheet.dart
index 46b2731089..cf66294315 100644
--- a/lib/ui/viewer/location/add_location_sheet.dart
+++ b/lib/ui/viewer/location/add_location_sheet.dart
@@ -170,11 +170,12 @@ class _AddLocationSheetState extends State<AddLocationSheet> {
RadiusPickerWidget(
_selectedRadiusNotifier,
),
- const SizedBox(height: 16),
- Text(
- S.of(context).locationTagFeatureDescription,
- style: textTheme.smallMuted,
- ),
+ if (widget.name.isEmpty) const SizedBox(height: 16),
+ if (widget.name.isEmpty)
+ Text(
+ S.of(context).locationTagFeatureDescription,
+ style: textTheme.smallMuted,
+ ),
],
),
),