我对flutter还是个新手。当我运行代码时,我发现屏幕不能从一个页面切换到另一个页面。我想我遗漏了或者打错了什么。出现错误,如下所示。Make sure your root app widget has provided a way to generate 2.:flutter/src/widgets
我在构建navigationDrawer时遇到了错误,tootlip小部件需要materialApp作为祖先。I/flutter ( 5780): The most common way to add an Overlay to an application is to include a MaterialAppI/flutter ( 5780):
I/flutter ( 5780): The relevant error-causing widget w
我试图在一行中设置一个字符串,但字符串的长度是可变的,即数据是从API获取的。然后在行中设置它,但目前,由于长度较大,它显示为A RenderFlex overflowed by 48 pixels on the right.所以,请帮助解决这个renderflex溢出的问题。void confirmpayment(double amount, String description) {
final itemsSubmit = <Widget>