Apply more fixes (#1412)

This commit is contained in:
Vishnu Mohandas 2023-09-22 12:39:37 +05:30 committed by GitHub
commit fbaa58d0b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 8 additions and 6 deletions

View file

@ -27,6 +27,7 @@ class TunneledTransport implements Transport {
_credentialBuilder = _CredentialBuilder(
_dsn,
_options.sentryClientName,
// ignore: invalid_use_of_internal_member
_options.clock,
);
}

View file

@ -527,6 +527,7 @@ class UserService {
// ignore: need to calculate secret to get M1, unused_local_variable
final clientS = client.calculateSecret(serverB);
final clientM = client.calculateClientEvidenceMessage();
// ignore: unused_local_variable
late Response srpCompleteResponse;
if(setKeysRequest == null) {
srpCompleteResponse = await _enteDio.post(

View file

@ -1,6 +1,5 @@
import 'package:flutter/material.dart';
import "package:logging/logging.dart";
import 'package:photos/core/configuration.dart';
import "package:photos/generated/l10n.dart";
import "package:photos/models/api/user/srp.dart";
@ -24,7 +23,6 @@ class LoginPasswordVerificationPage extends StatefulWidget {
class _LoginPasswordVerificationPageState extends
State<LoginPasswordVerificationPage> {
final _logger = Logger((_LoginPasswordVerificationPageState).toString());
final _passwordController = TextEditingController();
final FocusNode _passwordFocusNode = FocusNode();
String? email;

View file

@ -1,3 +1,5 @@
// ignore_for_file: invalid_use_of_internal_member
import "dart:async";
import "package:flutter/material.dart";

View file

@ -219,6 +219,7 @@ class _PaymentWebPageState extends State<PaymentWebPage> {
final checkoutSessionID = queryParams['session_id'] ?? '';
await _dialog.show();
try {
// ignore: unused_local_variable
final response = await billingService.verifySubscription(
widget.planId,
checkoutSessionID,

View file

@ -303,6 +303,7 @@ class _ImageEditorPageState extends State<ImageEditorPage> {
final bool flipVertical = action.flipX;
final Uint8List img = state.rawImageData;
// ignore: unnecessary_null_comparison
if (img == null) {
_logger.severe("null rawImageData");
showToast(context, S.of(context).somethingWentWrong);

View file

@ -221,6 +221,7 @@ class _DetailPageState extends State<DetailPage> {
}
// always notify listeners when the index is the same because
// the total number of files might have changed
// ignore: invalid_use_of_protected_member, invalid_use_of_visible_for_testing_member
_selectedIndexNotifier.notifyListeners();
} else {
_selectedIndexNotifier.value = index;

View file

@ -7,7 +7,6 @@ import 'package:flutter/widgets.dart';
import 'package:logging/logging.dart';
import 'package:photo_view/photo_view.dart';
import 'package:photos/core/cache/thumbnail_in_memory_cache.dart';
import "package:photos/core/configuration.dart";
import 'package:photos/core/constants.dart';
import 'package:photos/core/event_bus.dart';
import 'package:photos/db/files_db.dart';
@ -56,8 +55,6 @@ class _ZoomableImageState extends State<ZoomableImage>
ValueChanged<PhotoViewScaleState>? _scaleStateChangedCallback;
bool _isZooming = false;
PhotoViewController _photoViewController = PhotoViewController();
int? _thumbnailWidth;
late int _currentUserID;
@override
void initState() {
@ -72,7 +69,6 @@ class _ZoomableImageState extends State<ZoomableImage>
debugPrint("isZooming = $_isZooming, currentState $value");
// _logger.info('is reakky zooming $_isZooming with state $value');
};
_currentUserID = Configuration.instance.getUserID()!;
super.initState();
}

1
plugins/clip_ggml Submodule

@ -0,0 +1 @@
Subproject commit 1441568f3036327b7092dae5bdb8512552046052