Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix: infinite loading of menuitem widget

AmanRajSinghMouryac319c615b718
diff --git a/mobile/apps/photos/lib/emergency/emergency_page.dart b/mobile/apps/photos/lib/emergency/emergency_page.dart
index 6c967d32b1..9e3b7f7076 100644
--- a/mobile/apps/photos/lib/emergency/emergency_page.dart
+++ b/mobile/apps/photos/lib/emergency/emergency_page.dart
@@ -172,7 +172,6 @@ class _EmergencyPageState extends State<EmergencyPage> {
makeTextBold: contact.isPendingInvite(),
),
leadingIconSize: 24.0,
- surfaceExecutionStates: false,
alwaysShowSuccessState: false,
leadingIconWidget: UserAvatarWidget(
contact.emergencyContact,
@@ -247,7 +246,6 @@ class _EmergencyPageState extends State<EmergencyPage> {
makeTextBold: true,
),
leadingIcon: Icons.add_outlined,
- surfaceExecutionStates: false,
menuItemColor: getEnteColorScheme(context).fillFaint,
onTap: () async {
await routeToPage(
@@ -344,7 +342,6 @@ class _EmergencyPageState extends State<EmergencyPage> {
isTopBorderRadiusRemoved: listIndex > 0,
isBottomBorderRadiusRemoved: !isLastItem,
singleBorderRadius: 8,
- surfaceExecutionStates: false,
),
isLastItem
? const SizedBox.shrink()
diff --git a/mobile/apps/photos/lib/emergency/other_contact_page.dart b/mobile/apps/photos/lib/emergency/other_contact_page.dart
index 94d31374a8..4c736f0faa 100644
--- a/mobile/apps/photos/lib/emergency/other_contact_page.dart
+++ b/mobile/apps/photos/lib/emergency/other_contact_page.dart
@@ -230,7 +230,6 @@ class _OtherContactPageState extends State<OtherContactPage> {
leadingIcon: Icons.not_interested_outlined,
leadingIconColor: warning500,
menuItemColor: getEnteColorScheme(context).fillFaint,
- surfaceExecutionStates: false,
onTap: () async {
await showRemoveSheet();
},
diff --git a/mobile/apps/photos/lib/ui/components/menu_item_widget/menu_item_widget.dart b/mobile/apps/photos/lib/ui/components/menu_item_widget/menu_item_widget.dart
index ea9dbd0c48..5fafca1d8a 100644
--- a/mobile/apps/photos/lib/ui/components/menu_item_widget/menu_item_widget.dart
+++ b/mobile/apps/photos/lib/ui/components/menu_item_widget/menu_item_widget.dart
@@ -88,7 +88,7 @@ class MenuItemWidget extends StatefulWidget {
this.isTopBorderRadiusRemoved = false,
this.isGestureDetectorDisabled = false,
this.showOnlyLoadingState = false,
- this.surfaceExecutionStates = true,
+ this.surfaceExecutionStates = false,
this.alwaysShowSuccessState = false,
this.padding,
super.key,
diff --git a/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_options.dart b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_options.dart
index c852eef2f7..5635cd43b5 100644
--- a/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_options.dart
+++ b/mobile/apps/photos/lib/ui/settings/lock_screen/lock_screen_options.dart
@@ -214,7 +214,6 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {
title: AppLocalizations.of(context)
.deviceLock,
),
- surfaceExecutionStates: false,
alignCaptionedTextToLeft: true,
isTopBorderRadiusRemoved: false,
isBottomBorderRadiusRemoved: true,
@@ -235,7 +234,6 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {
title: AppLocalizations.of(context)
.pinLock,
),
- surfaceExecutionStates: false,
alignCaptionedTextToLeft: true,
isTopBorderRadiusRemoved: true,
isBottomBorderRadiusRemoved: true,
@@ -254,7 +252,6 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {
title: AppLocalizations.of(context)
.passwordLock,
),
- surfaceExecutionStates: false,
alignCaptionedTextToLeft: true,
isTopBorderRadiusRemoved: true,
isBottomBorderRadiusRemoved: false,
@@ -279,7 +276,6 @@ class _LockScreenOptionsState extends State<LockScreenOptions> {
),
),
),
- surfaceExecutionStates: false,
trailingIcon:
Icons.chevron_right_outlined,
trailingIconIsMuted: true,
diff --git a/mobile/apps/photos/lib/ui/settings/security_section_widget.dart b/mobile/apps/photos/lib/ui/settings/security_section_widget.dart
index 15903de27d..82ae7a5f39 100644
--- a/mobile/apps/photos/lib/ui/settings/security_section_widget.dart
+++ b/mobile/apps/photos/lib/ui/settings/security_section_widget.dart
@@ -156,7 +156,6 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
),
trailingIcon: Icons.chevron_right_outlined,
trailingIconIsMuted: true,
- surfaceExecutionStates: false,
onTap: () async {
if (await LocalAuthentication().isDeviceSupported()) {
final bool result = await requestAuthentication(
diff --git a/mobile/apps/photos/lib/ui/sharing/manage_album_participant.dart b/mobile/apps/photos/lib/ui/sharing/manage_album_participant.dart
index 94186e3fef..2bd182e764 100644
--- a/mobile/apps/photos/lib/ui/sharing/manage_album_participant.dart
+++ b/mobile/apps/photos/lib/ui/sharing/manage_album_participant.dart
@@ -207,7 +207,6 @@ class _ManageIndividualParticipantState
leadingIcon: Icons.not_interested_outlined,
leadingIconColor: warning500,
menuItemColor: colorScheme.fillFaint,
- surfaceExecutionStates: false,
onTap: () async {
final result = await collectionActions.removeParticipant(
context,
diff --git a/mobile/apps/photos/pubspec.lock b/mobile/apps/photos/pubspec.lock
index edd9bcf6c1..0739aa5a6b 100644
--- a/mobile/apps/photos/pubspec.lock
+++ b/mobile/apps/photos/pubspec.lock
@@ -278,10 +278,10 @@ packages:
dependency: transitive
description:
name: camera_android_camerax
- sha256: "2c0746d55f513bed55f52e0b5d9bda18c1533bb16bb89ea93d8033f3815e6cd8"
+ sha256: "58b8fe843a3c83fd1273c00cb35f5a8ae507f6cc9b2029bcf7e2abba499e28d8"
url: "https://pub.dev"
source: hosted
- version: "0.6.23+1"
+ version: "0.6.19+1"
camera_avfoundation:
dependency: transitive
description:
@@ -3216,4 +3216,4 @@ packages:
version: "3.1.3"
sdks:
dart: ">=3.8.1 <4.0.0"
- flutter: ">=3.32.8"
+ flutter: ">=3.32.0"