我正试着让一个领航员来处理我的图标。我把我所有的图标都列在一个列中,它在我所有的屏幕上都存在,当我点击菜单左边的一个图标时,我希望能够转到不同的屏幕。右下角的图标已经被禁用,我只是用这些图标来引用第一页和第二页。
我已经在MyApp小部件中设置了一个导航器,它有到两个名为第一页和第二页的测试页面的路由,尽管当我单击图标并尝试路由到另一个页面时,我会得到以下错误:
The following assertion was thrown while handling a gesture:
Navigator operation requested with a context that d
我想从另一个类文件中调用Dialog函数.
文件1:-
import 'package:eg/eg/dialog_file.dart'
floatingActionButton: FloatingActionButton(
onPressed: () {
// This is where I want to call the function
},
backgroundColor: Colors.black,
child: Container(