LinXunFeng

Results 11 comments of LinXunFeng

是的,目前我们是通过 `Listener` 监听了手指按下与抬起完成了这个功能,提供以下代码给需要的人 ```dart // Widget /// 图片放大回调 final Function(double startScale, double endScale)? handlePicZoomScaleChange; ``` ```dart // State /// 是否已ynvi在大图浏览上的手指当前是否为抬起状态 bool haveRecordPanStartZoomScale = false; /// 图片开始捏合时的缩放倍数 double picPanStartZoomScale = 0.0;...

Fix sencond bug I use two color (`fe7338` and `fc8e2b`), their hashValue are same so, these codes will be bug ```swift hasher.combine(self.colors) hasher.combine(self.borderColors) ``` ![image](https://user-images.githubusercontent.com/19367531/154394568-11583a5c-944d-4aad-bc02-39d5285943d0.png) Resolve: I transform `UIColor` to...

试了,还是一样慢 代码如下: ```swift let avp = AVPlayer(url: url) avp.automaticallyWaitsToMinimizeStalling = false self.player.urlAsset = SJVideoPlayerURLAsset(avPlayer: avp) ```

👍 相比之前确实快了很多,不过相对于右边的还是有一丢丢慢(有使用 `automaticallyWaitsToMinimizeStalling = false`) 设置 `self.player.delayInSecondsForHiddenPlaceholderImageView = 0` 后的效果: https://user-images.githubusercontent.com/19367531/153521906-3debc3e2-2ca7-4efd-ad82-49ef5a688de7.mov 这是视觉上的慢,占位图隐藏&视频显示动画导致的,相关源码如下: ```objc BOOL animated = _URLAsset.original == nil; [self.presentView hiddenPlaceholderAnimated:animated delay:delay]; ``` 根据上述源码,对现有代码做了如下调整: ```swift let avp = AVPlayer(url: url)...

You can use package [flutter_scrollview_observer](https://github.com/LinXunFeng/flutter_scrollview_observer) to implement it.

Maybe you can try this package: [flutter_scrollview_observer](https://github.com/LinXunFeng/flutter_scrollview_observer)

Maybe you can try this package: [flutter_scrollview_observer](https://github.com/LinXunFeng/flutter_scrollview_observer)

The problem is caused by iOS's autofill function, which can be resolved by turning it off ```dart TextField( ... autofillHints: const [AutofillHints.oneTimeCode], ... ) ```

@stuartmorgan Thanks for your reminder. I have adjusted the implementation to solve this issue by removing the cyclic object, please review the code again.