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

titlebar_buttons 封面
套件詳情v1.0.0

titlebar_buttons

一個提供 Windows、Linux 和 macOS 上大多數標題列按鈕的套件。

AndroidiOSmacOSWindowsLinux
近 30 天下載
1150
喜歡數
35
Pub 分數
140

安裝套件

flutter pub add titlebar_buttons

套件介紹

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

titlebar_buttons 套件為 Windows、Linux 與 macOS 上的桌面應用程式提供一組標準的視窗標題列按鈕。它提供一致且符合平台特性的控制項,例如最小化、最大化、關閉與還原,提升 Flutter 桌面應用的原生外觀與感覺。此套件設計以符合作業系統慣例為目標,透過將平台特定的按鈕行為抽象成統一的 API,簡化 UI 開發。對於希望在不需手動樣式設定或複雜邏輯的情況下,交付精緻桌面體驗的開發者而言,此套件極為理想。

適用情境

  • 建立原生類桌面應用介面
  • 在Flutter應用中添加標準窗口控制項
  • 在 Windows、Linux 和 macOS 上提升使用者體驗
  • 建構跨平台桌面應用程式
  • 無需平台特定程式碼即可自訂視窗管理
  • 整合現代標題列設計

主要特色

  • 跨平台標題列按鈕
  • 支援 Windows、Linux 與 macOS 的慣例
  • 與 Flutter 集成的最小設定
  • 跨平台一致的視覺設計
  • 輕鬆自訂按鈕外觀
  • 內建的視窗狀態變更處理

適合對象

  • 使用 Flutter 的桌面應用程式開發者
  • 面向多個桌面平台的項目
  • 需要原生視窗控制項的應用程式
  • 開發者專注於使用者體驗的一致性
  • 建構專業級桌面軟體的團隊
  • 那些想要避免自定按鈕實現的人

使用建議

  • 不適用於行動平台(Android/iOS)
  • 需要桌面環境支援
  • 僅限窗口控制功能
  • 可能需要額外的樣式才能完全自訂
  • 不處理視窗調整大小或定位
  • 取決於底層作業系統的渲染行為

原始 README

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

Titlebar buttons

A package which provides most of the titlebar buttons from windows, linux and macos.

materia
breeze
osx_arc
yaru

Features

  • Easier to use and implement
  • Native looking titlebar buttons for close, minimize and maximize actions

Usage

Let's say you want a minimize button with look and feel of yaru theme, you can do that with DecoratedMinimizeButton which comes with a type property which accepts ThemeType (defaults to auto)

DecoratedMinimizeButton(
    type: ThemeType.yaru,
    onPressed: () {},
),

Similarly you can use DecoratedCloseButton for close button and DecoratedMaximizeButton for maximize button.

LICENSE

Mozilla Public License 2.0

所屬分類

依賴

依賴清單 4 項

原始碼儲存庫

使用此套件的專案