tp_cross_scroll version: 0.2.1

Published 2026-10-30

n/a

sdk | dart flutter
repository | svn
platform | n/a
status | n/a
  • Readme
  • Changelog
  • Versions

taken from version: 0.1.1

copied due to outdated dependencies and bugs.


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.

🔗 Links

linkedin

Tested Platform

WEB

  • MicroSoft Edge

cross_scroll web test

  • MacOS-Chrome mac-web-test

Windows

  • Windows 10

cross_scroll window test

Mobiles

  • IOS 15.2

IOS image

  • Android 11

Android image

Getting started

CrossScrollView

CrossScroll(child:Container(), ///your child 
    );
 

Modify Thumb and Track

 CrossScrollBar crossScrollBar=CrossScrollBar(thumb: ScrollThumb.alwaysShow,
    track: ScrollTrack.show,
    thickness: 8,
    hoverThickness: 8,
    thumbRadius: Radius.elliptical(8, 8));

Scrolling Behaviours

 final CrossScrollStyle _crossScrollStyle =  CrossScrollStyle(
    physics: BouncingScrollPhysics(),
    keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.manual,
    padding:const EdgeInsets.symmetric(vertical: 2),
  );

Infinite Cross Scrolling (BETA)


 CrossScrollBar(
 controller: controller,
child: InfiniteCrossScroll(
maxRows: 10,
maxColumns: 10,
controller: controller,
cellSize: const Size(150, 150),
builder: (context, vicinity) => Container(
height: 150,
width: 150,
color: Color.fromARGB(255, Random().nextInt(255),
Random().nextInt(255), Random().nextInt(255)),
   ),
  ),
 ),

License

This project is licensed under the MIT License - see the LICENSE file for details.

Additional information

Coming soon...


Changelog

0.2.1 - 2026-10-30

Changed

  • Version bump from 0.2.0 to 0.2.1 (material_ui -> 1.9.0 (was 1.8.0)).

0.2.0 - 2026-10-29

  • Fixed: LateInitializationError crash in CrossScrollThumb — replaced late bool fields with initialized defaults.
  • Fixed: LateInitializationError crash in CrossScrollController — replaced late ScrollController with eagerly initialized controllers.
  • Fixed: Division by zero crash in ratio() — added guard when viewport equals thumb size.
  • Fixed: Memory leak in InfiniteCrossScroll — internally created CrossScrollController is now properly disposed.
  • Fixed: Swapped maxRows/maxColumns in InfiniteCrossScroll — maxXIndex now correctly maps to columns and maxYIndex to rows.
  • Fixed: Removed Scaffold wrapper from CrossScroll and InfiniteCrossScroll — widgets can now be properly embedded in parent layouts.
  • Fixed: Copy-paste bug in CrossScrollThumb where BOTTOM_LEFT was checked twice instead of BOTTOM_RIGHT.

0.1.1 - 2026-10-29

  • port from original source.

0.2.1

2026-10-30 download