refactor: Add code quality reports

This commit is contained in:
Krille Fear 2021-10-16 09:59:38 +02:00
commit 2f978c5098
17 changed files with 93 additions and 29 deletions

View file

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