This is just an implementation package of the plugin gal for Linux
The support for opening the gallery, requesting permission and check if we have access to the gallery is limited on Linux
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 might want to execute (optional):
if (defaultTargetPlatform == TargetPlatform.linux && !kIsWeb) {
GalPluginLinux.registerWith();
}
Before using any gal
function