当前位置:网站首页>直播平台开发,Flutter,Drawer侧滑
直播平台开发,Flutter,Drawer侧滑
2022-08-11 03:58:00 【云豹网络科技】
直播平台开发,Flutter,Drawer侧滑
/*** * Drwaer 侧滑 */
class DrawerDemo extends StatefulWidget {
@override
State<StatefulWidget> createState() {
// TODO: implement createState
return new DrawerMain();
}
}
class DrawerMain extends State<DrawerDemo> {
@override
Widget build(BuildContext context) {
// TODO: implement build
return new Scaffold(
appBar: new AppBar(
title: new Text("Drawer"),
),
drawer: new Drawer(
child: new ListView(
children: <Widget>[
new UserAccountsDrawerHeader(
accountName: Text("切切歆语"),
accountEmail: Text("[email protected]"),
currentAccountPicture: new GestureDetector(
child: new CircleAvatar(
backgroundImage: new ExactAssetImage("images/pic2.png"),
),
),
decoration: new BoxDecoration(
image: new DecorationImage(
fit: BoxFit.fill,
image: new ExactAssetImage("images/lake.jpg"),
),
),
),
new ListTile(
title: new Text("小花"),
trailing: new Icon(Icons.local_florist),
),
new ListTile(
title: new Text("搜索"),
trailing: new Icon(Icons.search),
onTap: () {
},
),
new Divider(),//横线
new ListTile(
title: new Text("设置"),
trailing: new Icon(Icons.settings),
onTap: () {
Navigator.of(context).pop();//点击关闭侧滑
_neverSatisfied();
},
),
],
),
),
body: new Center(
child: new Text(" Hello "),
),
);
}
}
以上就是 直播平台开发,Flutter,Drawer侧滑,更多内容欢迎关注之后的文章
边栏推荐
- console.log alternatives you didn't know about
- 【FPGA】day18-ds18b20实现温度采集
- Multi-serial port RS485 industrial gateway BL110
- [yu gong series] Go program 035-08 2022 interfaces and inheritance and transformation and empty interface
- Audio codec, using FAAC to implement AAC encoding
- LeetCode814算题第15天二叉树系列值《814 二叉树剪枝》
- Basic understanding of MongoDB (2)
- 【愚公系列】2022年08月 Go教学课程 036-类型断言
- 机器学习怎么学?机器学习流程
- Rotary array problem: how to realize the array "overall reverse, internal orderly"?"Three-step conversion method" wonderful array
猜你喜欢

DNS separation resolution and intelligent resolution

Interchangeability and Measurement Technology—Surface Roughness Selection and Marking Method

Echart地图的省级,以及所有地市级下载与使用

使用jackson解析json数据详讲

STC8H development (15): GPIO drive Ci24R1 wireless module

Redis老了吗?Redis与Dragonfly性能比较

Getting Started with Raspberry Pi (5) System Backup

【FPGA】day20-I2C读写EEPROM

LeetCode刷题第17天之《3 无重复字符的最长子串》

LeetCode刷题第10天字符串系列之《125回文串验证》
随机推荐
LeetCode Brush Questions Day 11 String Series "58 Last Word Length"
QueryDet: Cascading Sparse Query Accelerates Small Object Detection at High Resolution
Binary tree related code questions [more complete] C language
Leetcode 108. 将有序数组转换为二叉搜索树
What kind of programming trading strategy types can be divided into?
校园兼职平台项目反思
Which one to choose for mobile map development?
我的 archinstall 使用手册
DNS separation resolution and intelligent resolution
使用jackson解析json数据详讲
机器学习怎么学?机器学习流程
[C Language] Getting Started
Alibaba Cloud releases 3 high-performance computing solutions
Get the length of the linked list
拼多多店铺营业执照相关问题
Common layout effect realization scheme
Qnet弱网测试工具操作指南
AI+医疗:使用神经网络进行医学影像识别分析
华南师范宋宇老师课堂对话论文翻译
What is ensemble learning in machine learning?