当前位置:网站首页>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)),
),
);
}
}
边栏推荐
- Find the factorial of a positive integer within 16, that is, the class of n (0= < n < =16). Enter 1111 to exit.
- WSL 2 will not be installed yet? It's enough to read this article
- Drools executes the specified rule
- Differences between nodes and sharding in ES cluster
- JZ63 股票的最大利润
- LeetCode—<动态规划专项>剑指 Offer 19、49、60
- [FFH] little bear driver calling process (take calling LED light driver as an example)
- Leetcode topic [array] -540- single element in an ordered array
- drools执行String规则或执行某个规则文件
- Sparkcontext: error initializing sparkcontext solution
猜你喜欢

寻找二叉树中任意两个数的公共祖先

mysql表的增删改查(进阶)

arcgis js 4. Add pictures to x map

AI mid stage technology research

Jenkins用户权限管理

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

Simple understanding of ThreadLocal

Go learning notes - multithreading

The blink code based on Arduino and esp8266 runs successfully (including error analysis)

Jenkins voucher management
随机推荐
Addition, deletion, modification and query of MySQL table (Advanced)
High performance erasure code coding
Leetcode739 daily temperature
Is the neural network (pinn) with embedded physical knowledge a pit?
Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)
考研英语二大作文模板/图表作文,英语图表作文这一篇就够了
Sub thread get request
Thesis translation: 2022_ PACDNN: A phase-aware composite deep neural network for speech enhancement
(C语言)输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。
WSL 2 will not be installed yet? It's enough to read this article
drools执行String规则或执行某个规则文件
post请求体内容无法重复获取
上传文件时,服务器报错:IOFileUploadException: Processing of multipart/form-data request failed. 设备上没有空间
Lombok common annotations
Sse/avx instruction set and API of SIMD
Go learning notes - go based interprocess communication
OpenCV中cv2.VideoWriter_fourcc()函数和cv2.VideoWriter()函数的结合使用
FastDateFormat为什么线程安全
Brush questions --- binary tree --2
How to write a pleasing English mathematical paper