当前位置:网站首页>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 ui5 objectpagelayout control usage sharing
- 国际自动机工程师学会(SAE International)战略投资几何伙伴
- 关于 SAP UI5 floating footer 显示与否的单步调试以及使用 SAP UI5 的收益
- Laravel document reading notes -mews/captcha use (verification code function)
- RHCSA1
- SAP UI5 DynamicPage 控件介紹
- Notion 类笔记软件如何选择?Notion 、FlowUs 、Wolai 对比评测
- SAP SEGW 事物码里的 ABAP Editor
- leetcode:221. 最大正方形【dp状态转移的精髓】
- SAP SEGW 事物码里的导航属性(Navigation Property) 和 EntitySet 使用方法
猜你喜欢
RHCSA8
逆波兰表达式
Taobao product details API | get baby SKU, main map, evaluation and other API interfaces
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xe6 in position 76131: invalid continuation byt
Natural language processing series (I) introduction overview
STM32 and motor development (from architecture diagram to documentation)
leetcode:221. 最大正方形【dp状态转移的精髓】
A specific example of ABAP type and EDM type mapping in SAP segw transaction code
解决uni-app配置页面、tabBar无效问题
Install rhel8.2 virtual machine
随机推荐
Hiengine: comparable to the local cloud native memory database engine
手把手带你入门Apache伪静态的配置
Introduction to the principle of DNS
Word document injection (tracking word documents) incomplete
Le rapport de recherche sur l'analyse matricielle de la Force des fournisseurs de RPA dans le secteur bancaire chinois en 2022 a été officiellement lancé.
潘多拉 IOT 开发板学习(HAL 库)—— 实验7 窗口看门狗实验(学习笔记)
MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
时钟周期
Four common problems of e-commerce sellers' refund and cash return, with solutions
SAP UI5 DynamicPage 控件介紹
Detailed explanation of navigation component of openharmony application development
Developers, is cloud native database the future?
PyCharm安装第三方库图解
Alipay transfer system background or API interface to avoid pitfalls
RHCSA8
RHCSA4
SAP SEGW 事物码里的 ABAP 类型和 EDM 类型映射的一个具体例子
CAN和CAN FD
Pandora IOT development board learning (HAL Library) - Experiment 7 window watchdog experiment (learning notes)
解决uni-app配置页面、tabBar无效问题