leanflutter/launch_at_startup

flutter build web error

sleepreading opened this issue · 2 comments

Error: Only JS interop members may be 'external'.
  external int wBitsPerSample;
....
....
/D:/tmp/.pub/cache/hosted/pub.flutter-io.cn/win32-2.3.1/lib/src/combase.dart:24:37:
Error: Only JS interop members may be 'external'.
  external Pointer<Pointer<IntPtr>> lpVtbl;
                                    ^
Error: Compilation failed.

import launch_at_startup, but not used

Future launchStartup() async {
    if (!isDesktop) {
      return;
    }
    // launch at startup
    LaunchAtStartup.instance.setup(
      appName: packageInfo.appName,
      appPath: Platform.resolvedExecutable, // import 'dart:io';
    );

    isLaunchAtStartup = await LaunchAtStartup.instance.isEnabled();
  }

Fixed, please upgrade to v0.1.2