Source Code added
This commit is contained in:
parent
800376eafd
commit
9efa9bc6dd
3912 changed files with 754770 additions and 2 deletions
8
mobile/lib/utils/hooks/crop_controller_hook.dart
Normal file
8
mobile/lib/utils/hooks/crop_controller_hook.dart
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
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, 0, 1, 1)));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue