Skip to content

Commit eb75bbf

Browse files
mvanbeusekomadsonpleal
authored andcommitted
Fix documentation (flutter#3362)
1 parent ec12ce9 commit eb75bbf

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

packages/camera/camera/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.2+1
2+
3+
* Fix the API documentation for the `CameraController.takePicture` method.
4+
15
## 0.6.2
26

37
* Add zoom support for Android and iOS implementations.

packages/camera/camera/lib/src/camera_controller.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,7 @@ class CameraController extends ValueNotifier<CameraValue> {
226226
await CameraPlatform.instance.prepareForVideoRecording();
227227
}
228228

229-
/// Captures an image and saves it to [path].
230-
///
231-
/// A path can for example be obtained using
232-
/// [path_provider](https://pub.dartlang.org/packages/path_provider).
233-
///
234-
/// If a file already exists at the provided path an error will be thrown.
235-
/// The file can be read as this function returns.
229+
/// Captures an image and returns the file where it was saved.
236230
///
237231
/// Throws a [CameraException] if the capture fails.
238232
Future<XFile> takePicture() async {

packages/camera/camera/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: camera
22
description: A Flutter plugin for getting information about and controlling the
33
camera on Android and iOS. Supports previewing the camera feed, capturing images, capturing video,
44
and streaming image buffers to dart.
5-
version: 0.6.2
5+
version: 0.6.2+1
66
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera
77

88
dependencies:

0 commit comments

Comments
 (0)