alexmercerind / dart_vlc

Flutter bindings to libVLC.
GNU Lesser General Public License v2.1
513 stars 137 forks source link

ignore compile for unsupported platform #346

Open Nightwelf opened 1 year ago

Nightwelf commented 1 year ago

how i can ignore compile lib for web?

i check platform in my dart code and for Linux all ok. but for web see this:

Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
../../.pub-cache/hosted/pub.dartlang.org/dart_vlc_ffi-0.2.0+1/lib/src/internal/ffi.dart:1:8: Error: Not found: 'dart:ffi'
import 'dart:ffi';
       ^
../../.pub-cache/hosted/pub.dartlang.org/dart_vlc_ffi-0.2.0+1/lib/src/internal/dynamiclibrary.dart:1:8: Error: Not found: 'dart:ffi'
import 'dart:ffi';
       ^
../../.pub-cache/hosted/pub.dartlang.org/dart_vlc_ffi-0.2.0+1/lib/src/internal/typedefs/player.dart:1:8: Error: Not found: 'dart:ffi'
import 'dart:ffi';
       ^
../../.pub-cache/hosted/pub.dartlang.org/dart_vlc_ffi-0.2.0+1/lib/src/internal/typedefs/media.dart:1:8: Error: Not found: 'dart:ffi'
import 'dart:ffi';
       ^
Failed to compile application.