From faa3fdf525e24fb323df75632f761dfda1eb8a58 Mon Sep 17 00:00:00 2001 From: Midori <50433979+natsuk4ze@users.noreply.github.com> Date: Mon, 21 Aug 2023 20:25:57 +0900 Subject: [PATCH] Update README.md --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 8260bab8..851da9f1 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,29 @@ await Dio().download('$url',videoPath); await Gal.putVideo(videoPath); ``` +### Save from Camera + +```console +$ flutter pub add image_picker +``` + +```dart +// Shot and Save +final image = ImagePicker.pickImage(source: ImageSource.camera); +await Gal.putImage(image.path); +``` + +```console +$ flutter pub add camera +``` +```dart +// Record and Save +... +await controller.startVideoRecording(); +final video = await controller.stopVideoRecording(); +await Gal.putVideo(video.path); +``` + ### Handle Permission ```dart