π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] gate multi cast page behind feature flag
Priyanshu Dangaread052908858a
diff --git a/mobile/apps/photos/lib/ui/settings_page.dart b/mobile/apps/photos/lib/ui/settings_page.dartindex 5dee9d0203..ea3c8785af 100644--- a/mobile/apps/photos/lib/ui/settings_page.dart+++ b/mobile/apps/photos/lib/ui/settings_page.dart@@ -122,14 +122,15 @@ class _SettingsBody extends StatelessWidget {},),const SizedBox(height: 8),- _buildMenuItem(- title: AppLocalizations.of(context).cast,- icon: HugeIcons.strokeRoundedTv02,- onTap: () async {- await routeToPage(context, const CastSettingsPage());- },- ),- const SizedBox(height: 8),+ if (flagService.enableMultiCast)+ _buildMenuItem(+ title: AppLocalizations.of(context).cast,+ icon: HugeIcons.strokeRoundedTv02,+ onTap: () async {+ await routeToPage(context, const CastSettingsPage());+ },+ ),+ if (flagService.enableMultiCast) const SizedBox(height: 8),],// Privacy and personalization section_buildMenuItem(diff --git a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dartindex dc9c18f6d1..1ac868eb66 100644--- a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart+++ b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart@@ -132,6 +132,8 @@ class FlagService {bool get mLHydrationStaleFileRecovery => internalUser;+ bool get enableMultiCast => internalUser;+Future<void> tryRefreshFlags() async {try {await _fetch();