gal_linux 0.0.1-dev-1 gal_linux: ^0.0.1-dev-1 copied to clipboard
Flutter Plugin for Saving Image/Video to the Photo Gallery | How to Save Image/Video to the Photo Gallery in Flutter
Gal Linux #
Table of Contents #
About #
This is just an implementation package of the plugin gal for Linux
Features #
The support for opening the gallery, requesting permission and check if we have access to the gallery is limited on Linux
Usage #
The following command executables are required to use this plugin:
mkdir
mv
rm
xdg-open
wget
All of them should be already there in most Linux distros, wget might not in some cases so you need to manually install it using your package manager, example in Debian based distros:
sudo apt install wget
In most cases it should be already done
Import defaultTargetPlatform
and kIsWeb
from library flutter/foundation
import 'package:flutter/foundation.dart' show defaultTargetPlatform, kIsWeb;
You needs to execute:
if (defaultTargetPlatform == TargetPlatform.linux && !kIsWeb) {
GalPluginLinux.registerWith();
}
Before using any gal
function