同页面使用多个floatingActionButton会报错flutter: The following assertion was thrown during a scheduler callback:flutter: There are multiple heroes that share the same tag within a subtree.flutter: Within each subtree for which heroes are to be animated (i.e. a PageRoute subtree), each Hero mustflutter: have a unique non-null tag.flutter: In this case, multiple heroes had the following tag: <default Fl...

[!] CocoaPods could not find compatible versions for pod "multi_image_picker": In Podfile:multi_image_picker (from `.symlinks/plugins/multi_image_picker/ios`) Specs satisfying the multi_image_picker (from .symlinks/plugins/multi_image_picker/ios) dependency were found, but they required a higher minimum deployment target.pod 里的platform :ios, '8.0' 版本低了,改成9.0 即可

节流与防抖函数节流是指一定时间内js方法只跑一次。比如人的眨眼睛,就是一定时间内眨一次。而函数防抖是指频繁触发的情况下,只有足够的空闲时间,才执行代码一次。比如生活中的坐公交,就是一定时间内,如果有人陆续刷卡上车,司机就不会开车。只有别人没刷卡了,司机才开车。Flutter的节流函数节流,简单地讲,就是让一个函数无法在很短的时间间隔内连续调用,只有当上一次函数执行后过了你规定的时间间隔,才能进行下一次该函数的调用。放到业务中分析节流函数:class MyStatefulWidgetState extends State<OrderPageEdit> {bool canScanning; //是否可以扫描 //扫描控制流 final Stream<dynamic> _barScanner = EventChannel('com.freshport.freshp...

简介环境是Mac下Android Studio进行的开发,AS也是谷歌官推的,安装flutter插件后,开发起来相对于其他IDE来说,方便很多,自带了三种模板:Flutter Application: Flutter应用Flutter Plugin:Flutter插件Flutter Package:纯Dart组件Plugin其实就是一个特殊的Package。Flutter Plugin提供Android或者iOS的底层封装,在Flutter层提供组件功能,使Flutter可以较方便的调取Native的模块。很多平台相关性或者对于Flutter实现起来比较复杂的部分,都可以封装成Plugin。其原理如下消息在client和host之间通过平台通道(platform channels)来进行的,之间的通讯都是异步的。创建组件直接在Android Studio中新建一个Flutter Pl...