cross_scroll 0.0.2 cross_scroll: ^0.0.2 copied to clipboard
A CrossScroll is a flutter Package that permits it’s child views to be scrolled vertically and Horizontally. This is important because in many cases you need content to be scrolled on both side.
Package: Cross Scroll #
A CrossScroll is a flutter Package that permits it’s child views to be scrolled vertically and Horizontally. This is important because in many cases you need content to be scrolled on both side.
List of features #
- The vertical scrollbar wil never hides when the scrolling on horizontal axis and vice versa. The scrollBar never hides with scrolling on any directions.
- Support track onClick scrolls.
- Support thumb Drag scrolls.
- Support All feature
SingleChildScrollView
have.
Tested Platform #
WEB
- MicroSoft Edge
Windows
- Windows 10
Getting started #
CrossScroll #
CrossScroll(verticalBar: sc,
horizontalBar:sc ,
child: Column(
children: [
for (var i = 1; i < 11; i++)
Row(
children: [
for (var i = 1; i < 11; i++)
Container(
margin:const EdgeInsets.all(2),
width: MediaQuery.of(context).size.width/2,
height: MediaQuery.of(context).size.height/2,
color: colors[random.nextInt(13).round().toInt()],
),
],
)
],
),
)
CrossScrollBar
final CrossScrollBar _crossScrollBar= const CrossScrollBar(
isAlwaysShown:true,
hoverThickness: 8,
thickness :8,
radius : Radius.elliptical(8, 8),
showTrackOnHover: true,
trackVisibility: false,
);
CrossScrollStyle
final CrossScrollStyle _crossScrollStyle = CrossScrollStyle(
physics: BouncingScrollPhysics(),
clipBehavior:Clip.hardEdge,
dragStartBehavior: DragStartBehavior.start,
keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.manual,
reverse: false,
padding:const EdgeInsets.symmetric(vertical: 2),
);