π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix flutter analyze issues
Prateek Sunal565204e96c6f
diff --git a/mobile/apps/auth/lib/store/authenticator_db.dart b/mobile/apps/auth/lib/store/authenticator_db.dartindex 8e8ac11bb0..89d695ecad 100644--- a/mobile/apps/auth/lib/store/authenticator_db.dart+++ b/mobile/apps/auth/lib/store/authenticator_db.dart@@ -184,6 +184,7 @@ class AuthenticatorDB extends EnteBaseDatabase {debugPrint("Done");}+ @overrideFuture<void> clearTable() async {final db = await instance.database;await db.delete(entityTable);diff --git a/mobile/apps/auth/lib/ui/settings/data/data_section_widget.dart b/mobile/apps/auth/lib/ui/settings/data/data_section_widget.dartindex 0c2bbb150e..0d84ea341f 100644--- a/mobile/apps/auth/lib/ui/settings/data/data_section_widget.dart+++ b/mobile/apps/auth/lib/ui/settings/data/data_section_widget.dart@@ -95,7 +95,7 @@ class DataSectionWidget extends StatelessWidget {if (FeatureFlagService.isInternalUserOrDebugBuild())MenuItemWidget(captionedTextWidget: CaptionedTextWidget(- title: l10n.localBackupSidebarTitle + "(i)",+ title: "${l10n.localBackupSidebarTitle}(i)",),pressedColor: getEnteColorScheme(context).fillFaint,trailingIcon: Icons.chevron_right_outlined,diff --git a/mobile/apps/auth/lib/ui/utils/icon_utils.dart b/mobile/apps/auth/lib/ui/utils/icon_utils.dartindex e51e2ac46a..11a7b36850 100644--- a/mobile/apps/auth/lib/ui/utils/icon_utils.dart+++ b/mobile/apps/auth/lib/ui/utils/icon_utils.dart@@ -190,9 +190,12 @@ class IconUtils {}bool _isCloseToNeutralGrey(Color color, {double tolerance = 3}) {- return (color.red - color.green).abs() <= tolerance &&- (color.green - color.blue).abs() <= tolerance &&- (color.blue - color.red).abs() <= tolerance;+ final red = (color.r * 255.0).round() & 0xff;+ final green = (color.g * 255.0).round() & 0xff;+ final blue = (color.b * 255.0).round() & 0xff;+ return (red - green).abs() <= tolerance &&+ (green - blue).abs() <= tolerance &&+ (blue - red).abs() <= tolerance;}Future<void> _loadJson() async {