【发布时间】:2019-10-03 20:21:11
【问题描述】:
我想移除抽屉上的后退按钮
Drawer(
child: ListView(
padding: EdgeInsets.zero,
children: <Widget>[
ListTile(
leading: Icon(Icons.home),
title: Text ('Home'),
onTap: () {
Navigator.pop(context);
Navigator.push(context,
MaterialPageRoute(builder: (context) => HomePage(auth: widget.auth,userId: widget.userId,onSignedOut: this.widget.onSignedOut,)));
},
),
ListTile(
leading: Icon(Icons.exit_to_app),
title: Text('Log Out'),
onTap: () {
_signOut();
// Navigator.pop(context);
Navigator.of(context).pushReplacement(
new MaterialPageRoute(builder: (context) =>RootPage(auth: new Auth())
));
},
),
],
),
);
我想返回我的登录页面,但没有应用栏上的后退按钮
【问题讨论】:
标签: flutter