wanglu1209 / wpopup Goto Github PK
View Code? Open in Web Editor NEW一个简单使用并且高度定制的Popupwindow。超简单实现朋友圈点赞效果,并且只用一个WPopup!完全不用担心复用问题!点击切换动画效果等!
License: Apache License 2.0
一个简单使用并且高度定制的Popupwindow。超简单实现朋友圈点赞效果,并且只用一个WPopup!完全不用担心复用问题!点击切换动画效果等!
License: Apache License 2.0
不能添加自定义View??? setView方法也没有?
应当给GestureDetector设置behavior: HitTestBehavior.opaque属性
@override
Widget build(BuildContext context) {
return WillPopScope(
onWillPop: (){
if(entry != null){
removeOverlay();
}
return Future.value(true);
},
child: GestureDetector(
child: widget.child,
behavior: HitTestBehavior.opaque,
onTap: () {
if (widget.pressType == PressType.singleClick) {
onTap();
}
},
onLongPress: () {
if (widget.pressType == PressType.longPress) {
onTap();
}
},
),
);
}
maven { url 'https://jitpack.io' }
双引号,折腾了半天
有各种改进方案可以在这里提出来
我想实现箭头在window的左下角,而不是下方居中
kt现在是标配么
WidgetsBinding.instance.addPostFrameCallback((call) {
width = context.size.width;
height = context.size.height;
button = context.findRenderObject();
overlay = Overlay.of(context).context.findRenderObject();
});
═══════ Exception caught by scheduler library ═════════════════════════════════
The getter 'size' was called on null.
Receiver: null
Tried calling: size
这个地方进入页面后开始自动滚动则会有上面的异常抛出
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.