Flutter 抖动抽屉,拉动抽屉后显示应用程序栏箭头

Flutter 抖动抽屉,拉动抽屉后显示应用程序栏箭头,flutter,dart,navigation,drawer,appbar,Flutter,Dart,Navigation,Drawer,Appbar,我使用endDrawer将drawer添加到项目中,以便将其放置在右侧。当我拉动抽屉时,应用程序栏箭头显示并向右推其他应用程序栏内容 已经搜索了一些线程。我使用Navigator.pushReplacement(…)到达仪表板。我也试着将仪表板作为主页,因为我认为这是一个导航功能,但没有用 ! endDrawer:Drawer( 子:ListView( 填充:EdgeInsets.zero, 儿童:[ 容器( 身高:300, 儿童:抽屉阅读器( 子:列( mainAxisAlignment:ma

我使用endDrawer将drawer添加到项目中,以便将其放置在右侧。当我拉动抽屉时,应用程序栏箭头显示并向右推其他应用程序栏内容

已经搜索了一些线程。我使用Navigator.pushReplacement(…)到达仪表板。我也试着将仪表板作为主页,因为我认为这是一个导航功能,但没有用 !

endDrawer:Drawer(
子:ListView(
填充:EdgeInsets.zero,
儿童:[
容器(
身高:300,
儿童:抽屉阅读器(
子:列(
mainAxisAlignment:mainAxisAlignment.center,
crossAxisAlignment:crossAxisAlignment.center,
儿童:[
填充物(
填充:常数边集全部(8.0),
子:Image.asset(
“assets/avatar.png”,
宽度:90,
),
),
填充物(
填充:常数边集全部(5.0),
子项:文本(“示例名称”,
样式:TextStyle(
尺寸:20,
fontWeight:fontWeight.bold,
颜色:颜色。白色),
),
文本(“sample@mail.com",
样式:TextStyle(字体大小:16,颜色:Colors.white)),
//正文()
],
),
装饰:盒子装饰(
颜色:Colors.blueAccent,
),
),
),
列表砖(
前导:图标(Icons.info),
标题:文本(“关于”),
onTap:(){
//更新应用程序的状态
// ...
//然后关上抽屉
Navigator.pop(上下文);
},
),
列表砖(
前导:图标(Icons.lock),
标题:文本(“隐私政策”),
onTap:(){
//更新应用程序的状态
// ...
//然后关上抽屉
Navigator.pop(上下文);
},
),
],
),
),

我需要删除应用程序栏上显示的箭头

您的代码格式错误,请调整以便我们提供帮助。并提供一个有助于我们了解问题的情况的图像。感谢将appbar中的
自动嵌入
设置为
false
,修复了我的问题anmol.majhail。非常感谢您的代码格式错误,请调整以便我们提供帮助。并提供一个有助于我们了解问题的情况的图像。感谢将appbar中的
自动嵌入
设置为
false
,修复了我的问题anmol.majhail。非常感谢你
endDrawer: Drawer(
        child: ListView(
          padding: EdgeInsets.zero,
          children: <Widget>[
            Container(
              height: 300,
              child: DrawerHeader(
                child: Column(
                  mainAxisAlignment: MainAxisAlignment.center,
                  crossAxisAlignment: CrossAxisAlignment.center,
                  children: <Widget>[
                    Padding(
                      padding: const EdgeInsets.all(8.0),
                      child: Image.asset(
                        "assets/avatar.png",
                        width: 90,
                      ),
                    ),
                    Padding(
                      padding: const EdgeInsets.all(5.0),
                      child: Text("Sample Name",
                          style: TextStyle(
                              fontSize: 20,
                              fontWeight: FontWeight.bold,
                              color: Colors.white)),
                    ),
                    Text("sample@mail.com",
                        style: TextStyle(fontSize: 16, color: Colors.white)),

                    // Text()
                  ],
                ),
                decoration: BoxDecoration(
                  color: Colors.blueAccent,
                ),
              ),
            ),
            ListTile(
              leading: Icon(Icons.info),
              title: Text('About'),
              onTap: () {
                // Update the state of the app
                // ...
                // Then close the drawer
                Navigator.pop(context);
              },
            ),
            ListTile(
              leading: Icon(Icons.lock),
              title: Text('Privacy Policy'),
              onTap: () {
                // Update the state of the app
                // ...
                // Then close the drawer
                Navigator.pop(context);
              },
            ),
          ],
        ),
      ),