我是Flutter的新手。我在构造函数中调用future方法时遇到了问题。我创建了一个方法,它返回一个依赖于所选项目的小部件类。但是我看到错误"type ' Future‘is not a subtype of type 'Widget'“如果我添加了void类型而不是Future类型,它将被执行一次来创建一个主体。return DataB(); if (selectedVa
我正在尝试导航到相机屏幕,当我触发导航时,我收到错误消息 Another exception was thrown: type 'Future<dynamic>' is not a subtype of该错误指向我所在的上一个页面的导航。<_ModalScopeState<dynamic>>#0c8ee]
The widget which was currently being built when the offending call<<em
此弹出将发生在数据库中的特定数据更改之后。后来,我想为我的项目添加第二个弹出窗口,作为第二个数据库值,区别是这个窗口有一个用于用户输入的文本字段,还有一个用于这个值的控制器。type 'Future<dynamic>' is not a subtype of type 'Widget'
带有红色/黄色错误背景的错误。这两个弹出窗口的区别就像我说的,其中一个