flutter_media_scanner 0.0.5 copy "flutter_media_scanner: ^0.0.5" to clipboard
flutter_media_scanner: ^0.0.5 copied to clipboard

outdated

Refresh the filesystem after writing a file to Android Gallery

flutter_media_scanner #

Use this plugin to refresh the filesystem after writing a file

Example #

Scaffold(
appBar: AppBar(
title: const Text('FlutterMediaScanner example'),
),
body: Center(
child: OutlineButton(
onPressed: () async {
File originalFile = File("original path");
List<int> bytes = await originalFile.readAsBytes();
//save your file to your desired path
File file = File("path");
await file.writeAsBytes(bytes);
//refresh the file system so the file can show there,
FlutterMediaScanner.scan(file.path);
},
child: const Text("Save & refresh!"),
),
),
)
1
likes
0
pub points
18%
popularity

Publisher

unverified uploader

Refresh the filesystem after writing a file to Android Gallery

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_media_scanner