当前位置:网站首页>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');
}),
边栏推荐
- 字符串回文hash 模板题 O(1)判字符串是否回文
- Jenkins voucher management
- Openssh remote enumeration username vulnerability (cve-2018-15473)
- Sweetheart leader: Wang Xinling
- Mysql database foundation
- 刷题---二叉树--2
- Sparkcontext: error initializing sparkcontext solution
- Jenkins user rights management
- (C语言)输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。
- Leetcode922 按奇偶排序数组 II
猜你喜欢
In development, why do you find someone who is paid more than you but doesn't write any code?
Distributed machine learning framework and high-dimensional real-time recommendation system
Anxiety of a 211 programmer: working for 3 years with a monthly salary of less than 30000, worried about being replaced by fresh students
mysql索引和事务
drools动态增加、修改、删除规则
This "little routine" is set on the dough cake of instant noodles. No wonder programmers are always hungry
Why do programmers have the idea that code can run without moving? Is it poisonous? Or what?
[FFH] little bear driver calling process (take calling LED light driver as an example)
Mysql database foundation
Experiment of connecting mobile phone hotspot based on Arduino and esp8266 (successful)
随机推荐
Differences between nodes and sharding in ES cluster
Those logs in MySQL
中国交通标志检测数据集
[C language] Yang Hui triangle, customize the number of lines of the triangle
Intel 内部指令 --- AVX和AVX2学习笔记
On data preprocessing in sklearn
分布式机器学习框架与高维实时推荐系统
Codeforces 771 div2 B (no one FST, refers to himself)
How to write a pleasing English mathematical paper
Leetcode14 longest public prefix
CDA数据分析——Excel数据处理的常见知识点归纳
Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)
Tas (file d'attente prioritaire)
MySQL indexes and transactions
PR 2021 quick start tutorial, learn about the and functions of the timeline panel
[old horse of industrial control] detailed explanation of Siemens PLC TCP protocol
Experiment of connecting mobile phone hotspot based on Arduino and esp8266 (successful)
Leetcode739 daily temperature
When uploading a file, the server reports an error: iofileuploadexception: processing of multipart / form data request failed There is no space on the device
The programmer and the female nurse went on a blind date and spent 360. He packed leftovers and was stunned when he received wechat at night