refactor: Add code quality reports
This commit is contained in:
parent
9e7a278dff
commit
2f978c5098
17 changed files with 93 additions and 29 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue