v0.0.2+1
cr_file_saver
Android 및 IOS 장치에 파일을 저장할 수 있으며 필요 시 권한을 요청할 수 있습니다.
34좋아요 830일 다운로드150Pub 점수
AndroidiOS
Cleveroad/cr_file_saver open-source repository details.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
...
cr_file_saver: ^0.0.2
If you are using android 9 and below add this permission to project manifest:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Add permissions in ios folder, go to ios/Runner/info.plist and add next keys:
<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>
<key>UIFileSharingEnabled</key>
<true/>
In your dart file add the following import:
import 'package:cr_file_saver/cr_file_saver.dart';
CRFileSaver has several static methods to work with:
requestWriteExternalStoragePermission to check for permission and ask it if needed.saveFile simply saving file with provided file path and desired file name.saveFileWithDialog save file through standard file saving dialog. Note that this method will throw NoResolvedActivityException if Android device has 30 api or higher의존성 목록 5 개
{"sdk":"flutter"}^2.1.2{"sdk":"flutter"}^2.0.1^3.2.6사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗