当前位置:网站首页>直播平台开发,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侧滑,更多内容欢迎关注之后的文章
边栏推荐
- How can users overcome emotional issues in programmatic trading?
- Use jackson to parse json data in detail
- Where can machine learning be applied?What is machine learning useful for?
- console.log alternatives you didn't know about
- EasyCVR接入海康大华设备选择其它集群服务器时,通道ServerID错误该如何解决?
- App Basic Framework Construction丨Log Management - KLog
- 80端口和443端口是什么?有什么区别?
- 蹭个热度-请勿打开
- When EasyCVR is connected to the GB28181 device, what is the reason that the device is connected normally but the video cannot be played?
- 使用jackson解析json数据详讲
猜你喜欢

Read the article, high-performance and predictable data center network

Where can machine learning be applied?What is machine learning useful for?

【FPGA】day18-ds18b20实现温度采集

【C语言】入门

Which one to choose for mobile map development?

LeetCode刷题第12天二叉树系列之《104 二叉树的最大深度》

【FPGA】day21- moving average filter

LeetCode Brush Questions Day 11 String Series "58 Last Word Length"

console.log alternatives you didn't know about

"3 Longest Substring Without Repeating Characters" on the 17th day of LeetCode brushing
随机推荐
FTP错误代码列表
STC8H开发(十五): GPIO驱动Ci24R1无线模块
【组成原理 九 CPU】
AI+医疗:使用神经网络进行医学影像识别分析
LeetCode刷题第12天二叉树系列之《104 二叉树的最大深度》
你不知道的 console.log 替代品
蹭个热度-请勿打开
I didn't expect MySQL to ask these...
【FPGA】day21- moving average filter
MySQL数据库存储引擎以及数据库的创建、修改与删除
leetcode刷题第13天二叉树系列之《98 BST及其验证》
【C语言】入门
What is third-party payment?
我的 archinstall 使用手册
Get Qt installation information: including installation directory and various macro addresses
每日一题-滑动窗口
shell监视gpu使用情况
【FPGA】day21-移动平均滤波器
【Yugong Series】August 2022 Go Teaching Course 036-Type Assertion
Getting Started with Raspberry Pi (5) System Backup