π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
add option to update location for all file types except for videos
ashilkn0a6a4c6835c7
diff --git a/lib/ui/viewer/file/file_details_widget.dart b/lib/ui/viewer/file/file_details_widget.dartindex 00ee29f37e..cc27fe3007 100644--- a/lib/ui/viewer/file/file_details_widget.dart+++ b/lib/ui/viewer/file/file_details_widget.dart@@ -162,40 +162,42 @@ class _FileDetailsWidgetState extends State<FileDetailsWidget> {const FileDetailsDivider(),],)- : Column(- children: [- InfoItemWidget(- leadingIcon: Icons.pin_drop_outlined,- title: "No location data",- subtitleSection: Future.value(- [- Text(- "Add location data",- style: getEnteTextTheme(context).miniBoldMuted,- ),- ],- ),- hasChipButtons: false,- onTap: () {- showBarModalBottomSheet(- shape: const RoundedRectangleBorder(- borderRadius: BorderRadius.vertical(- top: Radius.circular(5),- ),+ : file.fileType != FileType.video+ ? Column(+ children: [+ InfoItemWidget(+ leadingIcon: Icons.pin_drop_outlined,+ title: "No location data",+ subtitleSection: Future.value(+ [+ Text(+ "Add location data",+ style: getEnteTextTheme(context).miniBoldMuted,+ ),+ ],),- backgroundColor:- getEnteColorScheme(context).backgroundElevated,- barrierColor: backdropFaintDark,- context: context,- builder: (context) {- return UpdateLocationDataWidget([file]);+ hasChipButtons: false,+ onTap: () async {+ await showBarModalBottomSheet(+ shape: const RoundedRectangleBorder(+ borderRadius: BorderRadius.vertical(+ top: Radius.circular(5),+ ),+ ),+ backgroundColor: getEnteColorScheme(context)+ .backgroundElevated,+ barrierColor: backdropFaintDark,+ context: context,+ builder: (context) {+ return UpdateLocationDataWidget([file]);+ },+ );},- );- },- ),- const FileDetailsDivider(),- ],- );+ ),+ const FileDetailsDivider(),+ ],+ )+ : const SizedBox.shrink();},),]);