/gal-linux

A implementation of Linux for Flutter Gal Plugin

Primary LanguageC++MIT LicenseMIT

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:

  1. mkdir
  2. mv
  3. rm
  4. xdg-open
  5. 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