A Flutter Plugin to generate thumbnails from videos on Local Storage.
Android OS only
Depend on it #
thumbnails as a dependency in your pubspec.yaml file.
Update Android Permissions #
add the lines to AndroidManifest.xml
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
NOTE: for android versions >= 6.0 you need might to request Permission from user at runtime before calling this plugin. (There are available plugins that handles permissions on DartLang.)
Add import statement #
Import the library
String thumb = await Thumbnails.getThumbnail( thumbnailFolder:'[FOLDER PATH TO STORE THUMBNAILS]', // creates the specified path if it doesnt exist videoFile: '[VIDEO PATH HERE]', imageType: ThumbFormat.PNG, quality: 30); /* * thumbnailFolder property can be omitted if you dont wish to keep the generated thumbails past each usage */
1.0.1 - 2018-11-15 #
- Updated Plugin description to better explain it's usage
- Minor changes
1.0.0 - 2018-11-15 #
- Initial release
Demonstrates how to use the thumbnails plugin.
Getting Started #
For help getting started with Flutter, view our online documentation.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: thumbnails: ^1.0.1
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Dec 11, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.6.1
- pana: 0.13.1+4
- Flutter: 1.12.13+hotfix.2
Health issues and suggestions
Document public APIs. (-1 points)
14 out of 14 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.
Package is getting outdated. (-7.12 points)
The package was last published 55 weeks ago.