π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
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.dartindex 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.arbindex 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 filediff --git a/lib/l10n/intl_de.arb b/lib/l10n/intl_de.arbindex 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 filediff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arbindex 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 filediff --git a/lib/l10n/intl_es.arb b/lib/l10n/intl_es.arbindex 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 filediff --git a/lib/l10n/intl_fr.arb b/lib/l10n/intl_fr.arbindex 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 filediff --git a/lib/l10n/intl_it.arb b/lib/l10n/intl_it.arbindex 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 filediff --git a/lib/l10n/intl_ko.arb b/lib/l10n/intl_ko.arbindex 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 filediff --git a/lib/l10n/intl_nl.arb b/lib/l10n/intl_nl.arbindex 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 filediff --git a/lib/l10n/intl_no.arb b/lib/l10n/intl_no.arbindex 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 filediff --git a/lib/l10n/intl_pl.arb b/lib/l10n/intl_pl.arbindex 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 filediff --git a/lib/l10n/intl_pt.arb b/lib/l10n/intl_pt.arbindex 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 filediff --git a/lib/l10n/intl_zh.arb b/lib/l10n/intl_zh.arbindex 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 filediff --git a/lib/ui/viewer/location/update_location_data_widget.dart b/lib/ui/viewer/location/update_location_data_widget.dartindex 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,+ ),+ ],+ );+ },+ );+ }+}