import 'package:flutter/material.dart'; class AlwaysScrollListView extends StatefulWidget { final Widget child; final ScrollController scrollController; final Color? color; const AlwaysScrollListView({ super.key, required this.child, required this.scrollController, this.color = Colors.grey, }); @override State createState() { return _AlwaysScrollListViewState(); } } class _AlwaysScrollListViewState extends State { @override Widget build(BuildContext context) { return RawScrollbar( controller: widget.scrollController, trackVisibility: true, thumbVisibility: true, thumbColor: widget.color, radius: const Radius.circular(20), child: widget.child, ); } }