[英]The argument type 'JsObject' can't be assigned to the parameter type 'BuildContext
[英]The argument type 'JsObject' can't be assigned to the parameter type 'BuildContext'.dart
看起來您錯誤地導入了dart:js
模塊。 如果是這樣,只需將其刪除:
import 'dart:js'; // <- Remove this import
dart:js
模塊導出一個JsObject
類型的全局context
,其類型與BuildContext
類型沖突。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.