Skip to content

armgit / ente

Public Imported from GitHub
0

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

feat(map in info): minor changes

ashilkn36f0f45a8523
diff --git a/lib/ui/map/enable_map.dart b/lib/ui/map/enable_map.dart
index 320c7b0331..770137023e 100644
--- a/lib/ui/map/enable_map.dart
+++ b/lib/ui/map/enable_map.dart
@@ -48,3 +48,9 @@ Future<bool> requestForMapEnable(BuildContext context) async {
}
return false;
}
+
+//For debugging.
+void disableMap() {
+ UserRemoteFlagService.instance
+ .setBoolValue(UserRemoteFlagService.mapEnabled, false);
+}
diff --git a/lib/ui/viewer/file_details/location_tags_widget.dart b/lib/ui/viewer/file_details/location_tags_widget.dart
index 9c314c2fa6..8af85a7757 100644
--- a/lib/ui/viewer/file_details/location_tags_widget.dart
+++ b/lib/ui/viewer/file_details/location_tags_widget.dart
@@ -187,7 +187,7 @@ class _InfoMapState extends State<InfoMap> {
clipBehavior: Clip.antiAliasWithSaveLayer,
borderRadius: const BorderRadius.all(Radius.circular(8)),
child: SizedBox(
- height: 120,
+ height: 124,
child: _hasEnabledMap
? Stack(
clipBehavior: Clip.none,
@@ -304,7 +304,7 @@ class _InfoMapState extends State<InfoMap> {
},
child: Center(
child: Text(
- "Enable Maps",
+ S.of(context).enableMaps,
style: getEnteTextTheme(context).small,
),
),