CrossScroll constructor
const
CrossScroll({
- Widget? child,
- CrossScrollDesign? verticalScroll,
- CrossScrollDesign? horizontalScroll,
- ScrollController? horizontalScrollController,
- ScrollController? verticalScrollController,
- Color? dimColor,
- Color? normalColor,
- Color? hoverColor,
- CrossScrollTrack? horizontalBar = const CrossScrollTrack(),
- CrossScrollTrack? verticalBar = const CrossScrollTrack(),
- Key? key,
CrossScroll is a Widget that can scroll on multiple directions and
support all properties of SingleChildScrollView.
Keep isAlwaysShown:true
while design for Android or IOS so you will
be able to see your thumb position on screen while scrolling with onDrag property
i.e: CrossScrollBar(
showTrackOnHover: false,
trackVisibility: false,
isAlwaysShown: true),
Implementation
const CrossScroll(
{this.child,
this.verticalScroll,
this.horizontalScroll,
this.horizontalScrollController,
this.verticalScrollController,
this.dimColor,
this.normalColor,
this.hoverColor,
this.horizontalBar = const CrossScrollTrack(),
this.verticalBar = const CrossScrollTrack(),
Key? key})
: super(key: key);