当前位置:网站首页>直播平台开发,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侧滑,更多内容欢迎关注之后的文章
边栏推荐
- 【FPGA】day20-I2C读写EEPROM
- Watch to monitor
- "98 BST and Its Verification" of the 13th day of leetcode brushing series of binary tree series
- 【FPGA】day21-移动平均滤波器
- es-head plugin insert query and conditional query (5)
- 多串口RS485工业网关BL110
- What should I do if the channel ServerID is incorrect when EasyCVR is connected to a Hikvision Dahua device and selects another cluster server?
- Alibaba Cloud releases 3 high-performance computing solutions
- 华南师范宋宇老师课堂对话论文翻译
- 使用百度EasyDL实现智能垃圾箱
猜你喜欢
Echart地图的省级,以及所有地市级下载与使用
【FPGA】day21-移动平均滤波器
QueryDet: Cascading Sparse Query Accelerates Small Object Detection at High Resolution
【FPGA】day18-ds18b20实现温度采集
Use jackson to parse json data in detail
机器学习是什么?详解机器学习概念
es-head插件插入查询以及条件查询(五)
【Yugong Series】August 2022 Go Teaching Course 036-Type Assertion
[yu gong series] Go program 035-08 2022 interfaces and inheritance and transformation and empty interface
Qnet Weak Network Test Tool Operation Guide
随机推荐
App Basic Framework Construction丨Log Management - KLog
"104 Maximum Depth of Binary Trees" in LeetCode's Day 12 Binary Tree Series
Read the article, high-performance and predictable data center network
[yu gong series] Go program 035-08 2022 interfaces and inheritance and transformation and empty interface
【FPGA】day21- moving average filter
Callable实现多线程
蹭个热度-请勿打开
Multi-serial port RS485 industrial gateway BL110
"98 BST and Its Verification" of the 13th day of leetcode brushing series of binary tree series
uni-app - 获取汉字拼音首字母(根据中文获取拼音首字母)
What is ensemble learning in machine learning?
Redis老了吗?Redis与Dragonfly性能比较
每日一题-滑动窗口
Graphical LeetCode - 640. Solving Equations (Difficulty: Moderate)
Leetcode 669. 修剪二叉搜索树
C语言 recv()函数、recvfrom()函数、recvmsg()函数
Provincial level of Echart maps, as well as all prefecture-level download and use
EasyCVR接入GB28181设备时,设备接入正常但视频无法播放是什么原因?
【Yugong Series】August 2022 Go Teaching Course 036-Type Assertion
校园兼职平台项目反思