GitHub 儲存庫Mehrankhan-METRA-RGB/cross_scroll

cross_scroll

CrossScroll 是一個 Flutter 套件,允許其子視圖進行垂直和水平滾動。這很重要,因為在許多情況下,您需要內容在兩個方向上都能滾動。

cross_scroll 專案封面
星標
10
分支
6
最近推送(UTC)
2024年9月6日
專案狀態
未封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。


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...


Mehran Ullah GitHub avatar
GitHub 作者

Mehran Ullah ↗

As a seasoned Software Developer, my expertise lies in Flutter and NodeJS. My primary objective is to develop complex apps.

METRA-DEVPakistan, KPK, Peshawar
語言DartC++CMakeHTMLSwiftCKotlinObjective-C

分類

此儲存庫發佈的套件

使用的依賴

依賴清單 2 項

  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗