Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix UI

AmanRajSinghMourya2571128f9516
diff --git a/mobile/apps/locker/lib/ui/pages/collection_page.dart b/mobile/apps/locker/lib/ui/pages/collection_page.dart
index 25d923887e..5dad663ee4 100644
--- a/mobile/apps/locker/lib/ui/pages/collection_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/collection_page.dart
@@ -178,7 +178,7 @@ class _CollectionPageState extends UploaderPageState<CollectionPage>
}
} catch (e, s) {
_logger.severe(e, s);
- await showGenericErrorDialog(context: context, error: e);
+ await showGenericErrorBottomSheet(context: context, error: e);
}
}
@@ -256,12 +256,11 @@ class _CollectionPageState extends UploaderPageState<CollectionPage>
if (isFavorite) {
return SizedBox.fromSize();
}
- final canManageCollection =
- collectionViewType == CollectionViewType.ownedCollection ||
+ final canManageCollection = collectionViewType ==
+ CollectionViewType.ownedCollection ||
collectionViewType == CollectionViewType.hiddenOwnedCollection ||
collectionViewType == CollectionViewType.sharedCollectionViewer ||
- collectionViewType ==
- CollectionViewType.sharedCollectionCollaborator ||
+ collectionViewType == CollectionViewType.sharedCollectionCollaborator ||
collectionViewType == CollectionViewType.quickLink;
if (!canManageCollection) {
return SizedBox.fromSize();
diff --git a/mobile/apps/locker/lib/ui/settings/pages/account_settings_page.dart b/mobile/apps/locker/lib/ui/settings/pages/account_settings_page.dart
index 551db0f74a..5c444c0787 100644
--- a/mobile/apps/locker/lib/ui/settings/pages/account_settings_page.dart
+++ b/mobile/apps/locker/lib/ui/settings/pages/account_settings_page.dart
@@ -96,7 +96,7 @@ class AccountSettingsPage extends StatelessWidget {
CryptoUtil.bin2hex(Configuration.instance.getRecoveryKey());
} catch (e) {
// ignore: unawaited_futures
- showGenericErrorDialog(
+ showGenericErrorBottomSheet(
context: context,
error: e,
);
diff --git a/mobile/apps/locker/lib/ui/settings/pages/security_settings_page.dart b/mobile/apps/locker/lib/ui/settings/pages/security_settings_page.dart
index 037150d83a..78e3d303a5 100644
--- a/mobile/apps/locker/lib/ui/settings/pages/security_settings_page.dart
+++ b/mobile/apps/locker/lib/ui/settings/pages/security_settings_page.dart
@@ -213,7 +213,7 @@ class _SecuritySettingsPageState extends State<SecuritySettingsPage> {
await PasskeyService.instance.openPasskeyPage(buildContext);
} catch (e, s) {
_logger.severe("failed to open passkey page", e, s);
- await showGenericErrorDialog(
+ await showGenericErrorBottomSheet(
context: context,
error: e,
);
diff --git a/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart b/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart
index 39dee57da1..a0b90d5179 100644
--- a/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart
+++ b/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart
@@ -312,7 +312,7 @@ class _CollectionSelectionOverlayBarState
await CollectionActions.editCollection(context, collection);
} catch (e, s) {
_logger.severe(e, s);
- await showGenericErrorDialog(context: context, error: e);
+ await showGenericErrorBottomSheet(context: context, error: e);
}
widget.selectedCollections.clearAll();
}
@@ -328,7 +328,7 @@ class _CollectionSelectionOverlayBarState
await CollectionActions.deleteCollection(context, collection);
} catch (e, s) {
_logger.severe(e, s);
- await showGenericErrorDialog(context: context, error: e);
+ await showGenericErrorBottomSheet(context: context, error: e);
}
widget.selectedCollections.clearAll();
}
@@ -347,7 +347,7 @@ class _CollectionSelectionOverlayBarState
);
} catch (e, s) {
_logger.severe(e, s);
- await showGenericErrorDialog(context: context, error: e);
+ await showGenericErrorBottomSheet(context: context, error: e);
}
widget.selectedCollections.clearAll();
}
@@ -369,7 +369,7 @@ class _CollectionSelectionOverlayBarState
await showShareCollectionSheet(context, collection: collection);
} catch (e, s) {
_logger.severe(e, s);
- await showGenericErrorDialog(context: context, error: e);
+ await showGenericErrorBottomSheet(context: context, error: e);
}
widget.selectedCollections.clearAll();
}
@@ -394,7 +394,7 @@ class _CollectionSelectionOverlayBarState
}
} catch (e, s) {
_logger.severe(e, s);
- await showGenericErrorDialog(context: context, error: e);
+ await showGenericErrorBottomSheet(context: context, error: e);
}
widget.selectedCollections.clearAll();
}
diff --git a/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart b/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart
index 9c43ee265e..17386a3663 100644
--- a/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart
+++ b/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart
@@ -761,7 +761,7 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {
if (!context.mounted) {
return;
}
- await showGenericErrorDialog(
+ await showGenericErrorBottomSheet(
context: context,
error: e,
);
diff --git a/mobile/apps/locker/lib/utils/collection_actions.dart b/mobile/apps/locker/lib/utils/collection_actions.dart
index 4a1d948c83..0d87001b08 100644
--- a/mobile/apps/locker/lib/utils/collection_actions.dart
+++ b/mobile/apps/locker/lib/utils/collection_actions.dart
@@ -57,7 +57,7 @@ class CollectionActions {
if (result is Exception) {
if (context.mounted) {
- await showGenericErrorDialog(
+ await showGenericErrorBottomSheet(
context: context,
error: result,
);
@@ -202,7 +202,7 @@ class CollectionActions {
await progressDialog.hide();
if (errors.isNotEmpty) {
- await showGenericErrorDialog(
+ await showGenericErrorBottomSheet(
context: context,
error: errors.first,
);
@@ -429,7 +429,7 @@ class CollectionActions {
await showSubscriptionRequiredSheet(context);
} else {
_logger.severe("Failed to update shareUrl collection", e);
- await showGenericErrorDialog(context: context, error: e);
+ await showGenericErrorBottomSheet(context: context, error: e);
}
return false;
}
@@ -464,7 +464,7 @@ class CollectionActions {
return true;
} catch (e) {
if (context.mounted) {
- await showGenericErrorDialog(
+ await showGenericErrorBottomSheet(
context: context,
error: e,
);
@@ -493,7 +493,7 @@ class CollectionActions {
} catch (e) {
await dialog?.hide();
_logger.severe("Failed to get public key", e);
- await showGenericErrorDialog(context: context, error: e);
+ await showGenericErrorBottomSheet(context: context, error: e);
return false;
}
// getPublicKey can return null when no user is associated with given
@@ -550,7 +550,7 @@ class CollectionActions {
} catch (e) {
await dialog?.hide();
_logger.severe("Failed to get public key", e);
- await showGenericErrorDialog(context: context, error: e);
+ await showGenericErrorBottomSheet(context: context, error: e);
return false;
}
// getPublicKey can return null when no user is associated with given
@@ -572,7 +572,7 @@ class CollectionActions {
await showSubscriptionRequiredSheet(context);
} else {
_logger.severe("failed to share collection", e);
- await showGenericErrorDialog(context: context, error: e);
+ await showGenericErrorBottomSheet(context: context, error: e);
}
return false;
}
@@ -592,7 +592,7 @@ class CollectionActions {
return true;
} catch (e) {
_logger.severe("Failed to remove participant", e);
- await showGenericErrorDialog(context: context, error: e);
+ await showGenericErrorBottomSheet(context: context, error: e);
return false;
}
}
diff --git a/mobile/apps/locker/lib/utils/file_actions.dart b/mobile/apps/locker/lib/utils/file_actions.dart
index b628ea8bd2..63a7b1e68d 100644
--- a/mobile/apps/locker/lib/utils/file_actions.dart
+++ b/mobile/apps/locker/lib/utils/file_actions.dart
@@ -408,7 +408,7 @@ class FileActions {
if (!context.mounted) {
return;
}
- await showGenericErrorDialog(
+ await showGenericErrorBottomSheet(
context: context,
error: e,
);