草庐IT

non-scrolling

全部标签

scroll - FLUTTER 滚动多个小部件

如果我有两个(或更多)可滚动小部件(例如,SingleChildScrollView),如何让它们同时滚动?因为我会将它们堆叠在彼此之上,所以一个被另一个的Container覆盖。我是新手,所以我现在没有太多选择。我尝试了ScrollController但它不起作用。我不知道如何在我的代码中正确实现它。另外,如果可能的话,请附上一个简单的代码示例。这是我尝试过的:class_MyHomePageStateextendsState{finalScrollController_mycontroller=newScrollController();@overrideWidgetbuild(B

firebase - Flutter web : tried to call a non-function, 比如null : 'dart. global.firebase.storage

我正在使用适用于Web的Firebase插件并设法使用firestore和身份验证。现在,我正在尝试启用firebase存储,但是当我实例化Storage时出现此错误triedtocallanon-function,suchasnull:'dart.global.firebase.storage我使用的firestore和身份验证:import'package:firebase/firebase.dart'asfb;import'package:firebase/firestore.dart';fb.Auth_firebaseAuth=fb.auth();Firestore_fires

firebase - Flutter web : tried to call a non-function, 比如null : 'dart. global.firebase.storage

我正在使用适用于Web的Firebase插件并设法使用firestore和身份验证。现在,我正在尝试启用firebase存储,但是当我实例化Storage时出现此错误triedtocallanon-function,suchasnull:'dart.global.firebase.storage我使用的firestore和身份验证:import'package:firebase/firebase.dart'asfb;import'package:firebase/firestore.dart';fb.Auth_firebaseAuth=fb.auth();Firestore_fires

scroll - 调试帮助 : Flutter StatefulWidget doesn't maintain state(s) after scrolled out of view

我正在玩一个简单的应用程序来学习Flutter。这是UI的结构:app--MaterialApp--HomeScreen(有状态)|-ListView--PlaceWidget(有状态)|-ListTilePlaceWidget对象基本上构建并返回一个ListTile;它唯一的额外职责是跟踪favorited状态并相应地构建ListTile的UI。源代码是here,包括两个文件:main.dart用于整个应用,以及places.dart用于http请求这是应用程序的行为方式:https://gfycat.com/FineBelovedLeafhopper从表面上看,当滚动出View时,

scroll - 调试帮助 : Flutter StatefulWidget doesn't maintain state(s) after scrolled out of view

我正在玩一个简单的应用程序来学习Flutter。这是UI的结构:app--MaterialApp--HomeScreen(有状态)|-ListView--PlaceWidget(有状态)|-ListTilePlaceWidget对象基本上构建并返回一个ListTile;它唯一的额外职责是跟踪favorited状态并相应地构建ListTile的UI。源代码是here,包括两个文件:main.dart用于整个应用,以及places.dart用于http请求这是应用程序的行为方式:https://gfycat.com/FineBelovedLeafhopper从表面上看,当滚动出View时,

scroll - 如何在Flutter中滚动或跳转到PageView.builder或PageController的位置?

问题:使用PageController加载网页浏览量后无法滚动到POSITION*likeViewPagerscrolltospecificpageinAndroidWidget_buildCarousel(BuildContextcontext,intselectedIndex){PageControllercontroller=PageController(viewportFraction:1,keepPage:true);returnColumn(mainAxisSize:MainAxisSize.min,children:[SizedBox(//youmaywanttousea

scroll - 如何在Flutter中滚动或跳转到PageView.builder或PageController的位置?

问题:使用PageController加载网页浏览量后无法滚动到POSITION*likeViewPagerscrolltospecificpageinAndroidWidget_buildCarousel(BuildContextcontext,intselectedIndex){PageControllercontroller=PageController(viewportFraction:1,keepPage:true);returnColumn(mainAxisSize:MainAxisSize.min,children:[SizedBox(//youmaywanttousea

flutter - ScrollController.jumpTo() "ScrollController not attached to any scroll views"

我正在监听PageController以获取位置,然后将其与ListView同步。当操作PageView时,同时操作ListView。示例:https://github.com/Ramotion/cardslider-android但是,在v0.6.0之后,我收到一个断言错误,指出我的ScrollController未附加到任何View。每次有流事件触发.jumpTo()方法时都会触发。它仍然有效,但断言错误让我抓狂。[VERBOSE-2:shell.cc(181)]DartError:Unhandledexception:'package:flutter/src/widgets/sc

flutter - ScrollController.jumpTo() "ScrollController not attached to any scroll views"

我正在监听PageController以获取位置,然后将其与ListView同步。当操作PageView时,同时操作ListView。示例:https://github.com/Ramotion/cardslider-android但是,在v0.6.0之后,我收到一个断言错误,指出我的ScrollController未附加到任何View。每次有流事件触发.jumpTo()方法时都会触发。它仍然有效,但断言错误让我抓狂。[VERBOSE-2:shell.cc(181)]DartError:Unhandledexception:'package:flutter/src/widgets/sc

安装CCS软件:Your installer source path contains non-ASCLL characters which can corrupt the installation.

Yourinstallersourcepathcontainsnon-ASCLLcharacterswhichcancorrupttheinstallation.Pleasechangethepathbeforeinstalling.该错误提示翻译如下:您的安装程序源路径包含了非ASCII字符,这可能会破坏安装过程。请在安装之前更改路径。当安装软件出现以下错误时,翻译原因是:这个错误提示表示安装程序的源路径包含了非ASCII字符,这些字符可能会破坏安装过程,建议在安装前更改安装路径。ASCII字符是计算机中常用的字符编码,包括英文字母、数字和符号等。因此,这个错误提示可能是由于安装路径中包含了