摘要:PhysicalModel ,主要的功能就是设置widget四边圆角,可以设置阴影颜色,和z轴高度 PhysicalModel({ //裁剪模式 this.clipBehavior = Clip.none, //四角圆度半径 this.borderRadius, //z轴高度 this.elevat
阅读全文
摘要:Wrap({ Key key, this.direction = Axis.horizontal,//主轴(mainAxis)的方向,默认为水平。 this.alignment = WrapAlignment.start,//主轴方向上的对齐方式,默认为start。 this.spacing = 0
阅读全文
摘要:/** * 控制child是否显示 * 当offstage为true,控件隐藏; 当offstage为false,显示; 当Offstage不可见的时候,如果child有动画等,需要手动停掉,Offstage并不会停掉动画等操作。 const Offstage({ Key key, this.off
阅读全文
摘要:参考:https://www.jianshu.com/p/1a131deeee75 参考:https://www.jianshu.com/p/1770ded8f50f 一.混编 1.咸鱼模式 Flutter打包成aar嵌入到原生工程 2.Google模式,Flutter页面嵌入原生 public c
阅读全文
摘要:Why Flutter ? older_crossed_platform.png Flutter框架与应用 框架与Source Code 整体框架 flutter_struct_base.jpg Source Code flutter_struct_function.png 所以从上面的分析可以看出
阅读全文
摘要:参考:https://www.lizenghai.com/archives/48633.html const Listener({ Key key, this.onPointerDown, this.onPointerMove, this.onPointerEnter, this.onPointer
阅读全文