Skip to content

armgit / ente

Public Imported from GitHub
0

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

chore: lint fixes

Prateek Sunal4e452d6b43c7
diff --git a/auth/lib/services/billing_service.dart b/auth/lib/services/billing_service.dart
index 926a11e4d9..363425cd53 100644
--- a/auth/lib/services/billing_service.dart
+++ b/auth/lib/services/billing_service.dart
@@ -28,8 +28,6 @@ class BillingService {
final _dio = Network.instance.getDio();
final _config = Configuration.instance;
- bool _isOnSubscriptionPage = false;
-
Subscription? _cachedSubscription;
Future<BillingPlans>? _future;
@@ -176,8 +174,4 @@ class BillingService {
rethrow;
}
}
-
- void setIsOnSubscriptionPage(bool isOnSubscriptionPage) {
- _isOnSubscriptionPage = isOnSubscriptionPage;
- }
}
diff --git a/auth/lib/store/user_store.dart b/auth/lib/store/user_store.dart
index 30409671b3..20f3ead72b 100644
--- a/auth/lib/store/user_store.dart
+++ b/auth/lib/store/user_store.dart
@@ -3,6 +3,7 @@ import 'package:shared_preferences/shared_preferences.dart';
class UserStore {
UserStore._privateConstructor();
+ // ignore: unused_field
late SharedPreferences _preferences;
static final UserStore instance = UserStore._privateConstructor();
diff --git a/auth/lib/ui/account/recovery_page.dart b/auth/lib/ui/account/recovery_page.dart
index 762bb1a6c6..1d55fbb536 100644
--- a/auth/lib/ui/account/recovery_page.dart
+++ b/auth/lib/ui/account/recovery_page.dart
@@ -1,3 +1,5 @@
+import 'dart:ui';
+
import 'package:ente_auth/core/configuration.dart';
import 'package:ente_auth/l10n/l10n.dart';
import 'package:ente_auth/ui/account/password_entry_page.dart';
diff --git a/auth/lib/ui/account/verify_recovery_page.dart b/auth/lib/ui/account/verify_recovery_page.dart
index e4b3fbdb22..146f3ea922 100644
--- a/auth/lib/ui/account/verify_recovery_page.dart
+++ b/auth/lib/ui/account/verify_recovery_page.dart
@@ -1,3 +1,5 @@
+import 'dart:ui';
+
import 'package:bip39/bip39.dart' as bip39;
import 'package:dio/dio.dart';
import 'package:ente_auth/core/configuration.dart';
diff --git a/auth/lib/ui/passkey_page.dart b/auth/lib/ui/passkey_page.dart
index 6efc234741..5b4cbf18d1 100644
--- a/auth/lib/ui/passkey_page.dart
+++ b/auth/lib/ui/passkey_page.dart
@@ -1,12 +1,12 @@
import 'dart:convert';
+import 'package:app_links/app_links.dart';
import 'package:ente_auth/core/configuration.dart';
import 'package:ente_auth/ente_theme_data.dart';
import 'package:ente_auth/l10n/l10n.dart';
import 'package:ente_auth/services/user_service.dart';
import 'package:flutter/material.dart';
import 'package:logging/logging.dart';
-import 'package:uni_links/uni_links.dart';
import 'package:url_launcher/url_launcher_string.dart';
class PasskeyPage extends StatefulWidget {
@@ -14,8 +14,8 @@ class PasskeyPage extends StatefulWidget {
const PasskeyPage(
this.sessionID, {
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
@override
State<PasskeyPage> createState() => _PasskeyPageState();
@@ -61,8 +61,9 @@ class _PasskeyPageState extends State<PasskeyPage> {
}
Future<bool> _initDeepLinks() async {
+ final appLinks = AppLinks();
// Attach a listener to the stream
- linkStream.listen(
+ appLinks.stringLinkStream.listen(
_handleDeeplink,
onError: (err) {
_logger.severe(err);
diff --git a/auth/lib/ui/settings/data/import/plain_text_import.dart b/auth/lib/ui/settings/data/import/plain_text_import.dart
index 9681f3c1a5..d76effd8c4 100644
--- a/auth/lib/ui/settings/data/import/plain_text_import.dart
+++ b/auth/lib/ui/settings/data/import/plain_text_import.dart
@@ -1,5 +1,6 @@
import 'dart:async';
import 'dart:io';
+import 'dart:ui';
import 'package:ente_auth/ente_theme_data.dart';
import 'package:ente_auth/l10n/l10n.dart';
diff --git a/auth/lib/ui/tools/debug/log_file_viewer.dart b/auth/lib/ui/tools/debug/log_file_viewer.dart
index bcee33bc21..2a85969ed4 100644
--- a/auth/lib/ui/tools/debug/log_file_viewer.dart
+++ b/auth/lib/ui/tools/debug/log_file_viewer.dart
@@ -1,4 +1,5 @@
import 'dart:io';
+import 'dart:ui';
import 'package:ente_auth/ui/common/loading_widget.dart';
import 'package:ente_auth/utils/platform_util.dart';
diff --git a/auth/lib/ui/two_factor_recovery_page.dart b/auth/lib/ui/two_factor_recovery_page.dart
index 12ace414fe..c8a8b1aa61 100644
--- a/auth/lib/ui/two_factor_recovery_page.dart
+++ b/auth/lib/ui/two_factor_recovery_page.dart
@@ -1,3 +1,5 @@
+import 'dart:ui';
+
import 'package:ente_auth/l10n/l10n.dart';
import 'package:ente_auth/services/user_service.dart';
import 'package:ente_auth/utils/dialog_util.dart';