搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目