0

Originally I can run the flutter code in AS, but suddenly can't. I didn't modify a code in ffi.dart file... I wanna run the code using Chrome(Web)

Launching lib\main.dart on Chrome in debug mode... Waiting for connection from debug service on Chrome... lib/main.dart:1:8: Error: Dart library 'dart:ffi' is not available on this platform. import 'dart:ffi'; ^ Context: The unavailable library 'dart:ffi' is imported through these packages:

web_entrypoint.dart => package:contact => dart:ffi

Detailed import paths for (some of) the these imports:

web_entrypoint.dart => package:contact/main.dart => dart:ffi

Failed to compile application.

upgraded flutter, dart through CMD

1 Answers1

0

Try to find file in your project that import dart:ffi

import 'dart:ffi';

and delete that import line, here is the relevant error: Error: Not found: 'dart:ffi' with flutter web