
QUESTION: `path_provider` doesn't have getCameraRollDirectory()ĭirectory _appDirectory = await getApplicationDocumentsDirectory() Ĭontroller = new CameraController(cameras, ResolutionPreset. How to Save YouTube Videos to Your Camera Roll on Android To download YouTube. Import 'package:path_provider/path_provider.dart' Ĭlass CameraApp extends StatefulWidget createState() => new _CameraAppState() Your video will now be available within the iOS Photos app on your device. My whole main.dart is below for easy repro (search QUESTION: to find the relevant portions): import 'dart:async' The relevant changes (and only the relevant changes, in the form of a diff) are here: I'm getting an exception on CameraController.capture I have an article how to save Pinterest videos to camera roll.

So, refer to our process RN for further details. Click the Pin It browser button to pin directly from YouTube. Pinterest do not have feature to save videos from app. I can't figure out how to save to the camera roll (the equivalent of React Native's CameraRoll saveToCameraRoll().įlutter camera recommends using path_provider to get application directories, but it doesn't seem to have an option to get the camera roll directory path. The first is to use a Pin It browser button to pin directly from the video pages on each respective network.
