Skip to content

Commit

Permalink
Fix documentation (flutter#3362)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanbeusekom authored Dec 22, 2020
1 parent 0f1c20d commit 5708731
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 4 additions & 0 deletions packages/camera/camera/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.6.2+1

* Fix the API documentation for the `CameraController.takePicture` method.

## 0.6.2

* Add zoom support for Android and iOS implementations.
Expand Down
8 changes: 1 addition & 7 deletions packages/camera/camera/lib/src/camera_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,7 @@ class CameraController extends ValueNotifier<CameraValue> {
await CameraPlatform.instance.prepareForVideoRecording();
}

/// Captures an image and saves it to [path].
///
/// A path can for example be obtained using
/// [path_provider](https://pub.dartlang.org/packages/path_provider).
///
/// If a file already exists at the provided path an error will be thrown.
/// The file can be read as this function returns.
/// Captures an image and returns the file where it was saved.
///
/// Throws a [CameraException] if the capture fails.
Future<XFile> takePicture() async {
Expand Down
2 changes: 1 addition & 1 deletion packages/camera/camera/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: camera
description: A Flutter plugin for getting information about and controlling the
camera on Android and iOS. Supports previewing the camera feed, capturing images, capturing video,
and streaming image buffers to dart.
version: 0.6.2
version: 0.6.2+1
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera

dependencies:
Expand Down

0 comments on commit 5708731

Please sign in to comment.