• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

icapps / flutter-custom-image-crop / 6183199936

14 Sep 2023 08:57AM UTC coverage: 0.0%. Remained the same
6183199936

push

github

web-flow
Merge pull request #44 from icapps/feature/keep-ratio-while-cropping

Feature/keep ratio while cropping

128 of 128 new or added lines in 4 files covered. (100.0%)

0 of 362 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/src/models/params_model.dart
1
/// Params used to display crop screen.
2
class CropFitParams {
3
  /// The width of displayed crop area.
4
  final double cropSizeWidth;
5

6
  /// The height of displayed crop area.
7
  final double cropSizeHeight;
8

9
  /// The scale used to adjust display of the image based on 'CustomImageFit' type.
10
  final double additionalScale;
11

12
  CropFitParams({
×
13
    required this.cropSizeWidth,
14
    required this.cropSizeHeight,
15
    required this.additionalScale,
16
  });
17
}
18

19
/// Params used to crop image.
20
class OnCropParams {
21
  /// The width of actual crop area.
22
  final double cropSizeWidth;
23

24
  /// The height of actual crop area.
25
  final double cropSizeHeight;
26

27
  /// The translate scale used to crop the image based on 'CustomImageFit' type.
28
  final double translateScale;
29

30
  /// Is used to crop the image based on 'CustomImageFit' type.
31
  final double scale;
32

33
  OnCropParams({
×
34
    required this.cropSizeWidth,
35
    required this.cropSizeHeight,
36
    required this.translateScale,
37
    required this.scale,
38
  });
39
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc