当前位置:网站首页>Shutter encapsulated button
Shutter encapsulated button
2022-07-02 12:28:00 【Xiao Er Li】
class LoginButton extends StatelessWidget {
final String title;
final bool enable;
final VoidCallback onPressed; // Click callback
const LoginButton({
Key key, this.title, this.enable = true, this.onPressed})
: super(key: key);
@override
Widget build(BuildContext context) {
return FractionallySizedBox(
// FractionallySizedBox Make in ListView Medium Button Full screen width
widthFactor: 1,
child: MaterialButton(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(6)),
height: 45,
onPressed: enable ? onPressed : null,
disabledColor: primary[50],
color: primary,
child: Text(title, style: TextStyle(color: Colors.white, fontSize: 16)),
),
);
}
}
边栏推荐
- IPhone 6 plus is listed in Apple's "retro products" list
- 字符串回文hash 模板题 O(1)判字符串是否回文
- The most understandable f-string tutorial in history, collecting this one is enough
- 初始JDBC 编程
- Lekao: 22 year first-class fire engineer "technical practice" knowledge points
- 堆(優先級隊列)
- Differences between nodes and sharding in ES cluster
- jenkins 凭证管理
- Leetcode122 the best time to buy and sell stocks II
- Those logs in MySQL
猜你喜欢
MySQL indexes and transactions
Find the common ancestor of any two numbers in a binary tree
Performance tuning project case
CDA数据分析——AARRR增长模型的介绍、使用
Sweetheart leader: Wang Xinling
Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)
Multiply LCA (nearest common ancestor)
[C language] convert decimal numbers to binary numbers
CDH6之Sqoop添加数据库驱动
Take you ten days to easily finish the finale of go micro services (distributed transactions)
随机推荐
Embedded Software Engineer career planning
LeetCode—剑指 Offer 37、38
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
Addition, deletion, modification and query of MySQL table (Advanced)
drools中then部分的写法
Full link voltage measurement
怎样写一篇赏心悦目的英文数学论文
AAAI 2022 | Peking University & Ali Dharma Institute: pruning and compression of pre training language model based on comparative learning
CDH6之Sqoop添加数据库驱动
LeetCode—<动态规划专项>剑指 Offer 19、49、60
Anxiety of a 211 programmer: working for 3 years with a monthly salary of less than 30000, worried about being replaced by fresh students
Thesis translation: 2022_ PACDNN: A phase-aware composite deep neural network for speech enhancement
甜心教主:王心凌
drools执行指定的规则
The most understandable f-string tutorial in history, collecting this one is enough
MySQL and PostgreSQL methods to grab slow SQL
CONDA common command summary
MySQL indexes and transactions
jenkins 凭证管理
Go学习笔记—基于Go的进程间通信