搜尋套件、儲存庫與 APP 分類

nested_scroll_views 封面
套件詳情v0.0.12

nested_scroll_views

Flutter 嵌套滾動視圖。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
965
喜歡數
53
Pub 分數
140

安裝套件

flutter pub add nested_scroll_views

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個增強嵌套滾動功能的Flutter套件,可實現滾動元件之間流暢且快速反應的互動。它提供對嵌套滾動檢視的改進處理,確保父級與子級滾動元件之間的滾動物理效果與協調性。適用於需要分層滾動行為的複雜UI佈局,例如可摺疊標題或整合的滾動區段。此套件相容所有主要平台,並可順暢整合至現有的Flutter專案中。

適用情境

  • 具有分層可滾動內容的複雜UI
  • 可摺疊標題帶有嵌套滾動效果
  • 在單一視圖中整合可滾動的區段
  • 滾動可滾動容器內的內容
  • 多平台上的響應式佈局

主要特色

  • 改進的嵌套滾動協調
  • 跨平台相容性
  • 與 Flutter 的 ScrollController 無縫整合
  • 對自定義滾動物理效果的支援
  • 嵌套捲動的優化效能

適合對象

  • 開發高級可滾動介面的開發者
  • 具有動態標題欄行為的應用程式
  • 多層滾動佈局
  • 針對 Android、iOS、Web、macOS、Windows 和 Linux 的專案
  • 尋求可靠嵌套滾動解決方案的團隊

使用建議

  • 可能需要仔細設定以處理複雜的巢狀
  • 深度嵌套結構帶來的效能影響
  • 在簡單情況下,不是內建滾動檢視的替代品
  • 在標準嵌套捲動無法滿足需求時使用最佳
  • 需要了解 Flutter 的滾動系統

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Nested Scrolling Views

Flutter nested scrolling views.

NestedTabBarView.gif NestedPageView.gif NestedSingleChildScrollView.gif

Usage

Replace flutter's views with the following views and use them nested.

Flutter Nested
PageView NestedPageView
TabBarView NestedTabBarView
ListView NestedListView
GridView NestedGridView
CustomScrollView NestedCustomScrollView
SingleChildScrollView NestedSingleChildScrollView

Attention

  1. Nested non-nested views with the same scroll direction will result in weird scrolling.
  2. Nested views are kept alive by default, you can set wantKeepAlive to false, which may lead to loss of gesture events because the page is destroyed.

Thanks

  • flutter:Flutter makes it easy and fast to build beautiful apps for mobile and beyond

  • union_tabs:A nested TabBarView overscroll unites outer TabBarView scroll event

  • primary_page_view:FLutter Nested Primary PageView

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。