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

flutter_advanced_drawer 封面
套件詳情v1.5.0

flutter_advanced_drawer

一個進階的抽屜小部件,可完全自訂大小、文字、顏色和角落圓角半徑。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
9730
喜歡數
439
Pub 分數
160

安裝套件

flutter pub add flutter_advanced_drawer

套件介紹

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

一個高度可自訂的抽屜小部件,適用於 Flutter,支援對大小、文字、顏色和圓角半徑進行完全控制。專為現代 UI 設計,透過流暢的動畫和彈性樣式選項,在所有主要平台提升導航體驗。非常適合需要精緻、回應式抽屜體驗且設定簡單的應用程式。此套件持續維護,並能順暢整合至現有的 Flutter 專案中。

適用情境

  • 可自訂的側邊導航菜單
  • 增強的使用者入門流程
  • 響應式應用程式外觀
  • 互動式儀表板介面
  • 現代移動和網路應用

主要特色

  • 完全可自定的尺寸和形狀
  • 支援自定文字與圖示
  • 可設定的圓角半徑
  • 平台無關設計
  • 流暢的動畫過渡
  • 可擴展的樣式選項

適合對象

  • 開發複雜導航系統的開發者
  • 注重設計的Flutter應用
  • 跨平台應用程式
  • UI密集型儀表板
  • 需要獨特抽屜美學的應用程式

使用建議

  • 需要手動處理開啟/關閉狀態
  • 有限的內建輔助功能
  • 可能需要額外的邏輯來處理複雜的路由
  • 對於預設抽屜的簡單使用案例來說並不理想
  • 在抽屜中包含大量內容時的性能影響

原始 README

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

flutter_advanced_drawer

An advanced drawer widget, that can be fully customized with size, text, color, radius of corners.

Advanced Drawer States

Drawer Open State Drawer Closed State
Advanced Drawer Open State Advanced Drawer Closed State

AdvancedDrawer Parameters

Parameter Description Type Default
child Screen widget Widget required
drawer Drawer widget Widget required
controller Widget controller AdvancedDrawerController
backdropColor Backdrop color Color
backdrop Backdrop widget for custom background Widget
openRatio Opening ratio double 0.75
openScale Opening child scale factor double 0.85
animationDuration Animation duration Duration 300ms
animationCurve Animation curve Curve Curves.easeInOut
childDecoration Child container decoration BoxDecoration Shadow, BorderRadius
animateChildDecoration Indicates that [childDecoration] might be animated or not. bool true
rtlOpening Opening from Right-to-left. bool false
disabledGestures Disable gestures. bool false
initialDrawerScale How large the drawer segment should scale from. double 0.75
drawerSlideRatio How far the drawer segment should slide with the content. double 0
drawerCloseSemanticLabel Semantic label for the close drawer button. String 'Close drawer'

Preview

Preview Tap Preview Gesture
Advanced Drawer Tap Animation Advanced Drawer Gestures

所屬分類

原始碼儲存庫

使用此套件的專案