Skip to content

armgit / ente

Public Imported from GitHub
0

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

show info to users that edits to location will only be seen within Ente

ashilkn2f528e33ac0d
diff --git a/lib/generated/l10n.dart b/lib/generated/l10n.dart
index ff1cbcc229..13be3c9afd 100644
--- a/lib/generated/l10n.dart
+++ b/lib/generated/l10n.dart
@@ -8197,6 +8197,16 @@ class S {
args: [],
);
}
+
+ /// `Edits to location will only be seen within Ente`
+ String get editsToLocationWillOnlyBeSeenWithinEnte {
+ return Intl.message(
+ 'Edits to location will only be seen within Ente',
+ name: 'editsToLocationWillOnlyBeSeenWithinEnte',
+ desc: '',
+ args: [],
+ );
+ }
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
diff --git a/lib/l10n/intl_cs.arb b/lib/l10n/intl_cs.arb
index 038d7b6171..6a71af50f2 100644
--- a/lib/l10n/intl_cs.arb
+++ b/lib/l10n/intl_cs.arb
@@ -9,5 +9,6 @@
"editLocation": "Edit location",
"selectALocation": "Select a location",
"selectALocationFirst": "Select a location first",
- "changeLocationOfSelectedItems": "Change location of selected items?"
+ "changeLocationOfSelectedItems": "Change location of selected items?",
+ "editsToLocationWillOnlyBeSeenWithinEnte": "Edits to location will only be seen within Ente"
}
\ No newline at end of file
diff --git a/lib/l10n/intl_de.arb b/lib/l10n/intl_de.arb
index 1afcd1b5a6..5549ff9ef8 100644
--- a/lib/l10n/intl_de.arb
+++ b/lib/l10n/intl_de.arb
@@ -1162,5 +1162,6 @@
"editLocation": "Edit location",
"selectALocation": "Select a location",
"selectALocationFirst": "Select a location first",
- "changeLocationOfSelectedItems": "Change location of selected items?"
+ "changeLocationOfSelectedItems": "Change location of selected items?",
+ "editsToLocationWillOnlyBeSeenWithinEnte": "Edits to location will only be seen within Ente"
}
\ No newline at end of file
diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb
index e39b977d66..9640abb456 100644
--- a/lib/l10n/intl_en.arb
+++ b/lib/l10n/intl_en.arb
@@ -1162,5 +1162,6 @@
"editLocation": "Edit location",
"selectALocation": "Select a location",
"selectALocationFirst": "Select a location first",
- "changeLocationOfSelectedItems": "Change location of selected items?"
+ "changeLocationOfSelectedItems": "Change location of selected items?",
+ "editsToLocationWillOnlyBeSeenWithinEnte": "Edits to location will only be seen within Ente"
}
\ No newline at end of file
diff --git a/lib/l10n/intl_es.arb b/lib/l10n/intl_es.arb
index 8a7bdf418e..0720f8d3ea 100644
--- a/lib/l10n/intl_es.arb
+++ b/lib/l10n/intl_es.arb
@@ -972,5 +972,6 @@
"editLocation": "Edit location",
"selectALocation": "Select a location",
"selectALocationFirst": "Select a location first",
- "changeLocationOfSelectedItems": "Change location of selected items?"
+ "changeLocationOfSelectedItems": "Change location of selected items?",
+ "editsToLocationWillOnlyBeSeenWithinEnte": "Edits to location will only be seen within Ente"
}
\ No newline at end of file
diff --git a/lib/l10n/intl_fr.arb b/lib/l10n/intl_fr.arb
index 047f9ccb9f..fe9c4c64c8 100644
--- a/lib/l10n/intl_fr.arb
+++ b/lib/l10n/intl_fr.arb
@@ -1153,5 +1153,6 @@
"editLocation": "Edit location",
"selectALocation": "Select a location",
"selectALocationFirst": "Select a location first",
- "changeLocationOfSelectedItems": "Change location of selected items?"
+ "changeLocationOfSelectedItems": "Change location of selected items?",
+ "editsToLocationWillOnlyBeSeenWithinEnte": "Edits to location will only be seen within Ente"
}
\ No newline at end of file
diff --git a/lib/l10n/intl_it.arb b/lib/l10n/intl_it.arb
index ceddbbe583..7df3892f50 100644
--- a/lib/l10n/intl_it.arb
+++ b/lib/l10n/intl_it.arb
@@ -1115,5 +1115,6 @@
"editLocation": "Edit location",
"selectALocation": "Select a location",
"selectALocationFirst": "Select a location first",
- "changeLocationOfSelectedItems": "Change location of selected items?"
+ "changeLocationOfSelectedItems": "Change location of selected items?",
+ "editsToLocationWillOnlyBeSeenWithinEnte": "Edits to location will only be seen within Ente"
}
\ No newline at end of file
diff --git a/lib/l10n/intl_ko.arb b/lib/l10n/intl_ko.arb
index 038d7b6171..6a71af50f2 100644
--- a/lib/l10n/intl_ko.arb
+++ b/lib/l10n/intl_ko.arb
@@ -9,5 +9,6 @@
"editLocation": "Edit location",
"selectALocation": "Select a location",
"selectALocationFirst": "Select a location first",
- "changeLocationOfSelectedItems": "Change location of selected items?"
+ "changeLocationOfSelectedItems": "Change location of selected items?",
+ "editsToLocationWillOnlyBeSeenWithinEnte": "Edits to location will only be seen within Ente"
}
\ No newline at end of file
diff --git a/lib/l10n/intl_nl.arb b/lib/l10n/intl_nl.arb
index 07f45b66fe..bb8404dc45 100644
--- a/lib/l10n/intl_nl.arb
+++ b/lib/l10n/intl_nl.arb
@@ -1162,5 +1162,6 @@
"editLocation": "Edit location",
"selectALocation": "Select a location",
"selectALocationFirst": "Select a location first",
- "changeLocationOfSelectedItems": "Change location of selected items?"
+ "changeLocationOfSelectedItems": "Change location of selected items?",
+ "editsToLocationWillOnlyBeSeenWithinEnte": "Edits to location will only be seen within Ente"
}
\ No newline at end of file
diff --git a/lib/l10n/intl_no.arb b/lib/l10n/intl_no.arb
index 88ffdc7cef..d55787f179 100644
--- a/lib/l10n/intl_no.arb
+++ b/lib/l10n/intl_no.arb
@@ -23,5 +23,6 @@
"editLocation": "Edit location",
"selectALocation": "Select a location",
"selectALocationFirst": "Select a location first",
- "changeLocationOfSelectedItems": "Change location of selected items?"
+ "changeLocationOfSelectedItems": "Change location of selected items?",
+ "editsToLocationWillOnlyBeSeenWithinEnte": "Edits to location will only be seen within Ente"
}
\ No newline at end of file
diff --git a/lib/l10n/intl_pl.arb b/lib/l10n/intl_pl.arb
index 8a512258e3..7dfb7abc1c 100644
--- a/lib/l10n/intl_pl.arb
+++ b/lib/l10n/intl_pl.arb
@@ -110,5 +110,6 @@
"editLocation": "Edit location",
"selectALocation": "Select a location",
"selectALocationFirst": "Select a location first",
- "changeLocationOfSelectedItems": "Change location of selected items?"
+ "changeLocationOfSelectedItems": "Change location of selected items?",
+ "editsToLocationWillOnlyBeSeenWithinEnte": "Edits to location will only be seen within Ente"
}
\ No newline at end of file
diff --git a/lib/l10n/intl_pt.arb b/lib/l10n/intl_pt.arb
index 029322d42b..e0232c58ef 100644
--- a/lib/l10n/intl_pt.arb
+++ b/lib/l10n/intl_pt.arb
@@ -276,5 +276,6 @@
"editLocation": "Edit location",
"selectALocation": "Select a location",
"selectALocationFirst": "Select a location first",
- "changeLocationOfSelectedItems": "Change location of selected items?"
+ "changeLocationOfSelectedItems": "Change location of selected items?",
+ "editsToLocationWillOnlyBeSeenWithinEnte": "Edits to location will only be seen within Ente"
}
\ No newline at end of file
diff --git a/lib/l10n/intl_zh.arb b/lib/l10n/intl_zh.arb
index dff07f8bf5..4bb5448d0d 100644
--- a/lib/l10n/intl_zh.arb
+++ b/lib/l10n/intl_zh.arb
@@ -1162,5 +1162,6 @@
"editLocation": "Edit location",
"selectALocation": "Select a location",
"selectALocationFirst": "Select a location first",
- "changeLocationOfSelectedItems": "Change location of selected items?"
+ "changeLocationOfSelectedItems": "Change location of selected items?",
+ "editsToLocationWillOnlyBeSeenWithinEnte": "Edits to location will only be seen within Ente"
}
\ No newline at end of file
diff --git a/lib/ui/viewer/location/update_location_data_widget.dart b/lib/ui/viewer/location/update_location_data_widget.dart
index 428fe84dde..93b608a520 100644
--- a/lib/ui/viewer/location/update_location_data_widget.dart
+++ b/lib/ui/viewer/location/update_location_data_widget.dart
@@ -75,6 +75,9 @@ class _UpdateLocationDataWidgetState extends State<UpdateLocationDataWidget> {
}
},
),
+ nonRotatedChildren: const [
+ OSMFranceTileAttributes(),
+ ],
children: const [
OSMFranceTileLayer(),
],
@@ -102,8 +105,10 @@ class _UpdateLocationDataWidgetState extends State<UpdateLocationDataWidget> {
),
);
return locationInDMS != null
- ? SizedBox(
- width: 80 * MediaQuery.textScaleFactorOf(context),
+ ? ConstrainedBox(
+ constraints: BoxConstraints(
+ minWidth: 80 * MediaQuery.textScaleFactorOf(context),
+ ),
child: Column(
children: [
Text(
@@ -118,10 +123,7 @@ class _UpdateLocationDataWidgetState extends State<UpdateLocationDataWidget> {
],
),
)
- : Text(
- S.of(context).selectALocation,
- style: textTheme.mini,
- );
+ : const UpdateLocationInfo();
},
),
),
@@ -227,3 +229,62 @@ class _UpdateLocationDataWidgetState extends State<UpdateLocationDataWidget> {
);
}
}
+
+class UpdateLocationInfo extends StatefulWidget {
+ const UpdateLocationInfo({super.key});
+
+ @override
+ State<UpdateLocationInfo> createState() => _UpdateLocationInfoState();
+}
+
+class _UpdateLocationInfoState extends State<UpdateLocationInfo> {
+ bool showSelectLocationText = false;
+
+ @override
+ initState() {
+ super.initState();
+ Future.delayed(const Duration(seconds: 3), () {
+ setState(() {
+ showSelectLocationText = true;
+ });
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return AnimatedCrossFade(
+ duration: const Duration(milliseconds: 200),
+ firstCurve: Curves.easeInOutExpo,
+ secondCurve: Curves.easeInOutExpo,
+ sizeCurve: Curves.easeInOutExpo,
+ crossFadeState: showSelectLocationText
+ ? CrossFadeState.showFirst
+ : CrossFadeState.showSecond,
+ firstChild: Text(
+ S.of(context).selectALocation,
+ style: getEnteTextTheme(context).mini,
+ ),
+ secondChild: Text(
+ S.of(context).editsToLocationWillOnlyBeSeenWithinEnte,
+ style: getEnteTextTheme(context).mini,
+ ),
+ layoutBuilder: (topChild, topChildKey, bottomChild, bottomChildKey) {
+ return Stack(
+ alignment: Alignment.center,
+ children: [
+ Positioned(
+ top: 0,
+ key: bottomChildKey,
+ child: bottomChild,
+ // top: 0,
+ ),
+ Positioned(
+ key: topChildKey,
+ child: topChild,
+ ),
+ ],
+ );
+ },
+ );
+ }
+}