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

curved_drawer_fork 封面
套件詳情v0.0.1+1

curved_drawer_fork

一個容易使用的動畫抽屜 Flutter 小部件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
4
喜歡數
77
Pub 分數
140

安裝套件

flutter pub add curved_drawer_fork

套件介紹

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

一個 Flutter 套件,提供一種動畫曲線抽屜元件,用於直覺導航。以原始曲線抽屜為基礎建立,透過順暢的動畫與可自訂設計提升易用性。非常適合需要現代化、視覺吸引人導航體驗的應用程式。此元件支援多個平台,包括 Android、iOS、Web、macOS、Windows 與 Linux,確保跨平台的一致性。輕量級且容易整合,設定簡單。

適用情境

  • 建立現代應用程式導航
  • 透過動畫抽屜增強使用者介面
  • 跨平台建構響應式版面
  • 為移動應用和網頁應用增添視覺魅力
  • 實現可滑動的側邊菜單

主要特色

  • 流暢的動畫過渡
  • 可自訂的曲線形狀
  • 跨平台支援
  • 與現有 Flutter 項目輕鬆整合
  • 輕量且高效

適合對象

  • 尋求動畫導航的開發者
  • 注重設計的應用程式介面
  • 跨平台 Flutter 應用
  • UI/UX增強專案
  • 具有互動式側邊欄的應用

使用建議

  • 可能需要額外的樣式才能實現複雜的設計
  • 超出基本曲線參數的自訂功能有限
  • 依賴於父控制項的佈局約束
  • 不太適合高度複雜的導航層次結構
  • 最適合簡單到中等複雜度的抽屜需求

原始 README

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

curved_drawer

A Flutter widget that provides an easy to use animated drawer.

Gif

Add dependency
dependencies:
  curved_drawer: ^0.1.2 #latest version
Simple Implementation
Scaffold(
  drawer: CurvedDrawer(
    color: Colors.white,
    labelColor: Colors.black54,
    width: 75.0
    items: <DrawerItem>[
      DrawerItem(icon: personIcon),
      //Optional Label Text
      DrawerItem(icon: messageIcon, label: "Messages")
    ],
    onTap: (index) {
      //Handle button tap
    },
  ),
  body: Container(),
)
Attributes

items: List of DrawerItems index: Index of selected item - can be used to change current index or to set initial index
color: Color of drawer - default Colors.white buttonBackgroundColor: Background color of floating button - default same as color attribute
backgroundColor: Color of NavigationBar's background - default Colors.transparent onTap: Function handling taps on items
animationCurve: Curves interpolating button change animation - default Curves.easeOutCubic
animationDuration: Duration of button change animation - default Duration(milliseconds: 600)
width: Width of Drawer - default min 50.0, max 100.0 isEndDrawer: Set to true if used as as an end drawer - default is false

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。