π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Lint fixes
Neeraj Guptaa0025ab09b92
diff --git a/mobile/lib/core/configuration.dart b/mobile/lib/core/configuration.dartindex 20fb02b57a..c6fb81a9d7 100644--- a/mobile/lib/core/configuration.dart+++ b/mobile/lib/core/configuration.dart@@ -248,7 +248,7 @@ class Configuration {// decrypt the master keyfinal kekSalt = CryptoUtil.getSaltToDeriveKey();final derivedKeyResult = await CryptoUtil.deriveSensitiveKey(- utf8.encode(password) as Uint8List,+ utf8.encode(password),kekSalt,);final loginKey = await CryptoUtil.deriveLoginKey(derivedKeyResult.key);@@ -294,7 +294,7 @@ class Configuration {// decrypt the master keyfinal kekSalt = CryptoUtil.getSaltToDeriveKey();final derivedKeyResult = await CryptoUtil.deriveSensitiveKey(- utf8.encode(password) as Uint8List,+ utf8.encode(password),kekSalt,);final loginKey = await CryptoUtil.deriveLoginKey(derivedKeyResult.key);@@ -332,7 +332,7 @@ class Configuration {// Derive key-encryption-key from the entered password and existing// mem and ops limitskeyEncryptionKey ??= await CryptoUtil.deriveKey(- utf8.encode(password) as Uint8List,+ utf8.encode(password),CryptoUtil.base642bin(attributes.kekSalt),attributes.memLimit!,attributes.opsLimit!,diff --git a/mobile/lib/core/errors.dart b/mobile/lib/core/errors.dartindex 8ea8aa6ad6..b6d16802c3 100644--- a/mobile/lib/core/errors.dart+++ b/mobile/lib/core/errors.dart@@ -20,7 +20,7 @@ extension InvalidReasonExn on InvalidReason {class InvalidFileError extends ArgumentError {final InvalidReason reason;- InvalidFileError(String message, this.reason) : super(message);+ InvalidFileError(String super.message, this.reason);@overrideString toString() {@@ -63,13 +63,13 @@ class UnauthorizedError extends Error {}class RequestCancelledError extends Error {}class InvalidSyncStatusError extends AssertionError {- InvalidSyncStatusError(String message) : super(message);+ InvalidSyncStatusError(String super.message);}class UnauthorizedEditError extends AssertionError {}class InvalidStateError extends AssertionError {- InvalidStateError(String message) : super(message);+ InvalidStateError(String super.message);}class SrpSetupNotCompleteError extends Error {}diff --git a/mobile/lib/emergency/recover_others_account.dart b/mobile/lib/emergency/recover_others_account.dartindex 5b7d658d61..58d4714da7 100644--- a/mobile/lib/emergency/recover_others_account.dart+++ b/mobile/lib/emergency/recover_others_account.dart@@ -325,7 +325,7 @@ class _RecoverOthersAccountState extends State<RecoverOthersAccount> {// decrypt the master keyfinal kekSalt = CryptoUtil.getSaltToDeriveKey();final derivedKeyResult = await CryptoUtil.deriveSensitiveKey(- utf8.encode(password) as Uint8List,+ utf8.encode(password),kekSalt,);final loginKey = await CryptoUtil.deriveLoginKey(derivedKeyResult.key);diff --git a/mobile/lib/ente_theme_data.dart b/mobile/lib/ente_theme_data.dartindex 6ee3384ac4..3e5665d56e 100644--- a/mobile/lib/ente_theme_data.dart+++ b/mobile/lib/ente_theme_data.dart@@ -15,7 +15,7 @@ final lightThemeData = ThemeData(colorScheme: const ColorScheme.light(primary: Colors.black,secondary: Color.fromARGB(255, 163, 163, 163),- background: Colors.white,+ surface: Colors.white,surfaceTint: Colors.transparent,),outlinedButtonTheme: buildOutlinedButtonThemeData(@@ -70,13 +70,13 @@ final lightThemeData = ThemeData(color: Colors.black,width: 2,),- fillColor: MaterialStateProperty.resolveWith((states) {- return states.contains(MaterialState.selected)+ fillColor: WidgetStateProperty.resolveWith((states) {+ return states.contains(WidgetState.selected)? const Color.fromRGBO(0, 0, 0, 1): const Color.fromRGBO(255, 255, 255, 1);}),- checkColor: MaterialStateProperty.resolveWith((states) {- return states.contains(MaterialState.selected)+ checkColor: WidgetStateProperty.resolveWith((states) {+ return states.contains(WidgetState.selected)? const Color.fromRGBO(255, 255, 255, 1): const Color.fromRGBO(0, 0, 0, 1);}),@@ -93,7 +93,7 @@ final darkThemeData = ThemeData(hintColor: const Color.fromRGBO(158, 158, 158, 1),colorScheme: const ColorScheme.dark(primary: Colors.white,- background: Color.fromRGBO(0, 0, 0, 1),+ surface: Color.fromRGBO(0, 0, 0, 1),secondary: Color.fromARGB(255, 163, 163, 163),surfaceTint: Colors.transparent,),@@ -145,15 +145,15 @@ final darkThemeData = ThemeData(color: Colors.grey,width: 2,),- fillColor: MaterialStateProperty.resolveWith((states) {- if (states.contains(MaterialState.selected)) {+ fillColor: WidgetStateProperty.resolveWith((states) {+ if (states.contains(WidgetState.selected)) {return const Color.fromRGBO(158, 158, 158, 1);} else {return const Color.fromRGBO(0, 0, 0, 1);}}),- checkColor: MaterialStateProperty.resolveWith((states) {- if (states.contains(MaterialState.selected)) {+ checkColor: WidgetStateProperty.resolveWith((states) {+ if (states.contains(WidgetState.selected)) {return const Color.fromRGBO(0, 0, 0, 1);} else {return const Color.fromRGBO(158, 158, 158, 1);@@ -378,17 +378,17 @@ OutlinedButtonThemeData buildOutlinedButtonThemeData({fontSize: 18,),).copyWith(- backgroundColor: MaterialStateProperty.resolveWith<Color>(- (Set<MaterialState> states) {- if (states.contains(MaterialState.disabled)) {+ backgroundColor: WidgetStateProperty.resolveWith<Color>(+ (Set<WidgetState> states) {+ if (states.contains(WidgetState.disabled)) {return bgDisabled;}return bgEnabled;},),- foregroundColor: MaterialStateProperty.resolveWith<Color>(- (Set<MaterialState> states) {- if (states.contains(MaterialState.disabled)) {+ foregroundColor: WidgetStateProperty.resolveWith<Color>(+ (Set<WidgetState> states) {+ if (states.contains(WidgetState.disabled)) {return fgDisabled;}return fgEnabled;@@ -426,21 +426,21 @@ ElevatedButtonThemeData buildElevatedButtonThemeData({SwitchThemeData getSwitchThemeData(Color activeColor) {return SwitchThemeData(thumbColor:- MaterialStateProperty.resolveWith<Color?>((Set<MaterialState> states) {- if (states.contains(MaterialState.disabled)) {+ WidgetStateProperty.resolveWith<Color?>((Set<WidgetState> states) {+ if (states.contains(WidgetState.disabled)) {return null;}- if (states.contains(MaterialState.selected)) {+ if (states.contains(WidgetState.selected)) {return activeColor;}return null;}),trackColor:- MaterialStateProperty.resolveWith<Color?>((Set<MaterialState> states) {- if (states.contains(MaterialState.disabled)) {+ WidgetStateProperty.resolveWith<Color?>((Set<WidgetState> states) {+ if (states.contains(WidgetState.disabled)) {return null;}- if (states.contains(MaterialState.selected)) {+ if (states.contains(WidgetState.selected)) {return activeColor;}return null;diff --git a/mobile/lib/services/collections_service.dart b/mobile/lib/services/collections_service.dartindex f3c1f8dbae..aacec742bd 100644--- a/mobile/lib/services/collections_service.dart+++ b/mobile/lib/services/collections_service.dart@@ -730,7 +730,7 @@ class CollectionsService {await updateMagicMetadata(collection, {"subType": 0});}final encryptedName = CryptoUtil.encryptSync(- utf8.encode(newName) as Uint8List,+ utf8.encode(newName),getCollectionKey(collection.id),);await _enteDio.post(@@ -781,7 +781,7 @@ class CollectionsService {final key = getCollectionKey(collection.id);final encryptedMMd = await CryptoUtil.encryptChaCha(- utf8.encode(jsonEncode(jsonToUpdate)) as Uint8List,+ utf8.encode(jsonEncode(jsonToUpdate)),key,);// for required field, the json validator on golang doesn't treat 0 as valid@@ -840,7 +840,7 @@ class CollectionsService {final key = getCollectionKey(collection.id);final encryptedMMd = await CryptoUtil.encryptChaCha(- utf8.encode(jsonEncode(jsonToUpdate)) as Uint8List,+ utf8.encode(jsonEncode(jsonToUpdate)),key,);// for required field, the json validator on golang doesn't treat 0 as valid@@ -900,7 +900,7 @@ class CollectionsService {final key = getCollectionKey(collection.id);final encryptedMMd = await CryptoUtil.encryptChaCha(- utf8.encode(jsonEncode(jsonToUpdate)) as Uint8List,+ utf8.encode(jsonEncode(jsonToUpdate)),key,);// for required field, the json validator on golang doesn't treat 0 as valid@@ -1271,7 +1271,7 @@ class CollectionsService {final encryptedKeyData =CryptoUtil.encryptSync(collectionKey, _config.getKey()!);final encryptedName = CryptoUtil.encryptSync(- utf8.encode(albumName) as Uint8List,+ utf8.encode(albumName),collectionKey,);final collection = await createAndCacheCollection(@@ -1321,7 +1321,7 @@ class CollectionsService {final encryptedKeyData =CryptoUtil.encryptSync(collectionKey, _config.getKey()!);final encryptedPath =- CryptoUtil.encryptSync(utf8.encode(path) as Uint8List, collectionKey);+ CryptoUtil.encryptSync(utf8.encode(path), collectionKey);final collection = await createAndCacheCollection(CreateRequest(encryptedKey: CryptoUtil.bin2base64(encryptedKeyData.encryptedData!),diff --git a/mobile/lib/services/favorites_service.dart b/mobile/lib/services/favorites_service.dartindex c8d2cb15f3..af8dbda084 100644--- a/mobile/lib/services/favorites_service.dart+++ b/mobile/lib/services/favorites_service.dart@@ -1,6 +1,5 @@import 'dart:async';import 'dart:convert';-import 'dart:typed_data';import 'package:ente_crypto/ente_crypto.dart';import 'package:flutter/material.dart';@@ -254,7 +253,7 @@ class FavoritesService {final encryptedKeyResult =CryptoUtil.encryptSync(favoriteCollectionKey, _config.getKey()!);final encName = CryptoUtil.encryptSync(- utf8.encode("Favorites") as Uint8List,+ utf8.encode("Favorites"),favoriteCollectionKey,);final collection = await _collectionsService.createAndCacheCollection(diff --git a/mobile/lib/services/file_magic_service.dart b/mobile/lib/services/file_magic_service.dartindex 99ffcfb622..5d0c2721c4 100644--- a/mobile/lib/services/file_magic_service.dart+++ b/mobile/lib/services/file_magic_service.dart@@ -1,5 +1,4 @@import 'dart:convert';-import 'dart:typed_data';import 'package:dio/dio.dart';import 'package:ente_crypto/ente_crypto.dart';@@ -95,7 +94,7 @@ class FileMagicService {final fileKey = getFileKey(file);final encryptedMMd = await CryptoUtil.encryptChaCha(- utf8.encode(jsonEncode(jsonToUpdate)) as Uint8List,+ utf8.encode(jsonEncode(jsonToUpdate)),fileKey,);params['metadataList'].add(@@ -161,7 +160,7 @@ class FileMagicService {final fileKey = getFileKey(file);final encryptedMMd = await CryptoUtil.encryptChaCha(- utf8.encode(jsonEncode(jsonToUpdate)) as Uint8List,+ utf8.encode(jsonEncode(jsonToUpdate)),fileKey,);params['metadataList'].add(diff --git a/mobile/lib/services/hidden_service.dart b/mobile/lib/services/hidden_service.dartindex 069ee094f8..90d65559c7 100644--- a/mobile/lib/services/hidden_service.dart+++ b/mobile/lib/services/hidden_service.dart@@ -1,6 +1,5 @@import "dart:async";import 'dart:convert';-import 'dart:typed_data';import 'package:collection/collection.dart';import 'package:ente_crypto/ente_crypto.dart';@@ -216,7 +215,7 @@ extension HiddenService on CollectionsService {final encKey =CryptoUtil.encryptSync(uncategorizedCollectionKey, config.getKey()!);final encName = CryptoUtil.encryptSync(- utf8.encode("Uncategorized") as Uint8List,+ utf8.encode("Uncategorized"),uncategorizedCollectionKey,);final collection = await createAndCacheCollection(@@ -242,7 +241,7 @@ extension HiddenService on CollectionsService {final encryptedKeyData =CryptoUtil.encryptSync(collectionKey, config.getKey()!);final encryptedName = CryptoUtil.encryptSync(- utf8.encode(name) as Uint8List,+ utf8.encode(name),collectionKey,);final jsonToUpdate = CollectionMagicMetadata(@@ -251,7 +250,7 @@ extension HiddenService on CollectionsService {).toJson();assert(jsonToUpdate.length == 2, "metadata should have two keys");final encryptedMMd = await CryptoUtil.encryptChaCha(- utf8.encode(jsonEncode(jsonToUpdate)) as Uint8List,+ utf8.encode(jsonEncode(jsonToUpdate)),collectionKey,);final MetadataRequest metadataRequest = MetadataRequest(diff --git a/mobile/lib/services/machine_learning/face_ml/face_detection/detection.dart b/mobile/lib/services/machine_learning/face_ml/face_detection/detection.dartindex dbe2055eb6..f7a7e630e2 100644--- a/mobile/lib/services/machine_learning/face_ml/face_detection/detection.dart+++ b/mobile/lib/services/machine_learning/face_ml/face_detection/detection.dart@@ -57,7 +57,7 @@ class FaceDetectionRelative extends Detection {List<double> get rightMouth => allKeypoints[4];FaceDetectionRelative({- required double score,+ required super.score,required List<double> box,required List<List<double>> allKeypoints,}) : assert(@@ -75,8 +75,7 @@ class FaceDetectionRelative extends Detection {(sublist) =>List<double>.from(sublist.map((e) => e.clamp(0.0, 1.0))),)- .toList(),- super(score: score);+ .toList();void correctForMaintainedAspectRatio(Dimensions originalSize,@@ -252,10 +251,10 @@ class FaceDetectionAbsolute extends Detection {List<double> get rightMouth => allKeypoints[4];FaceDetectionAbsolute({- required double score,+ required super.score,required this.box,required this.allKeypoints,- }) : super(score: score);+ });@overrideString toString() {diff --git a/mobile/lib/services/remote_sync_service.dart b/mobile/lib/services/remote_sync_service.dartindex 3c60a0009c..e3bb5b463d 100644--- a/mobile/lib/services/remote_sync_service.dart+++ b/mobile/lib/services/remote_sync_service.dart@@ -2,7 +2,6 @@ import 'dart:async';import 'dart:io';import 'dart:math';-import 'package:flutter/foundation.dart';import 'package:flutter/widgets.dart';import 'package:logging/logging.dart';import 'package:photos/core/configuration.dart';diff --git a/mobile/lib/services/user_service.dart b/mobile/lib/services/user_service.dartindex 5a1ef86910..03c1123a38 100644--- a/mobile/lib/services/user_service.dart+++ b/mobile/lib/services/user_service.dart@@ -695,7 +695,7 @@ class UserService {late Uint8List keyEncryptionKey;_logger.finest('Start deriving key');keyEncryptionKey = await CryptoUtil.deriveKey(- utf8.encode(userPassword) as Uint8List,+ utf8.encode(userPassword),CryptoUtil.base642bin(srpAttributes.kekSalt),srpAttributes.memLimit,srpAttributes.opsLimit,diff --git a/mobile/lib/states/user_details_state.dart b/mobile/lib/states/user_details_state.dartindex 07e90fd939..842d8bfad6 100644--- a/mobile/lib/states/user_details_state.dart+++ b/mobile/lib/states/user_details_state.dart@@ -11,8 +11,8 @@ class UserDetailsStateWidget extends StatefulWidget {const UserDetailsStateWidget({required this.child,- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<UserDetailsStateWidget> createState() => UserDetailsStateWidgetState();@@ -65,12 +65,12 @@ class InheritedUserDetails extends InheritedWidget {final bool isCached;const InheritedUserDetails({- Key? key,- required Widget child,+ super.key,+ required super.child,required this.userDetails,required this.isCached,required this.userDetailsState,- }) : super(key: key, child: child);+ });static InheritedUserDetails? of(BuildContext context) =>context.dependOnInheritedWidgetOfExactType<InheritedUserDetails>();diff --git a/mobile/lib/ui/account/change_email_dialog.dart b/mobile/lib/ui/account/change_email_dialog.dartindex 18c70d00b0..4b888760d1 100644--- a/mobile/lib/ui/account/change_email_dialog.dart+++ b/mobile/lib/ui/account/change_email_dialog.dart@@ -5,7 +5,7 @@ import 'package:photos/utils/dialog_util.dart';import 'package:photos/utils/email_util.dart';class ChangeEmailDialog extends StatefulWidget {- const ChangeEmailDialog({Key? key}) : super(key: key);+ const ChangeEmailDialog({super.key});@overrideState<ChangeEmailDialog> createState() => _ChangeEmailDialogState();diff --git a/mobile/lib/ui/account/login_page.dart b/mobile/lib/ui/account/login_page.dartindex f5f77a4bbf..6b960aa9e3 100644--- a/mobile/lib/ui/account/login_page.dart+++ b/mobile/lib/ui/account/login_page.dart@@ -15,7 +15,7 @@ import 'package:photos/ui/common/web_page.dart';import "package:styled_text/styled_text.dart";class LoginPage extends StatefulWidget {- const LoginPage({Key? key}) : super(key: key);+ const LoginPage({super.key});@overrideState<LoginPage> createState() => _LoginPageState();diff --git a/mobile/lib/ui/account/login_pwd_verification_page.dart b/mobile/lib/ui/account/login_pwd_verification_page.dartindex c97f81c7f2..c919b19018 100644--- a/mobile/lib/ui/account/login_pwd_verification_page.dart+++ b/mobile/lib/ui/account/login_pwd_verification_page.dart@@ -21,8 +21,7 @@ import "package:photos/utils/email_util.dart";class LoginPasswordVerificationPage extends StatefulWidget {final SrpAttributes srpAttributes;- const LoginPasswordVerificationPage({Key? key, required this.srpAttributes})- : super(key: key);+ const LoginPasswordVerificationPage({super.key, required this.srpAttributes});@overrideState<LoginPasswordVerificationPage> createState() =>diff --git a/mobile/lib/ui/account/ott_verification_page.dart b/mobile/lib/ui/account/ott_verification_page.dartindex d03861055c..f411bd09d3 100644--- a/mobile/lib/ui/account/ott_verification_page.dart+++ b/mobile/lib/ui/account/ott_verification_page.dart@@ -18,8 +18,8 @@ class OTTVerificationPage extends StatefulWidget {this.isChangeEmail = false,this.isCreateAccountScreen = false,this.isResetPasswordScreen = false,- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<OTTVerificationPage> createState() => _OTTVerificationPageState();diff --git a/mobile/lib/ui/account/password_entry_page.dart b/mobile/lib/ui/account/password_entry_page.dartindex d64292d045..60de6c6899 100644--- a/mobile/lib/ui/account/password_entry_page.dart+++ b/mobile/lib/ui/account/password_entry_page.dart@@ -34,8 +34,8 @@ class PasswordEntryPage extends StatefulWidget {const PasswordEntryPage({required this.mode,- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<PasswordEntryPage> createState() => _PasswordEntryPageState();diff --git a/mobile/lib/ui/account/password_reentry_page.dart b/mobile/lib/ui/account/password_reentry_page.dartindex a93d4866a0..8597ba1d45 100644--- a/mobile/lib/ui/account/password_reentry_page.dart+++ b/mobile/lib/ui/account/password_reentry_page.dart@@ -19,7 +19,7 @@ import 'package:photos/utils/dialog_util.dart';import 'package:photos/utils/email_util.dart';class PasswordReentryPage extends StatefulWidget {- const PasswordReentryPage({Key? key}) : super(key: key);+ const PasswordReentryPage({super.key});@overrideState<PasswordReentryPage> createState() => _PasswordReentryPageState();diff --git a/mobile/lib/ui/account/recovery_key_page.dart b/mobile/lib/ui/account/recovery_key_page.dartindex 9ea3107096..69b3ff672c 100644--- a/mobile/lib/ui/account/recovery_key_page.dart+++ b/mobile/lib/ui/account/recovery_key_page.dart@@ -28,7 +28,7 @@ class RecoveryKeyPage extends StatefulWidget {const RecoveryKeyPage(this.recoveryKey,this.doneText, {- Key? key,+ super.key,this.showAppBar,this.onDone,this.isDismissible,@@ -36,7 +36,7 @@ class RecoveryKeyPage extends StatefulWidget {this.text,this.subText,this.showProgressBar = false,- }) : super(key: key);+ });@overrideState<RecoveryKeyPage> createState() => _RecoveryKeyPageState();diff --git a/mobile/lib/ui/account/recovery_page.dart b/mobile/lib/ui/account/recovery_page.dartindex 881b0792dd..90c4279039 100644--- a/mobile/lib/ui/account/recovery_page.dart+++ b/mobile/lib/ui/account/recovery_page.dart@@ -1,4 +1,3 @@-import 'dart:ui';import 'package:flutter/material.dart';import 'package:photos/core/configuration.dart';@@ -10,7 +9,7 @@ import 'package:photos/utils/dialog_util.dart';import 'package:photos/utils/toast_util.dart';class RecoveryPage extends StatefulWidget {- const RecoveryPage({Key? key}) : super(key: key);+ const RecoveryPage({super.key});@overrideState<RecoveryPage> createState() => _RecoveryPageState();diff --git a/mobile/lib/ui/account/request_pwd_verification_page.dart b/mobile/lib/ui/account/request_pwd_verification_page.dartindex da96e97997..a9b5063495 100644--- a/mobile/lib/ui/account/request_pwd_verification_page.dart+++ b/mobile/lib/ui/account/request_pwd_verification_page.dart@@ -91,7 +91,7 @@ class _RequestPasswordVerificationPageStatetry {final attributes = Configuration.instance.getKeyAttributes()!;final Uint8List keyEncryptionKey = await CryptoUtil.deriveKey(- utf8.encode(_passwordController.text) as Uint8List,+ utf8.encode(_passwordController.text),CryptoUtil.base642bin(attributes.kekSalt),attributes.memLimit!,attributes.opsLimit!,diff --git a/mobile/lib/ui/account/sessions_page.dart b/mobile/lib/ui/account/sessions_page.dartindex 5b84f56571..5de4bf1002 100644--- a/mobile/lib/ui/account/sessions_page.dart+++ b/mobile/lib/ui/account/sessions_page.dart@@ -12,7 +12,7 @@ import 'package:photos/utils/dialog_util.dart';import 'package:photos/utils/toast_util.dart';class SessionsPage extends StatefulWidget {- const SessionsPage({Key? key}) : super(key: key);+ const SessionsPage({super.key});@overrideState<SessionsPage> createState() => _SessionsPageState();diff --git a/mobile/lib/ui/account/two_factor_recovery_page.dart b/mobile/lib/ui/account/two_factor_recovery_page.dartindex 8c106025b5..6274024b9c 100644--- a/mobile/lib/ui/account/two_factor_recovery_page.dart+++ b/mobile/lib/ui/account/two_factor_recovery_page.dart@@ -16,8 +16,8 @@ class TwoFactorRecoveryPage extends StatefulWidget {this.sessionID,this.encryptedSecret,this.secretDecryptionNonce, {- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<TwoFactorRecoveryPage> createState() => _TwoFactorRecoveryPageState();diff --git a/mobile/lib/ui/account/two_factor_setup_page.dart b/mobile/lib/ui/account/two_factor_setup_page.dartindex 175ddd6966..c9db107deb 100644--- a/mobile/lib/ui/account/two_factor_setup_page.dart+++ b/mobile/lib/ui/account/two_factor_setup_page.dart@@ -22,8 +22,8 @@ class TwoFactorSetupPage extends StatefulWidget {this.secretCode,this.qrCode,this.completer, {- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<TwoFactorSetupPage> createState() => _TwoFactorSetupPageState();diff --git a/mobile/lib/ui/account/verify_recovery_page.dart b/mobile/lib/ui/account/verify_recovery_page.dartindex 80fa00bae4..573f351828 100644--- a/mobile/lib/ui/account/verify_recovery_page.dart+++ b/mobile/lib/ui/account/verify_recovery_page.dart@@ -18,7 +18,7 @@ import 'package:photos/utils/dialog_util.dart';import 'package:photos/utils/navigation_util.dart';class VerifyRecoveryPage extends StatefulWidget {- const VerifyRecoveryPage({Key? key}) : super(key: key);+ const VerifyRecoveryPage({super.key});@overrideState<VerifyRecoveryPage> createState() => _VerifyRecoveryPageState();diff --git a/mobile/lib/ui/cast/auto.dart b/mobile/lib/ui/cast/auto.dartindex 34c97b34de..bb1fc465b6 100644--- a/mobile/lib/ui/cast/auto.dart+++ b/mobile/lib/ui/cast/auto.dart@@ -14,8 +14,8 @@ class AutoCastDialog extends StatefulWidget {final void Function(String) onConnect;AutoCastDialog(this.onConnect, {- Key? key,- }) : super(key: key) {}+ super.key,+ }) {}@overrideState<AutoCastDialog> createState() => _AutoCastDialogState();diff --git a/mobile/lib/ui/cast/choose.dart b/mobile/lib/ui/cast/choose.dartindex e0997f4403..5cf3368dce 100644--- a/mobile/lib/ui/cast/choose.dart+++ b/mobile/lib/ui/cast/choose.dart@@ -7,8 +7,8 @@ import "package:photos/ui/components/models/button_type.dart";class CastChooseDialog extends StatefulWidget {const CastChooseDialog({- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<CastChooseDialog> createState() => _CastChooseDialogState();diff --git a/mobile/lib/ui/collections/album/horizontal_list.dart b/mobile/lib/ui/collections/album/horizontal_list.dartindex 0021d6836a..53ea3232e0 100644--- a/mobile/lib/ui/collections/album/horizontal_list.dart+++ b/mobile/lib/ui/collections/album/horizontal_list.dart@@ -17,8 +17,8 @@ class AlbumHorizontalList extends StatefulWidget {const AlbumHorizontalList(this.collectionsFuture, {this.hasVerifiedLock,- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<AlbumHorizontalList> createState() => _AlbumHorizontalListState();diff --git a/mobile/lib/ui/collections/button/archived_button.dart b/mobile/lib/ui/collections/button/archived_button.dartindex 16957dfe09..6676d4dcc5 100644--- a/mobile/lib/ui/collections/button/archived_button.dart+++ b/mobile/lib/ui/collections/button/archived_button.dart@@ -12,8 +12,8 @@ class ArchivedCollectionsButton extends StatelessWidget {const ArchivedCollectionsButton(this.textStyle, {- Key? key,- }) : super(key: key);+ super.key,+ });@overrideWidget build(BuildContext context) {@@ -21,7 +21,7 @@ class ArchivedCollectionsButton extends StatelessWidget {CollectionsService.instance.getHiddenCollectionIds();return OutlinedButton(style: OutlinedButton.styleFrom(- backgroundColor: Theme.of(context).colorScheme.background,+ backgroundColor: Theme.of(context).colorScheme.surface,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8),),diff --git a/mobile/lib/ui/collections/button/hidden_button.dart b/mobile/lib/ui/collections/button/hidden_button.dartindex a721aefd8a..8172d3c6a2 100644--- a/mobile/lib/ui/collections/button/hidden_button.dart+++ b/mobile/lib/ui/collections/button/hidden_button.dart@@ -16,7 +16,7 @@ class HiddenCollectionsButtonWidget extends StatelessWidget {Widget build(BuildContext context) {return OutlinedButton(style: OutlinedButton.styleFrom(- backgroundColor: Theme.of(context).colorScheme.background,+ backgroundColor: Theme.of(context).colorScheme.surface,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8),),diff --git a/mobile/lib/ui/collections/button/trash_button.dart b/mobile/lib/ui/collections/button/trash_button.dartindex 3ba73ac97c..b6e71006fc 100644--- a/mobile/lib/ui/collections/button/trash_button.dart+++ b/mobile/lib/ui/collections/button/trash_button.dart@@ -45,7 +45,7 @@ class _TrashSectionButtonState extends State<TrashSectionButton> {Widget build(BuildContext context) {return OutlinedButton(style: OutlinedButton.styleFrom(- backgroundColor: Theme.of(context).colorScheme.background,+ backgroundColor: Theme.of(context).colorScheme.surface,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8),),diff --git a/mobile/lib/ui/collections/button/uncategorized_button.dart b/mobile/lib/ui/collections/button/uncategorized_button.dartindex f474bc6a1d..29800df76e 100644--- a/mobile/lib/ui/collections/button/uncategorized_button.dart+++ b/mobile/lib/ui/collections/button/uncategorized_button.dart@@ -12,8 +12,8 @@ class UnCategorizedCollections extends StatelessWidget {const UnCategorizedCollections(this.textStyle, {- Key? key,- }) : super(key: key);+ super.key,+ });@overrideWidget build(BuildContext context) {@@ -26,7 +26,7 @@ class UnCategorizedCollections extends StatelessWidget {}return OutlinedButton(style: OutlinedButton.styleFrom(- backgroundColor: Theme.of(context).colorScheme.background,+ backgroundColor: Theme.of(context).colorScheme.surface,shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8),),diff --git a/mobile/lib/ui/collections/collection_list_page.dart b/mobile/lib/ui/collections/collection_list_page.dartindex f7308e331b..974acdfdbb 100644--- a/mobile/lib/ui/collections/collection_list_page.dart+++ b/mobile/lib/ui/collections/collection_list_page.dart@@ -27,8 +27,8 @@ class CollectionListPage extends StatefulWidget {this.appTitle,this.initialScrollOffset,this.tag = "",- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<CollectionListPage> createState() => _CollectionListPageState();diff --git a/mobile/lib/ui/collections/device/device_folder_item.dart b/mobile/lib/ui/collections/device/device_folder_item.dartindex 726d784fe4..64d0eef739 100644--- a/mobile/lib/ui/collections/device/device_folder_item.dart+++ b/mobile/lib/ui/collections/device/device_folder_item.dart@@ -13,8 +13,8 @@ class DeviceFolderItem extends StatelessWidget {this.deviceCollection, {///120 is default for the 'on device' scrollview in albums sectionthis.sideOfThumbnail = 120,- Key? key,- }) : super(key: key);+ super.key,+ });@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart b/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dartindex d5ac85e0ea..c0acc66af6 100644--- a/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart+++ b/mobile/lib/ui/collections/device/device_folders_vertical_grid_view.dart@@ -44,9 +44,7 @@ class DeviceFolderVerticalGridView extends StatelessWidget {}class _DeviceFolderVerticalGridViewBody extends StatefulWidget {- const _DeviceFolderVerticalGridViewBody({- Key? key,- }) : super(key: key);+ const _DeviceFolderVerticalGridViewBody();@overrideState<_DeviceFolderVerticalGridViewBody> createState() =>diff --git a/mobile/lib/ui/collections/flex_grid_view.dart b/mobile/lib/ui/collections/flex_grid_view.dartindex a0c3a0e139..4114ff0493 100644--- a/mobile/lib/ui/collections/flex_grid_view.dart+++ b/mobile/lib/ui/collections/flex_grid_view.dart@@ -28,8 +28,8 @@ class CollectionsFlexiGridViewWidget extends StatelessWidget {this.displayLimitCount = 10,this.shrinkWrap = false,this.tag = "",- Key? key,- }) : super(key: key);+ super.key,+ });@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/collections/new_album_icon.dart b/mobile/lib/ui/collections/new_album_icon.dartindex 61b7355a9f..4e18123b66 100644--- a/mobile/lib/ui/collections/new_album_icon.dart+++ b/mobile/lib/ui/collections/new_album_icon.dart@@ -17,8 +17,8 @@ class NewAlbumIcon extends StatelessWidget {required this.icon,required this.iconButtonType,this.color,- Key? key,- }) : super(key: key);+ super.key,+ });@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/common/bottom_shadow.dart b/mobile/lib/ui/common/bottom_shadow.dartindex f6e8bee046..2de7e944e2 100644--- a/mobile/lib/ui/common/bottom_shadow.dart+++ b/mobile/lib/ui/common/bottom_shadow.dart@@ -13,7 +13,7 @@ class BottomShadowWidget extends StatelessWidget {color: Colors.transparent,boxShadow: [BoxShadow(- color: shadowColor ?? Theme.of(context).colorScheme.background,+ color: shadowColor ?? Theme.of(context).colorScheme.surface,spreadRadius: 42,blurRadius: 42,offset: Offset(0, offsetDy), // changes position of shadowdiff --git a/mobile/lib/ui/common/dynamic_fab.dart b/mobile/lib/ui/common/dynamic_fab.dartindex d1a7cf6479..b19fcb654a 100644--- a/mobile/lib/ui/common/dynamic_fab.dart+++ b/mobile/lib/ui/common/dynamic_fab.dart@@ -10,12 +10,12 @@ class DynamicFAB extends StatelessWidget {final Function? onPressedFunction;const DynamicFAB({- Key? key,+ super.key,this.isKeypadOpen,this.buttonText,this.isFormValid,this.onPressedFunction,- }) : super(key: key);+ });@overrideWidget build(BuildContext context) {@@ -24,7 +24,7 @@ class DynamicFAB extends StatelessWidget {decoration: BoxDecoration(boxShadow: [BoxShadow(- color: Theme.of(context).colorScheme.background,+ color: Theme.of(context).colorScheme.surface,spreadRadius: 200,blurRadius: 100,offset: const Offset(0, 230),diff --git a/mobile/lib/ui/common/fast_scroll_physics.dart b/mobile/lib/ui/common/fast_scroll_physics.dartindex 97771af242..139bdca9ad 100644--- a/mobile/lib/ui/common/fast_scroll_physics.dart+++ b/mobile/lib/ui/common/fast_scroll_physics.dart@@ -3,8 +3,7 @@ import 'package:flutter/material.dart';class FastScrollPhysics extends PageScrollPhysics {final double speedFactor;- const FastScrollPhysics({this.speedFactor = 2.0, ScrollPhysics? parent})- : super(parent: parent);+ const FastScrollPhysics({this.speedFactor = 2.0, super.parent});@overrideFastScrollPhysics applyTo(ScrollPhysics? ancestor) {diff --git a/mobile/lib/ui/common/gradient_button.dart b/mobile/lib/ui/common/gradient_button.dartindex af9ca07c70..e96a460ef6 100644--- a/mobile/lib/ui/common/gradient_button.dart+++ b/mobile/lib/ui/common/gradient_button.dart@@ -15,7 +15,7 @@ class GradientButton extends StatelessWidget {final double paddingValue;const GradientButton({- Key? key,+ super.key,this.linearGradientColors = const [Color(0xFF2CD267),Color(0xFF1DB954),@@ -24,7 +24,7 @@ class GradientButton extends StatelessWidget {this.text = '',this.iconData,this.paddingValue = 0.0,- }) : super(key: key);+ });@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/common/linear_progress_dialog.dart b/mobile/lib/ui/common/linear_progress_dialog.dartindex 375eebe48c..714ad73155 100644--- a/mobile/lib/ui/common/linear_progress_dialog.dart+++ b/mobile/lib/ui/common/linear_progress_dialog.dart@@ -4,7 +4,7 @@ import 'package:photos/ente_theme_data.dart';class LinearProgressDialog extends StatefulWidget {final String message;- const LinearProgressDialog(this.message, {Key? key}) : super(key: key);+ const LinearProgressDialog(this.message, {super.key});@overrideLinearProgressDialogState createState() => LinearProgressDialogState();diff --git a/mobile/lib/ui/common/web_page.dart b/mobile/lib/ui/common/web_page.dartindex 1566f6cba0..ee14b1e3e3 100644--- a/mobile/lib/ui/common/web_page.dart+++ b/mobile/lib/ui/common/web_page.dart@@ -14,9 +14,9 @@ class WebPage extends StatefulWidget {const WebPage(this.title,this.url, {- Key? key,+ super.key,this.canOpenInBrowser = false,- }) : super(key: key);+ });@overrideState<WebPage> createState() => _WebPageState();diff --git a/mobile/lib/ui/components/captioned_text_widget.dart b/mobile/lib/ui/components/captioned_text_widget.dartindex abec18fb84..d10810eaa0 100644--- a/mobile/lib/ui/components/captioned_text_widget.dart+++ b/mobile/lib/ui/components/captioned_text_widget.dart@@ -15,8 +15,8 @@ class CaptionedTextWidget extends StatelessWidget {this.makeTextBold = false,this.textColor,this.subTitleColor,- Key? key,- }) : super(key: key);+ super.key,+ });@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/components/home_header_widget.dart b/mobile/lib/ui/components/home_header_widget.dartindex 88471e251a..b4f98c4899 100644--- a/mobile/lib/ui/components/home_header_widget.dart+++ b/mobile/lib/ui/components/home_header_widget.dart@@ -14,8 +14,7 @@ import "package:photos/utils/photo_manager_util.dart";class HomeHeaderWidget extends StatefulWidget {final Widget centerWidget;- const HomeHeaderWidget({required this.centerWidget, Key? key})- : super(key: key);+ const HomeHeaderWidget({required this.centerWidget, super.key});@overrideState<HomeHeaderWidget> createState() => _HomeHeaderWidgetState();diff --git a/mobile/lib/ui/components/menu_item_widget/menu_item_widget.dart b/mobile/lib/ui/components/menu_item_widget/menu_item_widget.dartindex d1e87e26a5..f737de5f9c 100644--- a/mobile/lib/ui/components/menu_item_widget/menu_item_widget.dart+++ b/mobile/lib/ui/components/menu_item_widget/menu_item_widget.dart@@ -88,8 +88,8 @@ class MenuItemWidget extends StatefulWidget {this.showOnlyLoadingState = false,this.surfaceExecutionStates = true,this.alwaysShowSuccessState = false,- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<MenuItemWidget> createState() => _MenuItemWidgetState();diff --git a/mobile/lib/ui/components/toggle_switch_widget.dart b/mobile/lib/ui/components/toggle_switch_widget.dartindex fb132cedf0..f04cbfc99b 100644--- a/mobile/lib/ui/components/toggle_switch_widget.dart+++ b/mobile/lib/ui/components/toggle_switch_widget.dart@@ -14,8 +14,8 @@ class ToggleSwitchWidget extends StatefulWidget {const ToggleSwitchWidget({required this.value,required this.onChanged,- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<ToggleSwitchWidget> createState() => _ToggleSwitchWidgetState();@@ -58,7 +58,7 @@ class _ToggleSwitchWidgetState extends State<ToggleSwitchWidget> {activeTrackColor: enteColorScheme.primary500,activeColor: Colors.white,inactiveThumbColor: enteColorScheme.primary500,- trackOutlineColor: MaterialStateColor.resolveWith(+ trackOutlineColor: WidgetStateColor.resolveWith((states) => enteColorScheme.primary500,),materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,diff --git a/mobile/lib/ui/extents_page_view.dart b/mobile/lib/ui/extents_page_view.dartindex dbf1b2f3fc..1ed3572c9e 100644--- a/mobile/lib/ui/extents_page_view.dart+++ b/mobile/lib/ui/extents_page_view.dart@@ -42,7 +42,7 @@ class ExtentsPageView extends StatefulWidget {/// child that could possibly be displayed in the page view, instead of just/// those children that are actually visible.ExtentsPageView({- Key? key,+ super.key,this.scrollDirection = Axis.horizontal,this.reverse = false,required this.controller,@@ -53,8 +53,7 @@ class ExtentsPageView extends StatefulWidget {this.dragStartBehavior = DragStartBehavior.start,this.openDrawer,}) : childrenDelegate = SliverChildListDelegate(children),- extents = children.length,- super(key: key);+ extents = children.length;/// Creates a scrollable list that works page by page using widgets that are/// created on demand.@@ -73,7 +72,7 @@ class ExtentsPageView extends StatefulWidget {/// you are planning to change child order at a later time, consider using/// [PageView] or [PageView.custom].ExtentsPageView.builder({- Key? key,+ super.key,this.scrollDirection = Axis.horizontal,this.reverse = false,required this.controller,@@ -86,11 +85,10 @@ class ExtentsPageView extends StatefulWidget {this.openDrawer,}) : childrenDelegate =SliverChildBuilderDelegate(itemBuilder, childCount: itemCount),- extents = 0,- super(key: key);+ extents = 0;ExtentsPageView.extents({- Key? key,+ super.key,this.extents = 1,this.scrollDirection = Axis.horizontal,this.reverse = false,@@ -107,8 +105,7 @@ class ExtentsPageView extends StatefulWidget {childCount: itemCount,addAutomaticKeepAlives: false,addRepaintBoundaries: false,- ),- super(key: key);+ );/// Creates a scrollable list that works page by page with a custom child/// model.@@ -191,7 +188,7 @@ class ExtentsPageView extends StatefulWidget {/// ```/// {@end-tool}const ExtentsPageView.custom({- Key? key,+ super.key,this.scrollDirection = Axis.horizontal,this.reverse = false,required this.controller,@@ -201,8 +198,7 @@ class ExtentsPageView extends StatefulWidget {required this.childrenDelegate,this.dragStartBehavior = DragStartBehavior.start,this.openDrawer,- }) : extents = 0,- super(key: key);+ }) : extents = 0;/// The number of pages to build off screen.///diff --git a/mobile/lib/ui/home/header_error_widget.dart b/mobile/lib/ui/home/header_error_widget.dartindex 3faf2304a7..381d1c1a95 100644--- a/mobile/lib/ui/home/header_error_widget.dart+++ b/mobile/lib/ui/home/header_error_widget.dart@@ -9,9 +9,8 @@ import "package:photos/utils/navigation_util.dart";class HeaderErrorWidget extends StatelessWidget {final Error? _error;- const HeaderErrorWidget({Key? key, required Error? error})- : _error = error,- super(key: key);+ const HeaderErrorWidget({super.key, required Error? error})+ : _error = error;@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/home/home_bottom_nav_bar.dart b/mobile/lib/ui/home/home_bottom_nav_bar.dartindex aa1e0e1d9b..67a0d98cf9 100644--- a/mobile/lib/ui/home/home_bottom_nav_bar.dart+++ b/mobile/lib/ui/home/home_bottom_nav_bar.dart@@ -12,8 +12,8 @@ class HomeBottomNavigationBar extends StatefulWidget {const HomeBottomNavigationBar(this.selectedFiles, {required this.selectedTabIndex,- Key? key,- }) : super(key: key);+ super.key,+ });final SelectedFiles selectedFiles;final int selectedTabIndex;diff --git a/mobile/lib/ui/home/landing_page_widget.dart b/mobile/lib/ui/home/landing_page_widget.dartindex 29d0c97758..bdc1e8a03e 100644--- a/mobile/lib/ui/home/landing_page_widget.dart+++ b/mobile/lib/ui/home/landing_page_widget.dart@@ -26,7 +26,7 @@ import "package:photos/utils/dialog_util.dart";import "package:photos/utils/navigation_util.dart";class LandingPageWidget extends StatefulWidget {- const LandingPageWidget({Key? key}) : super(key: key);+ const LandingPageWidget({super.key});@overrideState<LandingPageWidget> createState() => _LandingPageWidgetState();@@ -317,8 +317,8 @@ class FeatureItemWidget extends StatelessWidget {this.featureTitleFirstLine,this.featureTitleSecondLine,this.subText, {- Key? key,- }) : super(key: key);+ super.key,+ });@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/home/memories/full_screen_memory.dart b/mobile/lib/ui/home/memories/full_screen_memory.dartindex c8e69b58d8..10b02b4862 100644--- a/mobile/lib/ui/home/memories/full_screen_memory.dart+++ b/mobile/lib/ui/home/memories/full_screen_memory.dart@@ -96,9 +96,9 @@ class FullScreenMemoryData extends InheritedWidget {required this.memories,required this.indexNotifier,required this.removeCurrentMemory,- required Widget child,- Key? key,- }) : super(child: child, key: key);+ required super.child,+ super.key,+ });static FullScreenMemoryData? of(BuildContext context) {return context.dependOnInheritedWidgetOfExactType<FullScreenMemoryData>();diff --git a/mobile/lib/ui/huge_listview/draggable_scrollbar.dart b/mobile/lib/ui/huge_listview/draggable_scrollbar.dartindex f3d215c695..0c54170f54 100644--- a/mobile/lib/ui/huge_listview/draggable_scrollbar.dart+++ b/mobile/lib/ui/huge_listview/draggable_scrollbar.dart@@ -19,7 +19,7 @@ class DraggableScrollbar extends StatefulWidget {final bool isEnabled;const DraggableScrollbar({- Key? key,+ super.key,required this.child,this.backgroundColor = Colors.white,this.drawColor = Colors.grey,@@ -32,7 +32,7 @@ class DraggableScrollbar extends StatefulWidget {required this.labelTextBuilder,this.onChange,this.isEnabled = true,- }) : super(key: key);+ });@overrideDraggableScrollbarState createState() => DraggableScrollbarState();diff --git a/mobile/lib/ui/huge_listview/huge_listview.dart b/mobile/lib/ui/huge_listview/huge_listview.dartindex a2dd3119c3..c4a8f343ee 100644--- a/mobile/lib/ui/huge_listview/huge_listview.dart+++ b/mobile/lib/ui/huge_listview/huge_listview.dart@@ -65,7 +65,7 @@ class HugeListView<T> extends StatefulWidget {final bool isScrollablePositionedList;const HugeListView({- Key? key,+ super.key,this.controller,required this.startIndex,required this.totalCount,@@ -83,7 +83,7 @@ class HugeListView<T> extends StatefulWidget {this.thumbPadding,this.disableScroll = false,this.isScrollablePositionedList = true,- }) : super(key: key);+ });@overrideHugeListViewState<T> createState() => HugeListViewState<T>();diff --git a/mobile/lib/ui/huge_listview/scroll_bar_thumb.dart b/mobile/lib/ui/huge_listview/scroll_bar_thumb.dartindex a18ab86f94..11714f1f6a 100644--- a/mobile/lib/ui/huge_listview/scroll_bar_thumb.dart+++ b/mobile/lib/ui/huge_listview/scroll_bar_thumb.dart@@ -21,8 +21,8 @@ class ScrollBarThumb extends StatelessWidget {this.onDragStart,this.onDragUpdate,this.onDragEnd, {- Key? key,- }) : super(key: key);+ super.key,+ });@overrideWidget build(BuildContext context) {@@ -133,10 +133,10 @@ class SlideFadeTransition extends StatelessWidget {final Widget child;const SlideFadeTransition({- Key? key,+ super.key,required this.animation,required this.child,- }) : super(key: key);+ });@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/map/map_pull_up_gallery.dart b/mobile/lib/ui/map/map_pull_up_gallery.dartindex b547d984dd..6cb6ea04b0 100644--- a/mobile/lib/ui/map/map_pull_up_gallery.dart+++ b/mobile/lib/ui/map/map_pull_up_gallery.dart@@ -200,10 +200,10 @@ class _MapPullUpGalleryState extends State<MapPullUpGallery> {class DraggableHeader extends StatelessWidget {const DraggableHeader({- Key? key,+ super.key,required this.scrollController,required this.bottomSheetDraggableAreaHeight,- }) : super(key: key);+ });static const indicatorHeight = 4.0;final ScrollController scrollController;final double bottomSheetDraggableAreaHeight;diff --git a/mobile/lib/ui/map/tile/attribution/map_attribution.dart b/mobile/lib/ui/map/tile/attribution/map_attribution.dartindex 7ae8c6bc86..8740806914 100644--- a/mobile/lib/ui/map/tile/attribution/map_attribution.dart+++ b/mobile/lib/ui/map/tile/attribution/map_attribution.dart@@ -221,7 +221,7 @@ class MapAttributionWidgetState extends State<MapAttributionWidget> {child: Container(decoration: BoxDecoration(color: widget.popupBackgroundColor ??- Theme.of(context).colorScheme.background,+ Theme.of(context).colorScheme.surface,border: Border.all(width: 0, style: BorderStyle.none),borderRadius: widget.popupBorderRadius ??BorderRadius.only(diff --git a/mobile/lib/ui/payment/billing_questions_widget.dart b/mobile/lib/ui/payment/billing_questions_widget.dartindex 3cadc8acb8..8c4dd63c98 100644--- a/mobile/lib/ui/payment/billing_questions_widget.dart+++ b/mobile/lib/ui/payment/billing_questions_widget.dart@@ -8,8 +8,8 @@ import 'package:photos/ui/common/loading_widget.dart';class BillingQuestionsWidget extends StatelessWidget {const BillingQuestionsWidget({- Key? key,- }) : super(key: key);+ super.key,+ });@overrideWidget build(BuildContext context) {@@ -62,9 +62,9 @@ class BillingQuestionsWidget extends StatelessWidget {class FaqWidget extends StatelessWidget {const FaqWidget({- Key? key,+ super.key,required this.faq,- }) : super(key: key);+ });final FaqItem? faq;diff --git a/mobile/lib/ui/payment/child_subscription_widget.dart b/mobile/lib/ui/payment/child_subscription_widget.dartindex 2b61d3cf95..2fb6353ec1 100644--- a/mobile/lib/ui/payment/child_subscription_widget.dart+++ b/mobile/lib/ui/payment/child_subscription_widget.dart@@ -10,9 +10,9 @@ import "package:styled_text/styled_text.dart";class ChildSubscriptionWidget extends StatelessWidget {const ChildSubscriptionWidget({- Key? key,+ super.key,required this.userDetails,- }) : super(key: key);+ });final UserDetails userDetails;diff --git a/mobile/lib/ui/payment/payment_web_page.dart b/mobile/lib/ui/payment/payment_web_page.dartindex 443a219366..aa1b50a499 100644--- a/mobile/lib/ui/payment/payment_web_page.dart+++ b/mobile/lib/ui/payment/payment_web_page.dart@@ -20,8 +20,7 @@ class PaymentWebPage extends StatefulWidget {final String? planId;final String? actionType;- const PaymentWebPage({Key? key, this.planId, this.actionType})- : super(key: key);+ const PaymentWebPage({super.key, this.planId, this.actionType});@overrideState<StatefulWidget> createState() => _PaymentWebPageState();diff --git a/mobile/lib/ui/payment/subscription_common_widgets.dart b/mobile/lib/ui/payment/subscription_common_widgets.dartindex 7d6714fe28..84fe693b7f 100644--- a/mobile/lib/ui/payment/subscription_common_widgets.dart+++ b/mobile/lib/ui/payment/subscription_common_widgets.dart@@ -150,7 +150,7 @@ class AddOnBonusValidity extends StatelessWidget {class SubFaqWidget extends StatelessWidget {final bool isOnboarding;- const SubFaqWidget({Key? key, this.isOnboarding = false}) : super(key: key);+ const SubFaqWidget({super.key, this.isOnboarding = false});@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/settings/about_section_widget.dart b/mobile/lib/ui/settings/about_section_widget.dartindex 24f98e5a7e..375fdac64a 100644--- a/mobile/lib/ui/settings/about_section_widget.dart+++ b/mobile/lib/ui/settings/about_section_widget.dart@@ -13,7 +13,7 @@ import 'package:photos/utils/toast_util.dart';import 'package:url_launcher/url_launcher.dart';class AboutSectionWidget extends StatelessWidget {- const AboutSectionWidget({Key? key}) : super(key: key);+ const AboutSectionWidget({super.key});@overrideWidget build(BuildContext context) {@@ -104,8 +104,8 @@ class AboutMenuItemWidget extends StatelessWidget {required this.title,required this.url,this.webPageTitle,- Key? key,- }) : super(key: key);+ super.key,+ });@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/settings/account_section_widget.dart b/mobile/lib/ui/settings/account_section_widget.dartindex 1182208aea..5783598f5b 100644--- a/mobile/lib/ui/settings/account_section_widget.dart+++ b/mobile/lib/ui/settings/account_section_widget.dart@@ -22,7 +22,7 @@ import "package:photos/utils/navigation_util.dart";import "package:url_launcher/url_launcher_string.dart";class AccountSectionWidget extends StatelessWidget {- const AccountSectionWidget({Key? key}) : super(key: key);+ const AccountSectionWidget({super.key});@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/settings/app_update_dialog.dart b/mobile/lib/ui/settings/app_update_dialog.dartindex c4c6608db8..adb305b820 100644--- a/mobile/lib/ui/settings/app_update_dialog.dart+++ b/mobile/lib/ui/settings/app_update_dialog.dart@@ -10,7 +10,7 @@ import 'package:url_launcher/url_launcher_string.dart';class AppUpdateDialog extends StatefulWidget {final LatestVersionInfo? latestVersionInfo;- const AppUpdateDialog(this.latestVersionInfo, {Key? key}) : super(key: key);+ const AppUpdateDialog(this.latestVersionInfo, {super.key});@overrideState<AppUpdateDialog> createState() => _AppUpdateDialogState();diff --git a/mobile/lib/ui/settings/app_version_widget.dart b/mobile/lib/ui/settings/app_version_widget.dartindex 01dfb7d1f9..c0e5b72d55 100644--- a/mobile/lib/ui/settings/app_version_widget.dart+++ b/mobile/lib/ui/settings/app_version_widget.dart@@ -4,8 +4,8 @@ import "package:photos/generated/l10n.dart";class AppVersionWidget extends StatefulWidget {const AppVersionWidget({- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<AppVersionWidget> createState() => _AppVersionWidgetState();diff --git a/mobile/lib/ui/settings/backup/backup_section_widget.dart b/mobile/lib/ui/settings/backup/backup_section_widget.dartindex 6fbdca287e..674ac057c6 100644--- a/mobile/lib/ui/settings/backup/backup_section_widget.dart+++ b/mobile/lib/ui/settings/backup/backup_section_widget.dart@@ -12,7 +12,7 @@ import 'package:photos/ui/settings/common_settings.dart';import 'package:photos/utils/navigation_util.dart';class BackupSectionWidget extends StatefulWidget {- const BackupSectionWidget({Key? key}) : super(key: key);+ const BackupSectionWidget({super.key});@overrideBackupSectionWidgetState createState() => BackupSectionWidgetState();diff --git a/mobile/lib/ui/settings/debug/debug_section_widget.dart b/mobile/lib/ui/settings/debug/debug_section_widget.dartindex 5265e96f6b..d8bd13b002 100644--- a/mobile/lib/ui/settings/debug/debug_section_widget.dart+++ b/mobile/lib/ui/settings/debug/debug_section_widget.dart@@ -13,7 +13,7 @@ import 'package:photos/ui/settings/common_settings.dart';import 'package:photos/utils/toast_util.dart';class DebugSectionWidget extends StatelessWidget {- const DebugSectionWidget({Key? key}) : super(key: key);+ const DebugSectionWidget({super.key});@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/settings/general_section_widget.dart b/mobile/lib/ui/settings/general_section_widget.dartindex 3532292551..d42d280244 100644--- a/mobile/lib/ui/settings/general_section_widget.dart+++ b/mobile/lib/ui/settings/general_section_widget.dart@@ -18,7 +18,7 @@ import "package:photos/ui/settings/notification_settings_screen.dart";import 'package:photos/utils/navigation_util.dart';class GeneralSectionWidget extends StatelessWidget {- const GeneralSectionWidget({Key? key}) : super(key: key);+ const GeneralSectionWidget({super.key});@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/settings/inherited_settings_state.dart b/mobile/lib/ui/settings/inherited_settings_state.dartindex dee7d317d4..ce749a0adb 100644--- a/mobile/lib/ui/settings/inherited_settings_state.dart+++ b/mobile/lib/ui/settings/inherited_settings_state.dart@@ -3,9 +3,9 @@ import 'package:flutter/widgets.dart';/// StatefulWidget that wraps InheritedSettingsStateclass SettingsStateContainer extends StatefulWidget {const SettingsStateContainer({- Key? key,+ super.key,required this.child,- }) : super(key: key);+ });final Widget child;@override@@ -54,12 +54,12 @@ class InheritedSettingsState extends InheritedWidget {final void Function() decrement;const InheritedSettingsState({- Key? key,+ super.key,required this.expandedSectionCount,required this.increment,required this.decrement,- required Widget child,- }) : super(key: key, child: child);+ required super.child,+ });bool get isAnySectionExpanded => expandedSectionCount > 0;diff --git a/mobile/lib/ui/settings/language_picker.dart b/mobile/lib/ui/settings/language_picker.dartindex 98efa54f47..9cd313e549 100644--- a/mobile/lib/ui/settings/language_picker.dart+++ b/mobile/lib/ui/settings/language_picker.dart@@ -18,8 +18,8 @@ class LanguageSelectorPage extends StatelessWidget {this.supportedLocales,this.onLocaleChanged,this.currentLocale, {- Key? key,- }) : super(key: key);+ super.key,+ });@overrideWidget build(BuildContext context) {@@ -78,8 +78,8 @@ class ItemsWidget extends StatefulWidget {this.supportedLocales,this.onLocaleChanged,this.currentLocale, {- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<ItemsWidget> createState() => _ItemsWidgetState();diff --git a/mobile/lib/ui/settings/security_section_widget.dart b/mobile/lib/ui/settings/security_section_widget.dartindex 8b73a1cc00..c136018acb 100644--- a/mobile/lib/ui/settings/security_section_widget.dart+++ b/mobile/lib/ui/settings/security_section_widget.dart@@ -30,7 +30,7 @@ import "package:photos/utils/navigation_util.dart";import "package:photos/utils/toast_util.dart";class SecuritySectionWidget extends StatefulWidget {- const SecuritySectionWidget({Key? key}) : super(key: key);+ const SecuritySectionWidget({super.key});@overrideState<SecuritySectionWidget> createState() => _SecuritySectionWidgetState();diff --git a/mobile/lib/ui/settings/settings_title_bar_widget.dart b/mobile/lib/ui/settings/settings_title_bar_widget.dartindex b15db62763..5fa625b49b 100644--- a/mobile/lib/ui/settings/settings_title_bar_widget.dart+++ b/mobile/lib/ui/settings/settings_title_bar_widget.dart@@ -7,7 +7,7 @@ import 'package:photos/theme/ente_theme.dart';import 'package:photos/ui/common/loading_widget.dart';class SettingsTitleBarWidget extends StatelessWidget {- const SettingsTitleBarWidget({Key? key}) : super(key: key);+ const SettingsTitleBarWidget({super.key});@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/settings/social_section_widget.dart b/mobile/lib/ui/settings/social_section_widget.dartindex b9329eec7f..c97b16b30a 100644--- a/mobile/lib/ui/settings/social_section_widget.dart+++ b/mobile/lib/ui/settings/social_section_widget.dart@@ -11,7 +11,7 @@ import 'package:photos/ui/settings/common_settings.dart';import 'package:url_launcher/url_launcher_string.dart';class SocialSectionWidget extends StatelessWidget {- const SocialSectionWidget({Key? key}) : super(key: key);+ const SocialSectionWidget({super.key});@overrideWidget build(BuildContext context) {@@ -85,9 +85,9 @@ class SocialsMenuItemWidget extends StatelessWidget {const SocialsMenuItemWidget(this.text,this.url, {- Key? key,+ super.key,this.launchInExternalApp = true,- }) : super(key: key);+ });@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/settings/storage_card_widget.dart b/mobile/lib/ui/settings/storage_card_widget.dartindex 3554c6fa47..1b40a1f3e1 100644--- a/mobile/lib/ui/settings/storage_card_widget.dart+++ b/mobile/lib/ui/settings/storage_card_widget.dart@@ -14,7 +14,7 @@ import 'package:photos/ui/settings/storage_progress_widget.dart';import 'package:photos/utils/data_util.dart';class StorageCardWidget extends StatefulWidget {- const StorageCardWidget({Key? key}) : super(key: key);+ const StorageCardWidget({super.key});@overrideState<StorageCardWidget> createState() => _StorageCardWidgetState();diff --git a/mobile/lib/ui/settings/support_section_widget.dart b/mobile/lib/ui/settings/support_section_widget.dartindex fa730f703a..49ef874c71 100644--- a/mobile/lib/ui/settings/support_section_widget.dart+++ b/mobile/lib/ui/settings/support_section_widget.dart@@ -13,7 +13,7 @@ import 'package:photos/utils/email_util.dart';import "package:url_launcher/url_launcher_string.dart";class SupportSectionWidget extends StatelessWidget {- const SupportSectionWidget({Key? key}) : super(key: key);+ const SupportSectionWidget({super.key});@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/settings/theme_switch_widget.dart b/mobile/lib/ui/settings/theme_switch_widget.dartindex 545ef92b75..1fcd6802ee 100644--- a/mobile/lib/ui/settings/theme_switch_widget.dart+++ b/mobile/lib/ui/settings/theme_switch_widget.dart@@ -9,7 +9,7 @@ import 'package:photos/ui/components/menu_item_widget/menu_item_widget.dart';import 'package:photos/ui/settings/common_settings.dart';class ThemeSwitchWidget extends StatefulWidget {- const ThemeSwitchWidget({Key? key}) : super(key: key);+ const ThemeSwitchWidget({super.key});@overrideState<ThemeSwitchWidget> createState() => _ThemeSwitchWidgetState();diff --git a/mobile/lib/ui/settings_page.dart b/mobile/lib/ui/settings_page.dartindex 274e2c785f..32401fd30f 100644--- a/mobile/lib/ui/settings_page.dart+++ b/mobile/lib/ui/settings_page.dart@@ -33,7 +33,7 @@ import "package:photos/utils/navigation_util.dart";class SettingsPage extends StatelessWidget {final ValueNotifier<String?> emailNotifier;- const SettingsPage({Key? key, required this.emailNotifier}) : super(key: key);+ const SettingsPage({super.key, required this.emailNotifier});@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/sharing/manage_links_widget.dart b/mobile/lib/ui/sharing/manage_links_widget.dartindex b77aa00211..a0d336c81c 100644--- a/mobile/lib/ui/sharing/manage_links_widget.dart+++ b/mobile/lib/ui/sharing/manage_links_widget.dart@@ -328,7 +328,7 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {Future<Map<String, dynamic>> _getEncryptedPassword(String pass) async {final kekSalt = CryptoUtil.getSaltToDeriveKey();final result = await CryptoUtil.deriveInteractiveKey(- utf8.encode(pass) as Uint8List,+ utf8.encode(pass),kekSalt,);return {diff --git a/mobile/lib/ui/sharing/verify_identity_dialog.dart b/mobile/lib/ui/sharing/verify_identity_dialog.dartindex eaa725635e..424525f2fc 100644--- a/mobile/lib/ui/sharing/verify_identity_dialog.dart+++ b/mobile/lib/ui/sharing/verify_identity_dialog.dart@@ -24,10 +24,10 @@ class VerifyIdentifyDialog extends StatefulWidget {final bool self;VerifyIdentifyDialog({- Key? key,+ super.key,required this.self,this.email = '',- }) : super(key: key) {+ }) {if (!self && email.isEmpty) {throw ArgumentError("email cannot be empty when self is false");}diff --git a/mobile/lib/ui/tabs/nav_bar.dart b/mobile/lib/ui/tabs/nav_bar.dartindex be2d313f8e..e5f0d22c2d 100644--- a/mobile/lib/ui/tabs/nav_bar.dart+++ b/mobile/lib/ui/tabs/nav_bar.dart@@ -6,7 +6,7 @@ import "package:photos/theme/effects.dart";class GNav extends StatefulWidget {const GNav({- Key? key,+ super.key,this.tabs,this.selectedIndex = 0,this.onTabChange,@@ -31,7 +31,7 @@ class GNav extends StatefulWidget {this.haptic,this.tabBackgroundGradient,this.mainAxisAlignment = MainAxisAlignment.spaceBetween,- }) : super(key: key);+ });final List<GButton>? tabs;final int selectedIndex;@@ -159,7 +159,7 @@ class GButton extends StatefulWidget {final String? semanticLabel;const GButton({- Key? key,+ super.key,this.active,this.haptic,this.backgroundColor,@@ -186,7 +186,7 @@ class GButton extends StatefulWidget {this.activeBorder,this.shadow,this.semanticLabel,- }) : super(key: key);+ });@overrideState<GButton> createState() => _GButtonState();@@ -229,7 +229,7 @@ class _GButtonState extends State<GButton> {class Button extends StatefulWidget {const Button({- Key? key,+ super.key,this.icon,this.iconSize,this.leading,@@ -252,7 +252,7 @@ class Button extends StatefulWidget {this.border,this.activeBorder,this.shadow,- }) : super(key: key);+ });final IconData? icon;final double? iconSize;diff --git a/mobile/lib/ui/tabs/section_title.dart b/mobile/lib/ui/tabs/section_title.dartindex 5229082014..1f1be877f2 100644--- a/mobile/lib/ui/tabs/section_title.dart+++ b/mobile/lib/ui/tabs/section_title.dart@@ -14,9 +14,9 @@ class SectionTitle extends StatelessWidget {this.title,this.titleWithBrand,this.mutedTitle = false,- Key? key,+ super.key,this.padding,- }) : super(key: key);+ });@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/tabs/user_collections_tab.dart b/mobile/lib/ui/tabs/user_collections_tab.dartindex 5e8431a5a9..6f4621484d 100644--- a/mobile/lib/ui/tabs/user_collections_tab.dart+++ b/mobile/lib/ui/tabs/user_collections_tab.dart@@ -32,7 +32,7 @@ import 'package:photos/utils/local_settings.dart';import "package:photos/utils/navigation_util.dart";class UserCollectionsTab extends StatefulWidget {- const UserCollectionsTab({Key? key}) : super(key: key);+ const UserCollectionsTab({super.key});@overrideState<UserCollectionsTab> createState() => _UserCollectionsTabState();diff --git a/mobile/lib/ui/tools/app_lock.dart b/mobile/lib/ui/tools/app_lock.dartindex 19a718b7a0..784b2eaa14 100644--- a/mobile/lib/ui/tools/app_lock.dart+++ b/mobile/lib/ui/tools/app_lock.dart@@ -38,7 +38,7 @@ class AppLock extends StatefulWidget {final Locale? locale;const AppLock({- Key? key,+ super.key,required this.builder,required this.lockScreen,required this.savedThemeMode,@@ -46,7 +46,7 @@ class AppLock extends StatefulWidget {this.locale,this.darkTheme,this.lightTheme,- }) : super(key: key);+ });static _AppLockState? of(BuildContext context) =>context.findAncestorStateOfType<_AppLockState>();diff --git a/mobile/lib/ui/tools/debug/app_storage_viewer.dart b/mobile/lib/ui/tools/debug/app_storage_viewer.dartindex 5ac484684d..f5e58f1a8a 100644--- a/mobile/lib/ui/tools/debug/app_storage_viewer.dart+++ b/mobile/lib/ui/tools/debug/app_storage_viewer.dart@@ -19,7 +19,7 @@ import 'package:photos/ui/tools/debug/path_storage_viewer.dart';import 'package:photos/utils/directory_content.dart';class AppStorageViewer extends StatefulWidget {- const AppStorageViewer({Key? key}) : super(key: key);+ const AppStorageViewer({super.key});@overrideState<AppStorageViewer> createState() => _AppStorageViewerState();diff --git a/mobile/lib/ui/tools/debug/log_file_viewer.dart b/mobile/lib/ui/tools/debug/log_file_viewer.dartindex e41561c0e8..2b538ef160 100644--- a/mobile/lib/ui/tools/debug/log_file_viewer.dart+++ b/mobile/lib/ui/tools/debug/log_file_viewer.dart@@ -1,5 +1,4 @@import 'dart:io';-import 'dart:ui';import 'package:flutter/material.dart';import "package:photos/generated/l10n.dart";@@ -7,7 +6,7 @@ import 'package:photos/ui/common/loading_widget.dart';class LogFileViewer extends StatefulWidget {final File file;- const LogFileViewer(this.file, {Key? key}) : super(key: key);+ const LogFileViewer(this.file, {super.key});@overrideState<LogFileViewer> createState() => _LogFileViewerState();diff --git a/mobile/lib/ui/tools/debug/path_storage_viewer.dart b/mobile/lib/ui/tools/debug/path_storage_viewer.dartindex 6d169ef48f..63b4e0bde2 100644--- a/mobile/lib/ui/tools/debug/path_storage_viewer.dart+++ b/mobile/lib/ui/tools/debug/path_storage_viewer.dart@@ -33,8 +33,8 @@ class PathStorageViewer extends StatefulWidget {this.removeTopRadius = false,this.removeBottomRadius = false,this.enableDoubleTapClear = false,- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<PathStorageViewer> createState() => _PathStorageViewerState();diff --git a/mobile/lib/ui/tools/editor/filtered_image.dart b/mobile/lib/ui/tools/editor/filtered_image.dartindex 92fcc976e4..31c74590ac 100644--- a/mobile/lib/ui/tools/editor/filtered_image.dart+++ b/mobile/lib/ui/tools/editor/filtered_image.dart@@ -9,8 +9,8 @@ class FilteredImage extends StatelessWidget {this.brightness,this.saturation,this.hue,- Key? key,- }) : super(key: key);+ super.key,+ });final double? brightness, saturation, hue;final Widget child;diff --git a/mobile/lib/ui/tools/editor/image_editor_page.dart b/mobile/lib/ui/tools/editor/image_editor_page.dartindex 2ef93601f2..522831664b 100644--- a/mobile/lib/ui/tools/editor/image_editor_page.dart+++ b/mobile/lib/ui/tools/editor/image_editor_page.dart@@ -6,7 +6,6 @@ import 'dart:ui' as ui show Image;import 'package:extended_image/extended_image.dart';import 'package:flutter/material.dart';-import 'package:flutter/painting.dart' show decodeImageFromList;import "package:flutter_image_compress/flutter_image_compress.dart";import 'package:image_editor/image_editor.dart';import 'package:logging/logging.dart';diff --git a/mobile/lib/ui/tools/free_space_page.dart b/mobile/lib/ui/tools/free_space_page.dartindex 44c8e72449..3b60096d1f 100644--- a/mobile/lib/ui/tools/free_space_page.dart+++ b/mobile/lib/ui/tools/free_space_page.dart@@ -13,9 +13,9 @@ class FreeSpacePage extends StatefulWidget {const FreeSpacePage(this.status, {- Key? key,+ super.key,this.clearSpaceForFolder = false,- }) : super(key: key);+ });@overrideState<FreeSpacePage> createState() => _FreeSpacePageState();diff --git a/mobile/lib/ui/tools/lock_screen.dart b/mobile/lib/ui/tools/lock_screen.dartindex 516ac92319..6a77e0c97d 100644--- a/mobile/lib/ui/tools/lock_screen.dart+++ b/mobile/lib/ui/tools/lock_screen.dart@@ -19,7 +19,7 @@ import "package:photos/utils/dialog_util.dart";import "package:photos/utils/lock_screen_settings.dart";class LockScreen extends StatefulWidget {- const LockScreen({Key? key}) : super(key: key);+ const LockScreen({super.key});@overrideState<LockScreen> createState() => _LockScreenState();diff --git a/mobile/lib/ui/viewer/actions/delete_empty_albums.dart b/mobile/lib/ui/viewer/actions/delete_empty_albums.dartindex 95ee49da49..3f3186465f 100644--- a/mobile/lib/ui/viewer/actions/delete_empty_albums.dart+++ b/mobile/lib/ui/viewer/actions/delete_empty_albums.dart@@ -13,7 +13,7 @@ import 'package:photos/ui/components/models/button_type.dart';class DeleteEmptyAlbums extends StatefulWidget {final List<Collection> collections;- const DeleteEmptyAlbums(this.collections, {Key? key}) : super(key: key);+ const DeleteEmptyAlbums(this.collections, {super.key});@overrideState<DeleteEmptyAlbums> createState() => _DeleteEmptyAlbumsState();diff --git a/mobile/lib/ui/viewer/file/exif_info_dialog.dart b/mobile/lib/ui/viewer/file/exif_info_dialog.dartindex e3344aa48b..2b286b5601 100644--- a/mobile/lib/ui/viewer/file/exif_info_dialog.dart+++ b/mobile/lib/ui/viewer/file/exif_info_dialog.dart@@ -1,4 +1,3 @@-import 'dart:ui';import 'package:flutter/material.dart';import "package:photos/generated/l10n.dart";@@ -9,7 +8,7 @@ import 'package:photos/utils/exif_util.dart';class ExifInfoDialog extends StatelessWidget {final EnteFile file;- const ExifInfoDialog(this.file, {Key? key}) : super(key: key);+ const ExifInfoDialog(this.file, {super.key});@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/viewer/file/video_exif_dialog.dart b/mobile/lib/ui/viewer/file/video_exif_dialog.dartindex ba650d469f..51dc0f1f64 100644--- a/mobile/lib/ui/viewer/file/video_exif_dialog.dart+++ b/mobile/lib/ui/viewer/file/video_exif_dialog.dart@@ -7,7 +7,7 @@ import "package:photos/theme/ente_theme.dart";class VideoExifDialog extends StatelessWidget {final FFProbeProps props;- const VideoExifDialog({Key? key, required this.props}) : super(key: key);+ const VideoExifDialog({super.key, required this.props});@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/viewer/file/video_widget_media_kit_new.dart b/mobile/lib/ui/viewer/file/video_widget_media_kit_new.dartindex 7d1ba08cfa..54ff94ce6a 100644--- a/mobile/lib/ui/viewer/file/video_widget_media_kit_new.dart+++ b/mobile/lib/ui/viewer/file/video_widget_media_kit_new.dart@@ -242,7 +242,6 @@ class _VideoWidget extends StatefulWidget {this.controller,this.playbackCallback, {required this.isFromMemories,- this.onStreamChange,});@overridediff --git a/mobile/lib/ui/viewer/gallery/component/grid/lazy_grid_view.dart b/mobile/lib/ui/viewer/gallery/component/grid/lazy_grid_view.dartindex 248b4c5664..54323fbfd4 100644--- a/mobile/lib/ui/viewer/gallery/component/grid/lazy_grid_view.dart+++ b/mobile/lib/ui/viewer/gallery/component/grid/lazy_grid_view.dart@@ -30,8 +30,8 @@ class LazyGridView extends StatefulWidget {this.shouldRecycle,this.photoGridSize, {this.limitSelectionToOne = false,- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<LazyGridView> createState() => _LazyGridViewState();diff --git a/mobile/lib/ui/viewer/gallery/component/grid/place_holder_grid_view_widget.dart b/mobile/lib/ui/viewer/gallery/component/grid/place_holder_grid_view_widget.dartindex 9cb2984a28..c29d817ab3 100644--- a/mobile/lib/ui/viewer/gallery/component/grid/place_holder_grid_view_widget.dart+++ b/mobile/lib/ui/viewer/gallery/component/grid/place_holder_grid_view_widget.dart@@ -8,8 +8,8 @@ class PlaceHolderGridViewWidget extends StatelessWidget {const PlaceHolderGridViewWidget(this.count,this.columns, {- Key? key,- }) : super(key: key);+ super.key,+ });final int count, columns;diff --git a/mobile/lib/ui/viewer/gallery/component/group/lazy_group_gallery.dart b/mobile/lib/ui/viewer/gallery/component/group/lazy_group_gallery.dartindex 299d84d7d3..19ac9a0b7c 100644--- a/mobile/lib/ui/viewer/gallery/component/group/lazy_group_gallery.dart+++ b/mobile/lib/ui/viewer/gallery/component/group/lazy_group_gallery.dart@@ -43,8 +43,8 @@ class LazyGroupGallery extends StatefulWidget {this.logTag = "",this.photoGridSize = photoGridSizeDefault,this.limitSelectionToOne = false,- Key? key,- }) : super(key: key);+ super.key,+ });@overrideState<LazyGroupGallery> createState() => _LazyGroupGalleryState();diff --git a/mobile/lib/ui/viewer/gallery/empty_hidden_widget.dart b/mobile/lib/ui/viewer/gallery/empty_hidden_widget.dartindex 0791ffe734..250d69af0c 100644--- a/mobile/lib/ui/viewer/gallery/empty_hidden_widget.dart+++ b/mobile/lib/ui/viewer/gallery/empty_hidden_widget.dart@@ -5,7 +5,7 @@ import 'package:photos/theme/ente_theme.dart';import 'package:photos/theme/text_style.dart';class EmptyHiddenWidget extends StatelessWidget {- const EmptyHiddenWidget({Key? key}) : super(key: key);+ const EmptyHiddenWidget({super.key});@overrideWidget build(BuildContext context) {@@ -88,8 +88,8 @@ class EmptyHiddenTextWidget extends StatelessWidget {const EmptyHiddenTextWidget(this.text, {- Key? key,- }) : super(key: key);+ super.key,+ });@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/viewer/gallery/empty_state.dart b/mobile/lib/ui/viewer/gallery/empty_state.dartindex 80f95000a4..dde2651471 100644--- a/mobile/lib/ui/viewer/gallery/empty_state.dart+++ b/mobile/lib/ui/viewer/gallery/empty_state.dart@@ -5,7 +5,7 @@ import "package:photos/generated/l10n.dart";class EmptyState extends StatelessWidget {final String? text;- const EmptyState({Key? key, this.text}) : super(key: key);+ const EmptyState({super.key, this.text});@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/viewer/gallery/state/gallery_context_state.dart b/mobile/lib/ui/viewer/gallery/state/gallery_context_state.dartindex 4b202c39bd..a3e7ae6048 100644--- a/mobile/lib/ui/viewer/gallery/state/gallery_context_state.dart+++ b/mobile/lib/ui/viewer/gallery/state/gallery_context_state.dart@@ -11,9 +11,9 @@ class GalleryContextState extends InheritedWidget {this.inSelectionMode = false,this.type = GroupType.day,required this.sortOrderAsc,- required Widget child,- Key? key,- }) : super(key: key, child: child);+ required super.child,+ super.key,+ });static GalleryContextState? of(BuildContext context) {return context.dependOnInheritedWidgetOfExactType<GalleryContextState>();diff --git a/mobile/lib/ui/viewer/gallery/trash_page.dart b/mobile/lib/ui/viewer/gallery/trash_page.dartindex 4c5570f2ef..499bcc73c5 100644--- a/mobile/lib/ui/viewer/gallery/trash_page.dart+++ b/mobile/lib/ui/viewer/gallery/trash_page.dart@@ -126,7 +126,7 @@ class TrashPage extends StatelessWidget {}class BottomButtonsWidget extends StatelessWidget {- const BottomButtonsWidget({Key? key}) : super(key: key);+ const BottomButtonsWidget({super.key});@overrideWidget build(BuildContext context) {diff --git a/mobile/lib/ui/viewer/search/result/no_result_widget.dart b/mobile/lib/ui/viewer/search/result/no_result_widget.dartindex dc64a8e322..fe08b86ba5 100644--- a/mobile/lib/ui/viewer/search/result/no_result_widget.dart+++ b/mobile/lib/ui/viewer/search/result/no_result_widget.dart@@ -7,7 +7,7 @@ import "package:photos/states/all_sections_examples_state.dart";import "package:photos/theme/ente_theme.dart";class NoResultWidget extends StatefulWidget {- const NoResultWidget({Key? key}) : super(key: key);+ const NoResultWidget({super.key});@overrideState<NoResultWidget> createState() => _NoResultWidgetState();diff --git a/mobile/lib/ui/viewer/search/search_suffix_icon_widget.dart b/mobile/lib/ui/viewer/search/search_suffix_icon_widget.dartindex 744684422d..9f94bb863b 100644--- a/mobile/lib/ui/viewer/search/search_suffix_icon_widget.dart+++ b/mobile/lib/ui/viewer/search/search_suffix_icon_widget.dart@@ -5,7 +5,7 @@ import "package:photos/theme/ente_theme.dart";class SearchSuffixIcon extends StatefulWidget {final bool shouldShowSpinner;- const SearchSuffixIcon(this.shouldShowSpinner, {Key? key}) : super(key: key);+ const SearchSuffixIcon(this.shouldShowSpinner, {super.key});@overrideState<SearchSuffixIcon> createState() => _SearchSuffixIconState();diff --git a/mobile/lib/utils/email_util.dart b/mobile/lib/utils/email_util.dartindex d85db2bb20..9831e3b480 100644--- a/mobile/lib/utils/email_util.dart+++ b/mobile/lib/utils/email_util.dart@@ -1,7 +1,6 @@import 'dart:io';import 'package:archive/archive_io.dart';-import "package:cross_file/cross_file.dart";import 'package:email_validator/email_validator.dart';import "package:file_saver/file_saver.dart";import 'package:flutter/cupertino.dart';diff --git a/mobile/lib/utils/file_uploader_util.dart b/mobile/lib/utils/file_uploader_util.dartindex 8a7afb44e0..7bbdbd0bb2 100644--- a/mobile/lib/utils/file_uploader_util.dart+++ b/mobile/lib/utils/file_uploader_util.dart@@ -342,7 +342,7 @@ Future<MetadataRequest> getPubMetadataRequest(file.pubMmdEncodedJson = jsonEncode(jsonToUpdate);file.pubMagicMetadata = PubMagicMetadata.fromJson(jsonToUpdate);final encryptedMMd = await CryptoUtil.encryptChaCha(- utf8.encode(jsonEncode(jsonToUpdate)) as Uint8List,+ utf8.encode(jsonEncode(jsonToUpdate)),fileKey,);return MetadataRequest(diff --git a/mobile/lib/utils/validator_util.dart b/mobile/lib/utils/validator_util.dartindex 0e54ceeab6..b7a812a7ae 100644--- a/mobile/lib/utils/validator_util.dart+++ b/mobile/lib/utils/validator_util.dart@@ -33,7 +33,7 @@ void validatePreVerificationStateCheck(}// check password encoding issuestry {- final Uint8List passwordL = utf8.encode(password!) as Uint8List;+ final Uint8List passwordL = utf8.encode(password!);try {utf8.decode(passwordL);} catch (e) {