当前位置:网站首页>Flutter InkWell & Ink组件
Flutter InkWell & Ink组件
2022-07-05 12:58:00 【xiangxiongfly915】
Flutter InkWell & Ink组件
- InkWell组件可以在用户点击是出现水波纹效果。
- Ink组件可以将水波纹效果作用在装饰上。
InkWell(
onTap: () {},
splashColor: Colors.red,
child: const Padding(
padding: EdgeInsets.all(10),
child: Text("InkWell水波纹效果"),
),
)
InkWell(
onTap: () {},
highlightColor: Colors.blue,
child: const Padding(
padding: EdgeInsets.all(10),
child: Text("InkWell高亮效果"),
),
)
InkWell(
onTap: () {},
splashColor: Colors.red,
highlightColor: Colors.blue,
child: const Padding(
padding: EdgeInsets.all(10),
child: Text("InkWell混合效果"),
),
)
Ink(
decoration: const BoxDecoration(
gradient: LinearGradient(
colors: [Color(0xFFDE2F21), Color(0xFFEC592F)],
),
borderRadius: BorderRadius.all(Radius.circular(20)),
),
child: InkWell(
onTap: () {},
borderRadius: const BorderRadius.all(Radius.circular(20)),
child: Container(
padding: const EdgeInsets.symmetric(vertical: 8, horizontal: 20),
child: const Text(
"Ink&InkWell",
style: TextStyle(color: Colors.white),
),
),
),
)
边栏推荐
- SAP SEGW 事物码里的 Association 建模方式
- Natural language processing series (I) introduction overview
- 使用 jMeter 对 SAP Spartacus 进行并发性能测试
- Why is your next computer a computer? Explore different remote operations
- Insmod prompt invalid module format
- Laravel document reading notes -mews/captcha use (verification code function)
- SAP SEGW 事物码里的导航属性(Navigation Property) 和 EntitySet 使用方法
- 数据湖(七):Iceberg概念及回顾什么是数据湖
- What is the difference between Bi software in the domestic market
- 时钟周期
猜你喜欢
ASEMI整流桥HD06参数,HD06图片,HD06应用
初次使用腾讯云,解决只能使用webshell连接,不能使用ssh连接。
Alipay transfer system background or API interface to avoid pitfalls
聊聊异步编程的 7 种实现方式
leetcode:221. Maximum square [essence of DP state transition]
STM32 and motor development (from architecture diagram to documentation)
使用 jMeter 对 SAP Spartacus 进行并发性能测试
Alibaba cloud SLB load balancing product basic concept and purchase process
[cloud native] event publishing and subscription in Nacos -- observer mode
A deep long article on the simplification and acceleration of join operation
随机推荐
峰会回顾|保旺达-合规和安全双驱动的数据安全整体防护体系
Pycharm installation third party library diagram
无密码身份验证如何保障用户隐私安全?
国际自动机工程师学会(SAE International)战略投资几何伙伴
RHCSA1
逆波兰表达式
JXL notes
RHCSA9
Rocky基础知识1
Natural language processing series (I) introduction overview
RHCSA4
mysql econnreset_Nodejs 套接字报错处理 Error: read ECONNRESET
Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)
##无监控,不运维,以下是监控里常用的脚本监控
Halcon 模板匹配实战代码(一)
#yyds干货盘点# 解决名企真题:搬圆桌
Leetcode20. Valid parentheses
A small talk caused by the increase of sweeping
I'm doing open source in Didi
《2022年中國銀行業RPA供應商實力矩陣分析》研究報告正式啟動