草庐IT

name-length

全部标签

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

android - Flutter - getter 'length' 在 null 上被调用

我正在尝试开发一个flutter应用程序。这种flutter正在为纸牌游戏创建团队。创建团队后,可以通过统计积分,不用考虑每个人有多少积分。但是我遇到了一个异常,我知道异常在哪里以及它意味着什么,但我不知道如何解决这个问题。我希望你们中的一些人能帮助我。这是抛出错误的代码:import'package:flutter/material.dart';classPunktezaehlerextendsStatefulWidget{finalListspieler_namen;Punktezaehler(this.spieler_namen);@overrideStatecreateStat

android - Flutter - getter 'length' 在 null 上被调用

我正在尝试开发一个flutter应用程序。这种flutter正在为纸牌游戏创建团队。创建团队后,可以通过统计积分,不用考虑每个人有多少积分。但是我遇到了一个异常,我知道异常在哪里以及它意味着什么,但我不知道如何解决这个问题。我希望你们中的一些人能帮助我。这是抛出错误的代码:import'package:flutter/material.dart';classPunktezaehlerextendsStatefulWidget{finalListspieler_namen;Punktezaehler(this.spieler_namen);@overrideStatecreateStat

使用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