You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found out that you are creating constructors for no reason when you don't do anything special for each constructor :
here check these constructors they have the same implementation but with different constructor arguments :
/// Constructor for creating [FadingEdgeScrollView] with [PageView] as child
/// child must have [PageView.controller] set
factory FadingEdgeScrollView.fromPageView({
Key key,
@required PageView child,
double gradientFractionOnStart = 0.1,
double gradientFractionOnEnd = 0.1,
bool shouldDisposeScrollController = false,
}) {
assert(child.controller != null, "Child must have controller set");
return FadingEdgeScrollView._internal(
key: key,
child: child,
scrollController: child.controller,
scrollDirection: child.scrollDirection,
reverse: child.reverse,
gradientFractionOnStart: gradientFractionOnStart,
gradientFractionOnEnd: gradientFractionOnEnd,
shouldDisposeScrollController: shouldDisposeScrollController,
);
}
/// Constructor for creating [FadingEdgeScrollView] with [AnimatedList] as child
/// child must have [AnimatedList.controller] set
factory FadingEdgeScrollView.fromAnimatedList({
Key key,
@required AnimatedList child,
double gradientFractionOnStart = 0.1,
double gradientFractionOnEnd = 0.1,
bool shouldDisposeScrollController = false,
}) {
assert(child.controller != null, "Child must have controller set");
return FadingEdgeScrollView._internal(
key: key,
child: child,
scrollController: child.controller,
scrollDirection: child.scrollDirection,
reverse: child.reverse,
gradientFractionOnStart: gradientFractionOnStart,
gradientFractionOnEnd: gradientFractionOnEnd,
shouldDisposeScrollController: shouldDisposeScrollController,
);
}
why is that ?
The text was updated successfully, but these errors were encountered:
All constructors are extracting required parameters (scrollController, scrollDirection, reverse) from child widgets. Unfortunately scrollable widgets don't share same interface for this purpose even if their methods are looking similar.
I found out that you are creating constructors for no reason when you don't do anything special for each constructor :
here check these constructors they have the same implementation but with different constructor arguments :
why is that ?
The text was updated successfully, but these errors were encountered: