extended_nested_scroll_view icon indicating copy to clipboard operation
extended_nested_scroll_view copied to clipboard

flutter master分支的BallisticScrollActivity类需要4个参数了,直接编译不过

Open caihua opened this issue 1 year ago • 3 comments

extended_nested_scroll_view-5.1.3/lib/src/extended_nested_scroll_view.dart:1607:39: Error: Too few positional arguments: 4 required, 3 given. return BallisticScrollActivity(this, simulation, context.vsync);

class BallisticScrollActivity extends ScrollActivity { /// Creates an activity that animates a scroll view based on a [simulation]. /// /// The [delegate], [simulation], and [vsync] arguments must not be null. BallisticScrollActivity( super.delegate, Simulation simulation, TickerProvider vsync, this.shouldIgnorePointer, ) { _controller = AnimationController.unbounded( debugLabel: kDebugMode ? objectRuntimeType(this, 'BallisticScrollActivity') : null, vsync: vsync, ) ..addListener(_tick) ..animateWith(simulation) .whenComplete(_end); // won't trigger if we dispose _controller first }

caihua avatar Sep 16 '22 17:09 caihua

要修改下么,Flutter stable 3.3.3 也同步代码了

caihua avatar Sep 29 '22 09:09 caihua

要修改下么,Flutter stable 3.3.3 也同步代码了

并没有发现有同步,breaking change 一般不会在hotfix里面包含的

zmtzawqlp avatar Sep 29 '22 10:09 zmtzawqlp

感谢回复,查了下确实如此,是我本地缓存代码不太对

caihua avatar Sep 29 '22 12:09 caihua