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 3 years 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

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

Hello, how you resolved this issue?

Tried to clear pub cache, didn't help.

1mavic avatar Nov 28 '22 08:11 1mavic

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

Hello, how you resolved this issue?

Tried to clear pub cache, didn't help.

please run flutter channel stable flutter clean

caihua avatar Nov 29 '22 13:11 caihua

flutter channel stable

Thanks! Problems was with VSCode and fvm. IDE didn't use local version of flutter.

1mavic avatar Nov 29 '22 19:11 1mavic

@zmtzawqlp Hi, that breaking change was now merged into flutter stable branch causing the above mentioned error.

NatanielRegula avatar Jan 24 '23 21:01 NatanielRegula