当前位置:网站首页>Shuttle encapsulated AppBar
Shuttle encapsulated AppBar
2022-07-02 12:28:00 【Xiao Er Li】
encapsulation
appBar(String title, String rightTitle, VoidCallback rightButtonClick) {
return AppBar(
centerTitle: false,
titleSpacing: 0,
leading: BackButton(),
// Return button
title: Text(
title,
style: TextStyle(fontSize: 18),
),
// title
actions: [
InkWell(
onTap: rightButtonClick, // Click event
child: Container(
padding: EdgeInsets.only(left: 15, right: 15),
alignment: Alignment.center,
child: Text(
rightTitle,
style: TextStyle(fontSize: 18, color: Colors.grey[500]),
textAlign: TextAlign.center,
),
),
)
],
);
}
Use
appBar: appBar(" register ", " Sign in ", () {
print('right button click');
}),
边栏推荐
- Natural language processing series (I) -- RNN Foundation
- 上传文件时,服务器报错:IOFileUploadException: Processing of multipart/form-data request failed. 设备上没有空间
- Simple use of drools decision table
- Thesis translation: 2022_ PACDNN: A phase-aware composite deep neural network for speech enhancement
- 倍增 LCA(最近公共祖先)
- SparkContext: Error initializing SparkContext解决方法
- Sub thread get request
- Sort---
- The second composition template of postgraduate entrance examination English / chart composition, English chart composition is enough
- drools执行完某个规则后终止别的规则执行
猜你喜欢

Go learning notes - multithreading

Test shift left and right

Why do programmers have the idea that code can run without moving? Is it poisonous? Or what?

AI mid stage technology research

堆(优先级队列)

Jenkins voucher management

Lekao.com: experience sharing of junior economists and previous candidates in customs clearance

From scratch, develop a web office suite (3): mouse events

CDH存在隐患 : 该角色的进程使用的交换内存为xx兆字节。警告阈值:200字节

CDA data analysis -- Introduction and use of aarrr growth model
随机推荐
Writing method of then part in drools
CDH存在隐患 : 该角色的进程使用的交换内存为xx兆字节。警告阈值:200字节
Jenkins voucher management
drools中then部分的写法
Sparkcontext: error initializing sparkcontext solution
ES集群中节点与分片的区别
OpenCV中cv2.VideoWriter_fourcc()函数和cv2.VideoWriter()函数的结合使用
Leetcode - Sword finger offer 37, 38
Addition, deletion, modification and query of MySQL table (Advanced)
Heap (priority queue)
PyTorch nn. Full analysis of RNN parameters
5g era, learning audio and video development, a super hot audio and video advanced development and learning classic
AI mid stage technology research
Embedded Software Engineer career planning
(C语言)3个小代码:1+2+3+···+100=?和判断一个年份是闰年还是平年?和计算圆的周长和面积?
Thesis translation: 2022_ PACDNN: A phase-aware composite deep neural network for speech enhancement
Jenkins用户权限管理
Multiply LCA (nearest common ancestor)
The differences and relationships among port, targetport, nodeport and containerport in kubenetes
mysql数据库基础