草庐IT

five9_calls

全部标签

dart - Flutter Sqflite 错误说 The method 'query' was called on null

我正在尝试从网络中获取一些数据并将其存储在sqlite数据库中。以下是模型类classStudentModel{intstatus;Stringmsg;StudentModelDatastudentModelData;StudentModel({this.status,this.msg,this.studentModelData});StudentModel.fromJson(Mapjson){status=json['status'];msg=json['msg'];studentModelData=json['data']!=null?newStudentModelData.fro

flutter - 如何修复 : "The method ' cast' was called on null"during transaction. 更新

我在尝试对我的Firestore集合执行事务更新时收到NoSuchMethodError。Receiver:nullTriedcalling:cast()#0Object.noSuchMethod(dart:core/runtime/libobject_patch.dart:50:5)#1MethodChannel.invokeMapMethod(package:flutter/src/services/platform_channel.dart:331:19)#2Firestore.runTransaction(file:///Users/wready/dev_tools/flutt

flutter - 错误 : The getter 'length' was called on null

错误说:NoSuchMethodError:在null上调用了setter/getter“长度”这是一个基本的flutter音乐播放器应用。主.dartimport'package:flute_music_player/flute_music_player.dart';voidmain()=>runApp(MyApp());classMyAppextendsStatefulWidget{@override_MyAppStatecreateState()=>_MyAppState();}class_MyAppStateextendsState{List_songs;@overridevo

dart - 我尝试使用 TextField 的 Controller ,但我收到错误 "NoSuchMethodError: The method ' 调用' was called on null"

我尝试使用TextField的Controller,但我收到错误"NoSuchMethodError:Themethod'call'wascalledonnull"如果我使用onChange()就可以了。我的代码:class_MyHomePageStateextendsState{Icon_searchIcon=Icon(Icons.search,color:Colors.white);int_searchIconState=0;Widget_appBarTitle;TextEditingController_controller=TextEditingController();_on

android - 错误 : E/flutter ( 8247): NoSuchMethodError: The getter 'length' was called on null

每当我运行我的Flutter应用程序时,我都会收到此错误:E/flutter(8247):NoSuchMethodError:在null上调用方法'add'。class_HomePageStateextendsState{ListresponseJson;ListEventDetails;FuturefetchPost()async{finalresponse=awaithttp.get("https://....",headers:{HttpHeaders.AUTHORIZATION:"Bearer.."});for(vari=0;i有什么解决办法吗? 最

flutter 页面浏览量 : swiping backward calls build method on widgets in unexpected ways

考虑这个简单的代码片段,这是我为重现我的问题而编写的片段。它只是一个带有3个有状态小部件的页面View。(它是独立的,您可以复制粘贴并运行它):import'package:flutter/material.dart';voidmain()=>runApp(newTestInherited());classTestInheritedextendsStatelessWidget{@overrideWidgetbuild(BuildContextcontext){returnnewMaterialApp(title:'Pageviewtest',home:PageView(children

android - NoSuchMethodError : The method 'map' was called on null. flutter

我正在尝试将响应传递给arraylist的网格值。//ToparsethisJSONdata,do////finalimageModel=imageModelFromJson(jsonString);import'dart:convert';ImageModelimageModelFromJson(Stringstr){finaljsonData=json.decode(str);returnImageModel.fromJson(jsonData);}StringimageModelToJson(ImageModeldata){finaldyn=data.toJson();retur

flutter - NoSuchMethodError : The getter 'length' was called on null 错误

所以目前我正在使用Flutter构建应用程序,这对我来说仍然是新的,而且我一直停留在那个标题中的那个异常(exception)。问题是当我尝试在ListView.builder中调用“widget.usernames.length”时,如果它为null它将返回该异常,并且在有数据时没有异常。我想要完成的是getLength函数应该返回null或0值,以便ListView在没有数据时不显示任何内容。returnnewExpanded(child:ListView.builder(padding:newEdgeInsets.all(8.0),itemExtent:20.0,itemCoun

c# - SQLite 异常 : "no such function: BigCount" when using "count" calling OData service with EntityFramework provider

我在SQLite数据库上使用EF5(使用System.Data.SQLite1.0.90.0)。实体通过OData服务公开publicsealedclassMyService:DataService例如,当我从我的应用程序内部查询我的实体时,它工作正常using(varents=newMyEntities){varcount=ents.SomeEntity.Select(ent=>ent).Count();}当我像这样从浏览器发送请求时http://localhost:8737/MyService/SomeEntity它也工作正常,它返回我的实体列表。但是当我创建以下请求时http:/

sqlite - “Library Routine Called Out Of Sequence” sqlite3_prepare_v2(创建表)

你知道当我调用sqlite3_prepare_v2(CREATETABLE)时为什么会出现“库例程调用顺序错误”吗?在空数据库上?我创建了一个空数据库,然后打开它。后来我将所有必须写入数据库的信息保存在RAM中(我需要将该信息保存在RAM中并在执行结束时将其刷新到永久存储器),但是当我调用sqlite3_prepare_v2(CREATETABLE)时收到此错误消息.它返回“库例程调用顺序错误”作为错误消息。我确实正确地打开了我的数据库并且(我认为这可能是一个问题所以我做了close()我的数据库然后open()就在调用sqlite3_prepare_v2(CREATETABLE)之前