草庐IT

storage_type

全部标签

json - 发生异常 : type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>' in type cast

您好,我正在学习flutter并从api获取json,但是在我的模型中对其进行解码时,出现下面列出的错误。我知道这与我的分页有关,因为定位结果很好,但无法弄清楚我需要做什么来修复分页结果。我尝试了很多教程,但没有运气。谁能指出我正确的方向以解决此问题?提前致谢错误Exceptionoccured:type'_InternalLinkedHashMap'isnotasubtypeoftype'List'intypecast*location.dartclassLocations{finalStringid;finalStringname;finalStringstreet;finalSt

json - 发生异常 : type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>' in type cast

您好,我正在学习flutter并从api获取json,但是在我的模型中对其进行解码时,出现下面列出的错误。我知道这与我的分页有关,因为定位结果很好,但无法弄清楚我需要做什么来修复分页结果。我尝试了很多教程,但没有运气。谁能指出我正确的方向以解决此问题?提前致谢错误Exceptionoccured:type'_InternalLinkedHashMap'isnotasubtypeoftype'List'intypecast*location.dartclassLocations{finalStringid;finalStringname;finalStringstreet;finalSt

firebase - flutter 错误 : type 'Future<dynamic>' is not a subtype of type 'List<Game>'

我正在尝试构建一个包含不同游戏列表的应用。作为后端,我使用Firebase并且连接工作正常,我对其进行了测试。无论如何,我在用来自firebase的真实数据替换模拟数据时遇到了问题。我总是收到此错误:type'Future'isnotasubtypeoftype'List'我有以下功能:getGames()async{ListnewGamesList=[];QuerySnapshotresult=awaitFirestore.instance.collection('products').getDocuments();Listdocuments=result.documents;doc

firebase - flutter 错误 : type 'Future<dynamic>' is not a subtype of type 'List<Game>'

我正在尝试构建一个包含不同游戏列表的应用。作为后端,我使用Firebase并且连接工作正常,我对其进行了测试。无论如何,我在用来自firebase的真实数据替换模拟数据时遇到了问题。我总是收到此错误:type'Future'isnotasubtypeoftype'List'我有以下功能:getGames()async{ListnewGamesList=[];QuerySnapshotresult=awaitFirestore.instance.collection('products').getDocuments();Listdocuments=result.documents;doc

flutter - flutter_secure_storage 可以存储多少数据?

flutter_secure_storage可以存储多少数据?https://pub.dev/packages/flutter_secure_storage#-readme-tab-是否可以在flutter_secure_storage中存储10mb的数据? 最佳答案 flutter_secure_storage将数据存储在共享偏好中,但在android中进行了加密,因此它可以存储共享偏好可以存储的数据 关于flutter-flutter_secure_storage可以存储多少数据?,

flutter - flutter_secure_storage 可以存储多少数据?

flutter_secure_storage可以存储多少数据?https://pub.dev/packages/flutter_secure_storage#-readme-tab-是否可以在flutter_secure_storage中存储10mb的数据? 最佳答案 flutter_secure_storage将数据存储在共享偏好中,但在android中进行了加密,因此它可以存储共享偏好可以存储的数据 关于flutter-flutter_secure_storage可以存储多少数据?,

flutter - 未处理的异常 : type 'Future<void>' is not a subtype of type 'Future<Photography>' on Firestore

我需要从firestore数据库中获取所有数据。我是这样走的,https://stackoverflow.com/a/55865045/9139407FuturegetPhotography(){Futuredata=awaitdb.collection('photography').document('0yUc5QBGHNNq6WK9CyyF').setData(jsonDecode(jsonEncode(Photography([AllImages(["list"])],"image_url","Shanika","image_url","lovelycouple","Bhanuk

flutter - 未处理的异常 : type 'Future<void>' is not a subtype of type 'Future<Photography>' on Firestore

我需要从firestore数据库中获取所有数据。我是这样走的,https://stackoverflow.com/a/55865045/9139407FuturegetPhotography(){Futuredata=awaitdb.collection('photography').document('0yUc5QBGHNNq6WK9CyyF').setData(jsonDecode(jsonEncode(Photography([AllImages(["list"])],"image_url","Shanika","image_url","lovelycouple","Bhanuk

flutter - 如何解决 List<dynamic> is not a subtype of type 'Map<String, dynamic>?

错误说它无法创建ApplicableFlightFlightSegmentReference有问题Listdynamicisnotasubtypeoftype'MapString,dynamic这是使用json.decode和fromJson的地方varmap=json.decode(response.body)asMap;ResponseGateresponseGate=newResponseGate.fromJson(map);这是json.decode的输出片段..,ApplicableFlight:{FlightReferences:F1,FlightSegmentRefere

flutter - 如何解决 List<dynamic> is not a subtype of type 'Map<String, dynamic>?

错误说它无法创建ApplicableFlightFlightSegmentReference有问题Listdynamicisnotasubtypeoftype'MapString,dynamic这是使用json.decode和fromJson的地方varmap=json.decode(response.body)asMap;ResponseGateresponseGate=newResponseGate.fromJson(map);这是json.decode的输出片段..,ApplicableFlight:{FlightReferences:F1,FlightSegmentRefere