【发布时间】:2020-02-24 00:53:19
【问题描述】:
我有一个带有endDrawer 的脚手架,我在其中添加了一个自定义图标来打开 endDrawer,但是,出现了结束抽屉的自动汉堡图标,我不知道如何删除它。我找到的所有答案都是为了删除前导答案,这无助于我删除尾随答案。提前致谢。下面是我的代码
Scaffold(
endDrawer: SafeArea(
child: Drawer(
child: Column(
children: <Widget>[
DrawerHeader(child: Text('Trial'),),
Container(height:54, child: Text('New'),),
Container(height:54, child: Text('Profile'),),
Container(height:54, child: Text('Users List'),),
Container(height:54, child: Text('Add User'),),
Container(height:54, child: Text('About'),),
],
),
),
),
appBar: AppBar(
elevation: 0,
automaticallyImplyLeading: false,
backgroundColor: Colors.blue,
title: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Hero(
tag: 'logo',
child: Image(
image: AssetImage('assets/images/Logo.png'),
height: 36,
width: 59,
),
),
Text(
'NOTICES',
style: TextStyle(
color: Color(0xAA243782),
fontSize: 24,
fontFamily: 'Orbitron'),
),
InkWell(
child: Icon(
Icons.list,
color: Color(0xAA243782),
size: 33,
),
onTap: () {
Scaffold.of(context)openEndDrawer();
},
),
],
),
),
body: Container(
color: Color(0xAAAB8B3F2),
child: Center(
child: Text('Trial'),
),
));
【问题讨论】: