mirror of
https://github.com/ente-io/ente.git
synced 2025-06-03 07:49:45 +00:00
Fix warnings in Auth
This commit is contained in:
parent
e6ab34101f
commit
8c8723efd1
@ -27,6 +27,7 @@ class TunneledTransport implements Transport {
|
|||||||
_credentialBuilder = _CredentialBuilder(
|
_credentialBuilder = _CredentialBuilder(
|
||||||
_dsn,
|
_dsn,
|
||||||
_options.sentryClientName,
|
_options.sentryClientName,
|
||||||
|
// ignore: invalid_use_of_internal_member
|
||||||
_options.clock,
|
_options.clock,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -28,8 +28,6 @@ class BillingService {
|
|||||||
final _dio = Network.instance.getDio();
|
final _dio = Network.instance.getDio();
|
||||||
final _config = Configuration.instance;
|
final _config = Configuration.instance;
|
||||||
|
|
||||||
bool _isOnSubscriptionPage = false;
|
|
||||||
|
|
||||||
Subscription? _cachedSubscription;
|
Subscription? _cachedSubscription;
|
||||||
|
|
||||||
Future<BillingPlans>? _future;
|
Future<BillingPlans>? _future;
|
||||||
@ -176,8 +174,4 @@ class BillingService {
|
|||||||
rethrow;
|
rethrow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void setIsOnSubscriptionPage(bool isOnSubscriptionPage) {
|
|
||||||
_isOnSubscriptionPage = isOnSubscriptionPage;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -486,6 +486,7 @@ class UserService {
|
|||||||
// ignore: need to calculate secret to get M1, unused_local_variable
|
// ignore: need to calculate secret to get M1, unused_local_variable
|
||||||
final clientS = client.calculateSecret(serverB);
|
final clientS = client.calculateSecret(serverB);
|
||||||
final clientM = client.calculateClientEvidenceMessage();
|
final clientM = client.calculateClientEvidenceMessage();
|
||||||
|
// ignore: unused_local_variable
|
||||||
late Response srpCompleteResponse;
|
late Response srpCompleteResponse;
|
||||||
if (setKeysRequest == null) {
|
if (setKeysRequest == null) {
|
||||||
srpCompleteResponse = await _enteDio.post(
|
srpCompleteResponse = await _enteDio.post(
|
||||||
|
@ -166,7 +166,7 @@ class AuthenticatorDB {
|
|||||||
batch.delete(entityTable, where: whereID, whereArgs: [id]);
|
batch.delete(entityTable, where: whereID, whereArgs: [id]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final result = await batch.commit();
|
await batch.commit();
|
||||||
debugPrint("Done");
|
debugPrint("Done");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ class OfflineAuthenticatorDB {
|
|||||||
batch.delete(entityTable, where: whereID, whereArgs: [id]);
|
batch.delete(entityTable, where: whereID, whereArgs: [id]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final result = await batch.commit();
|
await batch.commit();
|
||||||
debugPrint("Done");
|
debugPrint("Done");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ import 'package:shared_preferences/shared_preferences.dart';
|
|||||||
class UserStore {
|
class UserStore {
|
||||||
UserStore._privateConstructor();
|
UserStore._privateConstructor();
|
||||||
|
|
||||||
|
// ignore: unused_field
|
||||||
late SharedPreferences _preferences;
|
late SharedPreferences _preferences;
|
||||||
|
|
||||||
static final UserStore instance = UserStore._privateConstructor();
|
static final UserStore instance = UserStore._privateConstructor();
|
||||||
|
@ -317,8 +317,7 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
|
|||||||
onChanged: (cnfPassword) {
|
onChanged: (cnfPassword) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_passwordInInputConfirmationBox = cnfPassword;
|
_passwordInInputConfirmationBox = cnfPassword;
|
||||||
if (_passwordInInputBox != null ||
|
if (_passwordInInputBox != '') {
|
||||||
_passwordInInputBox != '') {
|
|
||||||
_passwordsMatch = _passwordInInputBox ==
|
_passwordsMatch = _passwordInInputBox ==
|
||||||
_passwordInInputConfirmationBox;
|
_passwordInInputConfirmationBox;
|
||||||
}
|
}
|
||||||
|
@ -9,11 +9,8 @@ import 'package:ente_auth/ui/settings/data/export_widget.dart';
|
|||||||
import 'package:ente_auth/ui/settings/data/import_page.dart';
|
import 'package:ente_auth/ui/settings/data/import_page.dart';
|
||||||
import 'package:ente_auth/utils/navigation_util.dart';
|
import 'package:ente_auth/utils/navigation_util.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:logging/logging.dart';
|
|
||||||
|
|
||||||
class DataSectionWidget extends StatelessWidget {
|
class DataSectionWidget extends StatelessWidget {
|
||||||
final _logger = Logger("AccountSectionWidget");
|
|
||||||
|
|
||||||
DataSectionWidget({Key? key}) : super(key: key);
|
DataSectionWidget({Key? key}) : super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -21,7 +21,7 @@ enum ImportType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class ImportCodePage extends StatelessWidget {
|
class ImportCodePage extends StatelessWidget {
|
||||||
late List<ImportType> importOptions = [
|
final List<ImportType> importOptions = [
|
||||||
ImportType.plainText,
|
ImportType.plainText,
|
||||||
ImportType.encrypted,
|
ImportType.encrypted,
|
||||||
ImportType.twoFas,
|
ImportType.twoFas,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user