大佬教程收集整理的这篇文章主要介绍了颤动 – InkWell没有出现涟漪效应,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
class _MyHomePageState extends State<MyHomePage> { @override Widget build(BuildContext context) { return new Scaffold( appBar: new AppBar( title: new Text(widget.titlE),),body: new Center( child: new InkWell( onTap: (){print("tapped");},child: new Container( width: 100.0,height: 100.0,color: Colors.orange,); } }
我尝试将InkWell放入容器内,但是徒劳无功.
https://docs.flutter.io/flutter/material/InkWell/InkWell.html
这段代码似乎有效
body: new Center( child: new Container( child: new Material( child: new InkWell( onTap: (){print("tapped");},child: new Container( width: 100.0,color: Colors.transparent,
只需点击中间的方块.
编辑:我找到了bug报告. https://github.com/flutter/flutter/issues/3782
–hixie
以上是大佬教程为你收集整理的颤动 – InkWell没有出现涟漪效应全部内容,希望文章能够帮你解决颤动 – InkWell没有出现涟漪效应所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。