refactor: Add code quality reports
This commit is contained in:
parent
9e7a278dff
commit
2f978c5098
17 changed files with 93 additions and 29 deletions
|
|
@ -105,13 +105,9 @@ class BackgroundPush {
|
|||
return instance;
|
||||
}
|
||||
|
||||
Future<void> fullInit() async {
|
||||
await setupPush();
|
||||
}
|
||||
Future<void> fullInit() => setupPush();
|
||||
|
||||
void handleLoginStateChanged(LoginState state) {
|
||||
setupPush();
|
||||
}
|
||||
void handleLoginStateChanged(_) => setupPush();
|
||||
|
||||
void _newFcmToken(String token) {
|
||||
_fcmToken = token;
|
||||
|
|
|
|||
|
|
@ -6,8 +6,10 @@ import 'package:native_imaging/native_imaging.dart' as native;
|
|||
|
||||
import 'run_in_background.dart';
|
||||
|
||||
const int defaultMax = 800;
|
||||
|
||||
Future<MatrixImageFile> resizeImage(MatrixImageFile file,
|
||||
{int max = 800}) async {
|
||||
{int max = defaultMax}) async {
|
||||
// we want to resize the image in a separate isolate, because otherwise that can
|
||||
// freeze up the UI a bit
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// ignore: camel_case_types
|
||||
class platformViewRegistry {
|
||||
static void registerViewFactory(String viewId, dynamic cb) {}
|
||||
static void registerViewFactory(String _, dynamic __) {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ class UrlLauncher {
|
|||
launch(uri.replace(host: newHost).toString());
|
||||
}
|
||||
|
||||
void openMatrixToUrl([bool startDirectChat = false]) async {
|
||||
void openMatrixToUrl() async {
|
||||
final matrix = Matrix.of(context);
|
||||
// The identifier might be a matrix.to url and needs escaping. Or, it might have multiple
|
||||
// identifiers (room id & event id), or it might also have a query part.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue