fliggy-mobile / ffloat Goto Github PK
View Code? Open in Web Editor NEWFFloat, although simple and easy to use, can satisfy all your imagination of the floating layer.
License: Other
FFloat, although simple and easy to use, can satisfy all your imagination of the floating layer.
License: Other
当我在一个页面打开一个弹层后,我去到新的页面,这个弹层还是会带过去,返回也是有问题
1
当浮出文字过长时会溢出屏幕看不见,是否可以增加个属性是否限制在屏幕内部?
当锚点在屏幕边缘时基本上浮层都会溢出屏幕,是否可以增加个属性让浮层自动偏移回屏幕内部?
The following assertion was thrown during paint():
RRect argument contained a NaN value.
'dart:ui/painting.dart':
Failed assertion: line 33 pos 10: ''
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=2_bug.md
超出屏幕怎么解决呀?
1.初始化controller,
FFloatController _floatController;
@OverRide
void initState() {
super.initState();
_floatController = FFloatController();
_floatController.setStateChangedListener(() {
});
}
2。在使用的地方引用controller,
controller: _floatController,
alignment: FFloatAlignment.leftCenter,
shadowColor: ColorUtil.cf4f4f4,
// shadowBlur: 14,
shadowOffset: Offset(0.0, 0.0),
corner: FFloatCorner.all(3),
color: Colors.black,
canTouchOutside: true,
triangleAlignment: TriangleAlignment.center,
triangleOffset: Offset(0, 0),
triangleWidth: 10,
triangleHeight: 10,
anchor: Image(
image: AssetImage(
Utils.getImgPath("morepoint"),
),
),
3.在点击事件中隐藏。
InkWell(
onTap: () {
Utils.showToast("msg");
_floatController.dismiss();})
4、结果:
界面上有一个吐司弹出来。但这个ffloat还是没有被隐藏。
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.