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

yaru 封面
套件詳情v12.0.0

yaru

構建桌面和Web應用程式時常用的Flutter小部件。

Linux
近 30 天下載
2萬
喜歡數
293
Pub 分數
150

安裝套件

flutter pub add yaru

套件介紹

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

Yaru 是一個 Flutter 套件,提供一組常用元件,專為打造具有一致且現代化設計的桌面與網頁應用程式而量身訂做。由 Ubuntu 設計,與 Yaru 設計系統相符,提供視覺上協調的元件,針對 Linux 平台優化,同時在 Web 及其他桌面環境中仍能有效運作。此套件強調易用性、可及性以及符合平台風格的樣式,以簡化使用者介面開發。

適用情境

  • 建構跨平台桌面應用程式
  • 建立具有統一外觀的網頁介面
  • 開發原生 Linux 風格的 Flutter 應用
  • 增強設計系統中的UI一致性
  • 使用預設樣式的組件快速原型設計

主要特色

  • 針對 Linux 平台優化的小部件
  • 跨平台的一致性設計語言
  • 面向可存取性的元件
  • 與 Ubuntu 的視覺識別整合
  • 適用於常見模式的即用型 UI 元素

適合對象

  • 面向 Linux 的桌面應用程式開發者
  • 尋求統一樣式的Web應用程序設計師
  • 使用 Ubuntu 設計系統的團隊
  • Flutter 專案需要精緻的 UI 元件
  • 旨在快速實現使用者介面的開發人員

使用建議

  • 主要針對 Linux 環境進行優化
  • 超出預設主題的自訂選項有限
  • 最適合與 Ubuntu 的美學風格一致的應用程式
  • 可能需要為非 Linux 平台添加額外的樣式
  • 不適用於行動應用程式開發

原始 README

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

The official Flutter Yaru Theme and Widgets Suite

Pub Package

This repository and package contains:

  • flutter widgets useful for building desktop and web applications, following but also expanding the yaru theme for the gnome desktop in Ubuntu 22.04+.
  • a theme for widgets from material.dart and from this repository
  • a complete icon set for flutter apps following the yaru design language

LIVE DEMO IN YOUR BROWSER

screenshot screenshot screenshot

Contributing

  • for everything you need

    • flutter

      sudo apt -y install git curl cmake meson make clang libgtk-3-dev pkg-config && mkdir -p ~/development && cd ~/development && git clone https://github.com/flutter/flutter.git -b stable && echo 'export PATH="$PATH:$HOME/development/flutter/bin"' >> ~/.bashrc && source ~/.bashrc
      
    • VsCode

      sudo snap install code --classic
      
  • to work on the icons and then build the font, you need to install the icon_font_generator tool:

    dart pub global activate -sgit https://github.com/Jupi007/icon_font_generator.git --git-ref yaru
    
  • Source SVGs files are located inside ./icons. The final icon name is determined by subfolder_name + icon_name (Ex: icons/mimetype/text-plain.svg will be named mimetype_text_plain).

  • After modifying or adding icons, you must run the build script, which will generate the icon font:

    ./build-icons.sh
    

    or run

    yaru_icon_font_generator assets/icons assets/yaru_icons.otf --output-class-file=lib/src/yaru_icons.dart -r
    

Contributing new gtk<->Flutter theme mappings

  1. Add a new YaruVariant in variant.dart
  2. Add a new mapping into the resolveVariant method inside inherited_theme.dart

Copying or Reusing

The theme and widgets are licensed under Mozilla Public License Version 2.0.

The icons have mixed licencing. You are free to copy, redistribute and/or modify aspects of this work under the terms of each licence accordingly (unless otherwise specified).

The icon assets (any and all source .svg files or rendered .ttf font) are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 License.

Included scripts are free software licensed under the terms of the GNU General Public License, version 3.

所屬分類

依賴

依賴清單 11 項

原始碼儲存庫

使用此套件的專案