refactor: Remove unused dependency
This commit is contained in:
parent
0641793353
commit
038f6bd9ff
3 changed files with 1 additions and 10 deletions
|
|
@ -1,8 +1,5 @@
|
|||
import 'dart:io';
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:blurhash_dart/blurhash_dart.dart';
|
||||
import 'package:image/image.dart';
|
||||
import 'package:matrix/matrix.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:video_compress/video_compress.dart';
|
||||
|
|
@ -54,8 +51,3 @@ extension ResizeImage on MatrixFile {
|
|||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Future<BlurHash> createBlurHash(Uint8List file) async {
|
||||
final image = decodeImage(file)!;
|
||||
return BlurHash.encode(image, numCompX: 4, numCompY: 3);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue