CrossScroll constructor

const CrossScroll({
  1. Widget? child,
  2. CrossScrollDesign? verticalScroll,
  3. CrossScrollDesign? horizontalScroll,
  4. ScrollController? horizontalScrollController,
  5. ScrollController? verticalScrollController,
  6. Color? dimColor,
  7. Color? normalColor,
  8. Color? hoverColor,
  9. CrossScrollTrack? horizontalBar = const CrossScrollTrack(),
  10. CrossScrollTrack? verticalBar = const CrossScrollTrack(),
  11. 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);