草庐IT

dart - 我无法添加 Text(installedApps[index] ["app_name"]) 因为 'index' 未定义。我怎样才能添加这个文本?

我正在构建一个flutter应用程序。我已经构建了一个带有构造函数的类。我制作了构造函数,因此我可以自定义我的ListTile像这样:classAppListextendsStatefulWidget{@overrideAppListStatecreateState()=>AppListState();AppList({Keykey,this.child}):super(key:key);finalWidgetchild;}classAppListStateextendsState{Widgetchild;List>_installedApps;@overridevoidinitSta

dart - 我无法添加 Text(installedApps[index] ["app_name"]) 因为 'index' 未定义。我怎样才能添加这个文本?

我正在构建一个flutter应用程序。我已经构建了一个带有构造函数的类。我制作了构造函数,因此我可以自定义我的ListTile像这样:classAppListextendsStatefulWidget{@overrideAppListStatecreateState()=>AppListState();AppList({Keykey,this.child}):super(key:key);finalWidgetchild;}classAppListStateextendsState{Widgetchild;List>_installedApps;@overridevoidinitSta

mobile - Flutter 无法更改路由,因为 undefined name context with PopupMenuButton 如何解决?

我想单击一个项目菜单(PopupMenuItem)并使用Navigator.push转到另一条路线,但方法内未定义上下文。import'package:flutter/material.dart';voidmain()=>runApp(newMyApp());classMyAppextendsStatelessWidget{finalListchoices=const[constChoice(title:'Settings',icon:Icons.settings),constChoice(title:'Logout',icon:Icons.exit_to_app),];@overri

mobile - Flutter 无法更改路由,因为 undefined name context with PopupMenuButton 如何解决?

我想单击一个项目菜单(PopupMenuItem)并使用Navigator.push转到另一条路线,但方法内未定义上下文。import'package:flutter/material.dart';voidmain()=>runApp(newMyApp());classMyAppextendsStatelessWidget{finalListchoices=const[constChoice(title:'Settings',icon:Icons.settings),constChoice(title:'Logout',icon:Icons.exit_to_app),];@overri

sql Server 无法连接的问题[08001] [Microsoft][SQL Server Native Client 10.0]Named Pipes Provider: Could not

问题描述[08001][Microsoft][SQLServerNativeClient10.0]NamedPipesProvider:CouldnotopenaconnectiontoSQLServer[2].(2)[HYTO0][Microsoft][SQLServerNativeClient10.0]Logintimeoutexpired(0)[01S00][Microsoft][SQLServerNativeClient10.0]Invalidconnectionstringattribute(0)[08001][Microsoft][SQLServerNativeClient10.0

使用TensorboardX时报错ModuleNotFoundError: No module named ‘tensorboardX‘及解决

报错:解决:(1)首先打开ctrl+R打开终端,输入cmd,回车,输入python,会显示你安装的python是什么版本的,首先测试一下有没有安装tensorboard,输入importtensorboard,出现ModuleNotFoundError:Nomodulenamed‘tensorboard’这种情况是没有安装好的(2)输入exit()或quit()退出python命令行,输入pipinstalltb-nightly命令行,回车,会自动下载pygame安装包(3)在终端输入python进入之后,输入importtensorboard检测是否安装成功,如下图所示:没有报错,说明安装成

flutter - Firebase 身份验证错误 : Undefined name 'auth'

我想通过使用每个用户的UID来访问我的firestore数据库,如下所示:returnnewStreamBuilder(stream:Firestore.instance.collection('users').document(uid).snapshots(),builder:(context,snapshot){if(!snapshot.hasData){returnnewText("Loading");}varuserDocument=snapshot.data;获取UID:finalFirebaseUseruser=auth.currentUser().then((Fireba

flutter - Firebase 身份验证错误 : Undefined name 'auth'

我想通过使用每个用户的UID来访问我的firestore数据库,如下所示:returnnewStreamBuilder(stream:Firestore.instance.collection('users').document(uid).snapshots(),builder:(context,snapshot){if(!snapshot.hasData){returnnewText("Loading");}varuserDocument=snapshot.data;获取UID:finalFirebaseUseruser=auth.currentUser().then((Fireba

ModuleNotFoundError: No module named ‘cuda‘、‘tensorrt‘

1、ModuleNotFoundError:Nomodulenamed‘cuda’python-mpipinstall--upgradepippipinstallcuda-python2、ModuleNotFoundError:Nomodulenamed‘tensorrt’2.1依赖库先安装两个TensorRT的依赖库python-mpipinstall--upgradepippipinstallnvidia-pyindexpipinstallonnx-graphsurgeon2.2下载TensorRT及CUDA版本环境对应点我进入TensorRT官方下载地址,win下载后得到zip文件Ten

Python报错ModuleNotFoundError: No module named ‘psutil‘

python运行时,因为代码里引入了某些组件库,但是本地没有,便会报错ModuleNotFoundError:Nomodulenamed'XXX',如下图:此图是没有导入psutil库。解决:在python安装目录下的Scripts目录下进入cmd黑窗口,运行命令pipinstallpsutil安装。如果是内网连通公网仓库不方便,则通过如下命令指定内网的镜像源:pipinstall--index-urlhttp://mirrors.pic.com.cn/pypi/web/simple/--trusted-hostmirrors.pic.com.cn--userpsutil或者:pipinsta