chore: lint fixes

This commit is contained in:
Prateek Sunal 2024-03-06 22:25:09 +05:30
parent 5fe5ac0935
commit 4e452d6b43
8 changed files with 14 additions and 10 deletions

View file

@ -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;
}
}

View file

@ -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();

View file

@ -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';

View file

@ -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';

View file

@ -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);

View file

@ -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';

View file

@ -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';

View file

@ -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';