desktop_window icon indicating copy to clipboard operation
desktop_window copied to clipboard

Add Android and iOS modules to allow compilation on mobile platforms

Open gibutm opened this issue 3 years ago • 1 comments

Presently the plugin only supports Desktop platforms (macos, linux and windows). When compiling a project that depends on desktop_window for mobile platform (android and ios), compilation will always fail as there are no modules set up for this plugin. I'm not sure if this plugin could have an overloaded usage for the mobile platform but a simple no-op implementation would be useful to allow consumption in projects that have a single codebase for mobile and desktop platforms.

What do you think? I am willing to raise a PR if that helps.

gibutm avatar Nov 17 '20 10:11 gibutm

A solution to this is to wrap all of the references to this package in the conditon below:

import
if (kIsWeb
      ? false
      : Platform.isWindows || Platform.isLinux || Platform.isMacOS) {
}

Robert3141 avatar Apr 14 '21 14:04 Robert3141