Skip to content

Commit

Permalink
🥅 Wrap controller methods (#200)
Browse files Browse the repository at this point in the history
Resolves #199.
  • Loading branch information
AlexV525 authored Oct 4, 2023
1 parent 94f9e9d commit a4eb461
Show file tree
Hide file tree
Showing 6 changed files with 171 additions and 64 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@ that can be found in the LICENSE file. -->

See the [Migration Guide](guides/migration_guide.md) for the details of breaking changes between versions.

## Unreleased
## 4.0.3

### Fixes

- Prevent duplicate shooting actions.

### Improvements

- Provide overall invalid wrapping for controller methods.
- Throw exceptions with more accurate stack traces.

## 4.0.2

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: wechat_camera_picker_demo
description: A new Flutter project.
version: 4.0.2+27
version: 4.0.3+28
publish_to: none

environment:
Expand Down
8 changes: 4 additions & 4 deletions lib/src/internals/methods.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ void realDebugPrint(dynamic message) {

void handleErrorWithHandler(
Object e,
CameraErrorHandler? handler, {
StackTrace? s,
}) {
StackTrace s,
CameraErrorHandler? handler,
) {
if (handler != null) {
handler(e, s);
return;
}
throw e;
Error.throwWithStackTrace(e, s);
}

T? ambiguate<T>(T value) => value;
Loading

0 comments on commit a4eb461

Please sign in to comment.