在我的颤振应用程序中,我有一个home_screen.dart,其中有一个Scaffold,里面有一个带有容器的子ListView。我已经在一个单独的文件中创建了一个底部栏,我想将它添加到home_screen页面并在那里修复它,但是我得到了以下错误:
I/flutter (25157): RenderRepaintBoundary object was given an infinite size during layout.
I/flutter (25157): This probably means that it is a render object that tries to be
我对包裹的孩子们的影子有个问题。
我已经设法快速地重建了它。
显然,滚动越多,底部的阴影就会消失,并开始出现在每个项目的顶部,产生一种有点奇怪的效果。
子项的阴影如何保持在正确的位置?
在列表的底部,我添加了几个按钮(但总是在Wrap之外),阴影投射正确。
编辑:我添加了示例代码来重新创建错误
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(B
我在我的应用程序中有一个项目的ListView,该列表中的每个项目都包装在一个可忽略的小部件中,以便允许swipe删除功能。我也有一个FloatingActionButton,按一下就会导航到一个新页面。所有涉及滑动解除的功能都工作得很好,但如果我在解除一个项目后按下浮动的操作按钮,就会抛出一个异常,并显示以下消息: I/flutter (23062): A dismissed Dismissible widget is still part of the tree.
I/flutter (23062): Make sure to implement the onDismissed hand
这个问题只有在我添加了值以显示下拉按钮中的选项后才会出现。The image showed red screen instead of the app which said something about value should'nt be null 代码是 import 'package:flutter/material.dart';
class MyHomePage extends StatefulWidget {
@override
_MyHomePageState createState() => _MyHomePageState();
}
cla
当我试图在行中添加一个listview.builder时,会出现一个异常
我的代码:
return new Scaffold(
appBar: new AppBar(
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: new Text(widget.title),
),
body: Row(children: <Widget
代码很简单--我有一个容器,在它上面堆放了不同的小部件,其中两个是搜索栏和一个平面按钮,这个平面按钮被用来提高底部的工作表,并且每当底部的工作表被抬高时,搜索条就变得不可见了。搜索栏放置在平面按钮下面。但是,每当我按下平按钮,就会引发异常。我试着重新加载这个应用程序,但是没有用。
下面是错误日志:
The following _CompileTimeError was thrown while handling a gesture:
Unimplemented handling of missing static target
When the exception was thrown, t
我有一个简单的颤振应用程序,它只显示了ListTiles of a ListView.此listView的子属性设置为一个名为“tiles”的列表.每当用户按下浮动动作按钮,然后一个新的ListTiles对象被添加到"tiles“中,这个对象被包装在set状态.中,所以我希望UI能够更新并向我展示新更新的listView和更多的ListTiles.,但这不会发生.
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends Statele