当前位置:网站首页>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)),
),
);
}
}
边栏推荐
- Error in kubeadm join: [error port-10250]: port 10250 is in use [error fileavailable--etc kubernetes PKI
- Leetcode739 每日温度
- Leetcode - < dynamic planning special> Jianzhi offer 19, 49, 60
- Those logs in MySQL
- H5 to app
- Input a three digit number and output its single digit, ten digit and hundred digit.
- mysql表的增删改查(进阶)
- 字符串回文hash 模板题 O(1)判字符串是否回文
- Go learning notes - multithreading
- This "little routine" is set on the dough cake of instant noodles. No wonder programmers are always hungry
猜你喜欢

倍增 LCA(最近公共祖先)

High performance erasure code coding

刷题---二叉树--2

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

Mysql database foundation

Docker compose configuration mysql, redis, mongodb
![[C language] convert decimal numbers to binary numbers](/img/9b/1848b68b95d98389ed985c83f2e856.png)
[C language] convert decimal numbers to binary numbers

Deep understanding of P-R curve, ROC and AUC

Embedded Software Engineer career planning

PyTorch nn. Full analysis of RNN parameters
随机推荐
Less than three months after the programmer was hired, the boss wanted to launch the app within one month. If he was dissatisfied, he was dismissed immediately
OpenCV中cv2.VideoWriter_fourcc()函数和cv2.VideoWriter()函数的结合使用
使用Sqoop把ADS层数据导出到MySQL
In development, why do you find someone who is paid more than you but doesn't write any code?
Leetcode209 长度最小的子数组
CONDA common command summary
Deep understanding of P-R curve, ROC and AUC
Lombok common annotations
IPhone 6 plus is listed in Apple's "retro products" list
甜心教主:王心凌
记录一下MySql update会锁定哪些范围的数据
Error in kubeadm join: [error port-10250]: port 10250 is in use [error fileavailable--etc kubernetes PKI
Leetcode - Sword finger offer 59 - I, 59 - II
ThreadLocal的简单理解
[FFH] little bear driver calling process (take calling LED light driver as an example)
Why do programmers have the idea that code can run without moving? Is it poisonous? Or what?
When uploading a file, the server reports an error: iofileuploadexception: processing of multipart / form data request failed There is no space on the device
Sweetheart leader: Wang Xinling
drools决策表的简单使用
Input a three digit number and output its single digit, ten digit and hundred digit.