-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
breaking change - ability to get errors while cropping an image (#145)
* bump `image` dependency * breaking change - ability to get errors while cropping an image * ++ example * ++ test
- Loading branch information
1 parent
20c3dd8
commit 40c1961
Showing
7 changed files
with
139 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Created by [email protected] on 04.03.2024. | ||
|
||
import 'dart:typed_data'; | ||
|
||
sealed class CropResult { | ||
const CropResult(); | ||
} | ||
|
||
class CropSuccess extends CropResult { | ||
const CropSuccess(this.croppedImage); | ||
final Uint8List croppedImage; | ||
} | ||
|
||
class CropFailure extends CropResult { | ||
const CropFailure(this.error, [this.stackTrace]); | ||
final Object error; | ||
final StackTrace? stackTrace; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ dependencies: | |
flutter: | ||
sdk: flutter | ||
|
||
image: ^4.2.0 | ||
image: ^4.3.0 | ||
|
||
dev_dependencies: | ||
flutter_test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters