Skip to content

armgit / ente

Public Imported from GitHub
0

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

dart format

laurenspriem21e4b68cb34f
diff --git a/mobile/apps/photos/lib/services/account/user_service.dart b/mobile/apps/photos/lib/services/account/user_service.dart
index 96cb0f253e..f6019d22f2 100644
--- a/mobile/apps/photos/lib/services/account/user_service.dart
+++ b/mobile/apps/photos/lib/services/account/user_service.dart
@@ -274,11 +274,11 @@ class UserService {
}
} catch (e) {
// Determine if we should silently ignore the error and proceed with logout
- final bool silentlyIgnoreError =
+ final bool silentlyIgnoreError =
// Token is already invalid (401 response)
(e is DioException && e.response?.statusCode == 401) ||
- // Custom endpoints where server might be non-existent or unavailable
- !_config.isEnteProduction();
+ // Custom endpoints where server might be non-existent or unavailable
+ !_config.isEnteProduction();
if (silentlyIgnoreError) {
if (!_config.isEnteProduction()) {
@@ -288,9 +288,9 @@ class UserService {
} else {
_logger.info("Token already invalid, proceeding with local logout");
}
-
+
await Configuration.instance.logout();
-
+
// Navigate to first route if context is still mounted
if (context.mounted) {
Navigator.of(context).popUntil((route) => route.isFirst);
diff --git a/mobile/apps/photos/lib/ui/components/buttons/chip_button_widget.dart b/mobile/apps/photos/lib/ui/components/buttons/chip_button_widget.dart
index 9da85d9875..a4c68836d5 100644
--- a/mobile/apps/photos/lib/ui/components/buttons/chip_button_widget.dart
+++ b/mobile/apps/photos/lib/ui/components/buttons/chip_button_widget.dart
@@ -8,7 +8,7 @@ class ChipButtonWidget extends StatelessWidget {
final double iconSize;
final VoidCallback? onTap;
final bool noChips;
-
+
const ChipButtonWidget(
this.label, {
this.leadingIcon,
diff --git a/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart b/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart
index 63b90bb090..d1bde66acd 100644
--- a/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart
+++ b/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart
@@ -225,23 +225,23 @@ class _ShareCollectionPageState extends State<ShareCollectionPage> {
MenuItemWidget(
captionedTextWidget: CaptionedTextWidget(
title: AppLocalizations.of(context).sendQrCode,
- makeTextBold: true,
- ),
- leadingIcon: Icons.qr_code_outlined,
- menuItemColor: getEnteColorScheme(context).fillFaint,
- onTap: () async {
- await showDialog<void>(
- context: context,
- builder: (BuildContext context) {
- return QrCodeDialogWidget(
- collection: widget.collection,
- );
- },
- );
- },
- isTopBorderRadiusRemoved: true,
- isBottomBorderRadiusRemoved: true,
+ makeTextBold: true,
),
+ leadingIcon: Icons.qr_code_outlined,
+ menuItemColor: getEnteColorScheme(context).fillFaint,
+ onTap: () async {
+ await showDialog<void>(
+ context: context,
+ builder: (BuildContext context) {
+ return QrCodeDialogWidget(
+ collection: widget.collection,
+ );
+ },
+ );
+ },
+ isTopBorderRadiusRemoved: true,
+ isBottomBorderRadiusRemoved: true,
+ ),
],
);
}