import 'package:cropperx/cropperx.dart';
import 'package:fis_ui/define.dart';
import 'package:flutter/material.dart';

///图像剪裁区域
class FCropper extends Cropper implements FWidget {
  FCropper({
    Key? key,
    required GlobalKey<State<StatefulWidget>>? cropperKey,
    required Image image,
    backgroundColor = const Color(0xFFCECECE),
    overlayColor = Colors.black38,
    overlayType = OverlayType.none,
    zoomScale = 2.5,
    gridLineThickness = 2.0,
    aspectRatio = 1.0,
    rotationTurns = 0,
  }) : super(
          cropperKey: cropperKey,
          image: image,
          backgroundColor: backgroundColor,
          overlayColor: overlayColor,
          overlayType: overlayType,
          zoomScale: zoomScale,
          gridLineThickness: gridLineThickness,
          aspectRatio: aspectRatio,
          rotationTurns: rotationTurns,
        );
}
