当前位置:网站首页>直播平台开发,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侧滑,更多内容欢迎关注之后的文章
边栏推荐
- Watch to monitor
- The impact of programmatic trading and subjective trading on the profit curve!
- Roewe imax8ev cube battery security, what blackening and swelling are hidden behind it?
- 云平台下ESB产品开发步骤说明
- es-head plugin insert query and conditional query (5)
- 阿里云发布3大高性能计算解决方案
- rub the heat - do not open
- Multi-serial port RS485 industrial gateway BL110
- A brief analysis of whether programmatic futures trading or manual order is better?
- QueryDet: Cascading Sparse Query Accelerates Small Object Detection at High Resolution
猜你喜欢
Differences and connections between distributed and clustered
[C Language] Getting Started
[FPGA] Design Ideas - I2C Protocol
Getting Started with Raspberry Pi (5) System Backup
【深度学习】基于卷积神经网络的天气识别训练
【FPGA】SDRAM
QueryDet: Cascading Sparse Query Accelerates Small Object Detection at High Resolution
Provincial level of Echart maps, as well as all prefecture-level download and use
Qnet Weak Network Test Tool Operation Guide
DNS separation resolution and intelligent resolution
随机推荐
【Yugong Series】August 2022 Go Teaching Course 036-Type Assertion
What should I do if the channel ServerID is incorrect when EasyCVR is connected to a Hikvision Dahua device and selects another cluster server?
程序化交易改变了什么?
【FPGA】day20-I2C读写EEPROM
用户如何克服程序化交易中的情绪问题?
一文读懂 高性能可预期数据中心网络
What is ensemble learning in machine learning?
程序化交易的策略类型可以分为哪几种?
Getting Started with Raspberry Pi (5) System Backup
Leetcode 669. 修剪二叉搜索树
Power Cabinet Data Monitoring RTU
.NET 服务注册
What is Machine Reinforcement Learning?What is the principle?
Use jackson to parse json data in detail
【FPGA】abbreviation
Common layout effect realization scheme
高校就业管理系统设计与实现
Day20 FPGA 】 【 - block the I2C read and write EEPROM
Rotary array problem: how to realize the array "overall reverse, internal orderly"?"Three-step conversion method" wonderful array
When EasyCVR is connected to the GB28181 device, what is the reason that the device is connected normally but the video cannot be played?