Flutter-显示抽屉按钮,而不是后退按钮 [英] Flutter - Drawer button shown instead of back button

查看:243
本文介绍了Flutter-显示抽屉按钮,而不是后退按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为第一个项目,我正在迅速创建购物车。购物车的链接在Appbar内部。

I am creating a shopping cart in flutter as my first project. The link to the Cart is inside Appbar.

当我导航到购物车时,没有显示应用栏左上方的后退按钮,而是显示了抽屉按钮。

When I navigate to the Cart the back button on the top left of the Appbar is not showing, instead the drawer button is shown.

对于我浏览的其他页面(例如产品页面),则显示后退按钮。

For other pages that I navigate say, a product page, the back button is shown.

可能是问题所在,请提出建议。

What could be the issue, please suggest.

推荐答案

我逐行比较购物车和购物车。dart有此违规行

I compare line by line and the cart.dart have this offending line

抽屉:appDrawer

drawer: appDrawer

似乎覆盖了后退按钮。

@ Viren V Varasadiya和@Harsha pulikollu感谢您调查我的问题。

@Viren V Varasadiya and @Harsha pulikollu thank you for your looking into my question.

这篇关于Flutter-显示抽屉按钮,而不是后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆