Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Make text of checkbox acknowledging enabling ML clickable

ashilkna1dc65d6ee0f
diff --git a/mobile/lib/ui/settings/ml/enable_ml_consent.dart b/mobile/lib/ui/settings/ml/enable_ml_consent.dart
index e9fb4ffb6e..972858c3d7 100644
--- a/mobile/lib/ui/settings/ml/enable_ml_consent.dart
+++ b/mobile/lib/ui/settings/ml/enable_ml_consent.dart
@@ -98,10 +98,18 @@ class _EnableMachineLearningConsentState
Expanded(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 12),
- child: Text(
- S.of(context).mlConsentConfirmation,
- style: getEnteTextTheme(context).bodyMuted,
- textAlign: TextAlign.left,
+ child: GestureDetector(
+ onTap: () {
+ setState(() {
+ _hasAckedPrivacyPolicy.value =
+ !_hasAckedPrivacyPolicy.value;
+ });
+ },
+ child: Text(
+ S.of(context).mlConsentConfirmation,
+ style: getEnteTextTheme(context).bodyMuted,
+ textAlign: TextAlign.left,
+ ),
),
),
),