RoundedRectThumb static method
Implementation
static Widget RoundedRectThumb(
Color backgroundColor,
Color drawColor,
double height,
int index,
bool alwaysVisibleScrollThumb,
Animation<double> thumbAnimation,
) {
final thumb = Material(
elevation: 4.0,
color: backgroundColor,
borderRadius: const BorderRadius.all(Radius.circular(7.0)),
child: Container(
constraints: BoxConstraints.tight(Size(16.0, height)),
),
);
return alwaysVisibleScrollThumb
? thumb
: SlideFadeTransition(animation: thumbAnimation, child: thumb);
}