mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 02:46:47 +01:00
13 lines
367 B
Dart
13 lines
367 B
Dart
|
import 'package:flutter_hooks/flutter_hooks.dart';
|
||
|
import 'package:crop_image/crop_image.dart';
|
||
|
import 'dart:ui'; // Import the dart:ui library for Rect
|
||
|
|
||
|
/// A hook that provides a [CropController] instance.
|
||
|
CropController useCropController() {
|
||
|
return useMemoized(
|
||
|
() => CropController(
|
||
|
defaultCrop: const Rect.fromLTRB(0.1, 0.1, 0.9, 0.9),
|
||
|
),
|
||
|
);
|
||
|
}
|