Skip to content

dimple3695/flutter-local-file-download

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

flutter-local-file-download

Save image and video files in download folder using flutter.

Working in Android SDK 29 & 30.

Dart 3.0 is compatible.

1. Android

If you are targeting Android 11 (targetSdkVersion 30) then you require the following permissions in AndroidManifest.xml for modifying and document access. Located in <project root>/android/app/src/main/AndroidManifest.xml

<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

For Android 10 add the following code line in AndroidManifest.xml application tag

android:requestLegacyExternalStorage="true"

2. iOS

Add in Info.plist file. Located in <project root>/ios/Runner/Info.plist

<key>UISupportsDocumentBrowser</key>
<true/>

2. Add a package for asking permission in pubspec.yaml

dio: ^5.1.2
permission_handler: ^10.2.0
path_provider: ^2.0.15

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 41.0%
  • CMake 33.4%
  • Dart 11.4%
  • Ruby 4.8%
  • Swift 3.3%
  • HTML 3.3%
  • Other 2.8%