简体   繁体   English

flutter 删除应用栏上的后退按钮

[英]flutter remove back button on appbar

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page.我想知道,当您使用Navigator.pushNamed到 go 到另一个页面时,是否有人知道如何删除 flutter 应用程序中appBar上显示的后退按钮。 The reason I do not want it on this resulting page is that it is coming from the navigation and I want users to use the logout button instead, so that the session starts over.我不希望它出现在这个结果页面上的原因是它来自导航,我希望用户使用logout按钮,以便 session 重新开始。

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page.我想知道,当您使用Navigator.pushNamed转到另一个页面时,是否有人知道删除显示在颤振应用程序中的appBar上的后退按钮的方法。 The reason I do not want it on this resulting page is that it is coming from the navigation and I want users to use the logout button instead, so that the session starts over.我不想在这个结果页面上显示它的原因是它来自导航,我希望用户改用logout按钮,以便会话重新开始。

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page.我想知道,当您使用Navigator.pushNamed转到另一个页面时,是否有人知道删除显示在颤振应用程序中的appBar上的后退按钮的方法。 The reason I do not want it on this resulting page is that it is coming from the navigation and I want users to use the logout button instead, so that the session starts over.我不想在这个结果页面上显示它的原因是它来自导航,我希望用户改用logout按钮,以便会话重新开始。

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page.我想知道,当您使用Navigator.pushNamed转到另一个页面时,是否有人知道删除显示在颤振应用程序中的appBar上的后退按钮的方法。 The reason I do not want it on this resulting page is that it is coming from the navigation and I want users to use the logout button instead, so that the session starts over.我不想在这个结果页面上显示它的原因是它来自导航,我希望用户改用logout按钮,以便会话重新开始。

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page.我想知道,当您使用Navigator.pushNamed转到另一个页面时,是否有人知道删除显示在颤振应用程序中的appBar上的后退按钮的方法。 The reason I do not want it on this resulting page is that it is coming from the navigation and I want users to use the logout button instead, so that the session starts over.我不想在这个结果页面上显示它的原因是它来自导航,我希望用户改用logout按钮,以便会话重新开始。

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page.我想知道,是否有人知道当您使用Navigator.pushNamed转到另一页时,如何删除显示在appBar中的appBar上的后退按钮的方法。 The reason I do not want it on this resulting page is that it is coming from the navigation and I want users to use the logout button instead, so that the session starts over.我在此结果页面上不想要它的原因是它来自导航,我希望用户改用logout按钮,以便会话重新开始。

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page.我想知道,当您使用Navigator.pushNamed转到另一个页面时,是否有人知道删除显示在颤振应用程序中的appBar上的后退按钮的方法。 The reason I do not want it on this resulting page is that it is coming from the navigation and I want users to use the logout button instead, so that the session starts over.我不想在这个结果页面上显示它的原因是它来自导航,我希望用户改用logout按钮,以便会话重新开始。

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page.我想知道,当您使用Navigator.pushNamed转到另一个页面时,是否有人知道删除显示在颤振应用程序中的appBar上的后退按钮的方法。 The reason I do not want it on this resulting page is that it is coming from the navigation and I want users to use the logout button instead, so that the session starts over.我不想在这个结果页面上显示它的原因是它来自导航,我希望用户改用logout按钮,以便会话重新开始。

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page.我想知道,当您使用Navigator.pushNamed转到另一个页面时,是否有人知道删除显示在颤振应用程序中的appBar上的后退按钮的方法。 The reason I do not want it on this resulting page is that it is coming from the navigation and I want users to use the logout button instead, so that the session starts over.我不想在这个结果页面上显示它的原因是它来自导航,我希望用户改用logout按钮,以便会话重新开始。

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page.我想知道,当您使用Navigator.pushNamed转到另一个页面时,是否有人知道删除显示在颤振应用程序中的appBar上的后退按钮的方法。 The reason I do not want it on this resulting page is that it is coming from the navigation and I want users to use the logout button instead, so that the session starts over.我不想在这个结果页面上显示它的原因是它来自导航,我希望用户改用logout按钮,以便会话重新开始。

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page.我想知道,当您使用Navigator.pushNamed转到另一个页面时,是否有人知道删除显示在颤振应用程序中的appBar上的后退按钮的方法。 The reason I do not want it on this resulting page is that it is coming from the navigation and I want users to use the logout button instead, so that the session starts over.我不想在这个结果页面上显示它的原因是它来自导航,我希望用户改用logout按钮,以便会话重新开始。

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page.我想知道,当您使用Navigator.pushNamed转到另一个页面时,是否有人知道删除显示在颤振应用程序中的appBar上的后退按钮的方法。 The reason I do not want it on this resulting page is that it is coming from the navigation and I want users to use the logout button instead, so that the session starts over.我不想在这个结果页面上显示它的原因是它来自导航,我希望用户改用logout按钮,以便会话重新开始。

just use automaticallyImplyLeading in AppBar()只需在 AppBar() 中使用 automaticImplyLeading

appBar: AppBaar(
  automaticallyImplyLeading: false,
)

When you use Navigator.pushNamed the back-arrow appears automatically on the new screen's appBar for going back to the previous screen.当您使用Navigator.pushNamed时,后退箭头会自动出现在新屏幕的 appBar 上,以便返回到前一个屏幕。 If you don't want this functionality all you have to do is write automaticallyImplyLeading: false in your appBar properties.如果您不想要此功能,您只需在 appBar 属性中编写automaticallyImplyLeading: false即可。

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page.我想知道,当您使用Navigator.pushNamed转到另一个页面时,是否有人知道删除显示在颤振应用程序中的appBar上的后退按钮的方法。 The reason I do not want it on this resulting page is that it is coming from the navigation and I want users to use the logout button instead, so that the session starts over.我不想在这个结果页面上显示它的原因是它来自导航,我希望用户改用logout按钮,以便会话重新开始。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM