RoundedRectThumb static method

Widget RoundedRectThumb(
  1. Color backgroundColor,
  2. Color drawColor,
  3. double height,
  4. int index,
  5. bool alwaysVisibleScrollThumb,
  6. Animation<double> thumbAnimation,
)

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);
}