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

libadwaita 封面
套件詳情v2.0.2

libadwaita

Libadwaita 的 Flutter 小工具。遵循 Gnome HIG,並可在所有平台使用。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
181
喜歡數
91
Pub 分數
130

安裝套件

flutter pub add libadwaita

套件介紹

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

Libadwaita 是一個 Flutter 小部件庫,將 GNOME 的人機介面指南(HIG)帶入 Flutter 應用程式。它提供了一個一致且現代的 UI 工具包,包含針對跨平台使用而設計的平台適應性小部件,適用於 Android、iOS、Web、macOS、Windows 和 Linux。該套件強調可存取性、易用性和視覺和諧,符合 GNOME 的設計原則。基於 GTK 的 libadwaita 建構,讓開發者能在不犧牲 Flutter 性能或彈性的前提下創造原生體驗。

適用情境

  • 使用 GNOME 風格的使用者介面建構跨平台桌面應用程式
  • 建立可存取且一致的介面
  • 開發針對 Linux 和其他桌面環境的應用程式
  • 在多平台專案中整合原生外觀的元件

主要特色

  • GNOME HIG 相容設計
  • 跨平台支援
  • 注重可存取性的元件
  • 適用於不同平台的自適應版面
  • 開源且持續維護
  • 與 Flutter 的無縫整合

適合對象

  • 針對 Linux 和桌面平台的開發者
  • 遵循 GNOME 設計標準的團隊
  • 需要在多個操作系統上保持一致的使用者介面的專案
  • 強調可存取性與易用性的應用程式

使用建議

  • 與主流套件相比,文件較少
  • 可能需要為非 GNOME 主題添加額外的樣式
  • 最適合桌面優先的應用程式
  • 不適合僅用於行動裝置或高度自訂的使用者介面

原始 README

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

Libadwaita ❤️ Flutter

CI GitHub Super-Linter

Pub.dev License Maintainer

Libadwaita's widgets for Flutter. Following Gnome HIG and available on all platforms.

libadwaita example screenshot

NOTE: For getting colors from gtk 3.0 theme use version <=0.9.8+1

Features

  • Various Libadwaita widgets ported to flutter
  • Some new widgets are also available, Check example for more info
  • Compatible with various packages

Usage

  • This only provides widgets, for theming you should consider adwaita or yaru package.
  • If you want custom titlebar then you can follow the steps for that on libadwaita_bitsdojo package.
  • Here is the list of widgets imported from libadwaita library : widgets.dart.

See the example app in the example folder for more info.

Relavant Links

Additional information

This package works great with

adwaita / yaru
For theming

Optional packages
adwaita_icons

For Adwaita Icons

libadwaita_bitsdojo

Example:

import 'package:libadwaita_bitsdojo/libadwaita_bitsdojo.dart';

AdwHeaderBar(
  actions: AdwActions().bitsdojo,
//...
)
libadwaita_searchbar

Example:

import 'package:libadwaita_searchbar/libadwaita_searchbar.dart';

bool searchedTerm = '';

AdwSearchBar(
  onSubmitted: (str) => setState(() => searchedTerm = str),
  controller: const TextEditingController(),
//...
)
libadwaita_searchbar_ac

Example:

import 'package:libadwaita_searchbar_ac/libadwaita_searchbar_ac.dart';

bool searchedTerm = '';

AdwSearchBarAc(
  suggestions: const ['Hi', 'Hello'],
  onSubmitted: (str) => setState(() => searchedTerm = str),
  controller: const TextEditingController(),
//...
)
libadwaita_nativeshell

Example:

import 'package:libadwaita_nativeshell/libadwaita_nativeshell.dart';

AdwHeaderBar(
  actions: AdwActions().nativeshell(context),
//...
)
libadwaita_titlebar_buttons

Example:

import 'package:libadwaita_titlebar_buttons/libadwaita_titlebar_buttons.dart';

AdwHeaderBar(
  controls: AdwControls().titlebarButtons(),
//...
)

Classic API Docs

Contributors

Based on Insights ranking and the value of commits

  • @prateekmedia - Creator and Maintainer of this library
  • @simrat39 - Added various widgets and Improved example app
  • @MalcolmMielle - Worked on theming side of adwaita and created CI
  • @jesusrp98 - Added widgets like AdwButton, AdwAvatar and improved some widgets
  • @pablojimpas - Added very_good_analysis and Fixed some code

Support the development

To sustain the development of this library we need someone who can help this library either through code or by donating to it. Donation will help us to live up in the world of unmaintained open source packages and to dedicate more time in improving this to live up to the mark. We will also add the name of the contributors or the donaters in the README section.

To donate directly you can use below link, don't forget to leave a message there:

Buy Me A Coffee

License

Mozilla Public License 2.0

TLDR;

  • You are free to use this package in whatever app you want,
  • If you improve the package then you should submit your patches / improvements to this repository.

所屬分類

依賴

依賴清單 7 項

原始碼儲存庫

使用此套件的專案