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

fluent_ui 封面
套件詳情v4.17.0

fluent_ui

在Flutter中實現微軟的Windows使用者介面。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2.6萬
喜歡數
3230
Pub 分數
160

安裝套件

flutter pub add fluent_ui

套件介紹

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

Fluent UI 是一個 Flutter 套件,將微軟的 Fluent Design System 帶入 Flutter 應用程式,讓開發者能在多個平台建立視覺上一致且現代化的介面。它提供一組符合微軟設計原則的可自訂元件,包含透明度、深度、動畫與光效。此套件支援所有主要平台——Android、iOS、Web、macOS、Windows 與 Linux,非常適合追求原生 Windows 風格體驗的跨平台應用。憑藉豐富的元件庫與 Fluent Design 的契合,它透過精緻且反應迅速的使用者介面提升使用者參與度。

適用情境

  • 使用 Windows 原生外觀建構跨平台應用
  • 使用流暢設計元素創建現代使用者介面
  • 使用一致的品牌標識開發企業或生產力應用程式
  • 設計面向 Windows 使用者的應用程式
  • 實現動態視覺效果,如磨砂模糊和視差

主要特色

  • 全面的 Fluent Design 組件
  • 跨平台支援(Android、iOS、Web、macOS、Windows、Linux)
  • 丙烯模糊和動態效果
  • 可自訂的主題和樣式
  • 響應式和自適應佈局組件
  • 與 Flutter 的 widget 系統整合

適合對象

  • 面向 Windows 使用者的開發者
  • 跨平台建構統一 UI 的團隊
  • 希望擁有流暢設計美學的設計師
  • 企業應用開發
  • 需要現代動畫使用者介面互動的應用程式

使用建議

  • 由於額外的資源,可能會增加應用大小
  • 需要理解 Fluent Design 原則
  • 大量使用動畫時的效能影響
  • 與核心 Flutter 相比,文件較少
  • 非 Windows 平台上的潛在不一致

原始 README

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

fluent_ui


Design beautiful native Windows apps using Flutter

Unofficial implementation of Windows UI for Flutter. It's written based on the official documentation.

Read the documentation

Motivation and maintenance

Since Flutter has stable Windows support, it's necessary to have support to its UI guidelines to build apps with fidelity, the same way it has support for Material and Cupertino. See this for more info on the offical fluent ui support

See also:


This is an open-source package, which means that anyone can contribute to it. However, I, bdlukaa, am the only one actively maintaining it, so it may take some time to review and merge pull requests. If you want to support the project, you can sponsor me.

Installation

Add the package to your dependencies:

dependencies:
  fluent_ui: ^4.15.1

OR

dependencies:
  fluent_ui:
    git: https://github.com/bdlukaa/fluent_ui.git

Finally, run dart pub get to download the package.

Projects using this library should use the stable channel of Flutter


Accent color

Common controls use an accent color to convey state information. Learn more.

By default, the accent color is Colors.blue. However, you can also customize your app's accent color to reflect your brand:

FluentThemeData(
  accentColor: Colors.blue,
)

To use the system's accent color, you can use the plugin system_theme. It has support for the Android, iOS, Web, MacOS, Windows and Linux (GTK 3+) platforms.

import 'package:system_theme/system_theme.dart';

FluentThemeData(
  accentColor: AccentColor.swatch({
    'darkest': SystemTheme.accentColor.darkest,
    'darker': SystemTheme.accentColor.darker,
    'dark': SystemTheme.accentColor.dark,
    'normal': SystemTheme.accentColor.accent,
    'light': SystemTheme.accentColor.light,
    'lighter': SystemTheme.accentColor.lighter,
    'lightest': SystemTheme.accentColor.lightest,
  }),
)

Localization

FluentUI widgets currently supports out-of-the-box an wide number of languages, including:

  • Arabic (@dmakwt)
  • Bahasa Indonesia (@ekasetiawans)
  • Belarusian (@superkeka)
  • Czech (@morning4coffe-dev)
  • Croatian (@ZeroMolecule)
  • Dutch (@h3x4d3c1m4l)
  • English
  • French (@WinXaito)
  • German (@larsb24)
  • Greek (@pana-g)
  • Hebrew (@yehudakremer)
  • Hindi (@alexmercerind)
  • Hungarian (@RedyAu)
  • Italian (@patricknicolosi)
  • Japanese (@chari8)
  • Korean (@dubh3)
  • Malay (@jonsaw)
  • Nepali (@larence-cres)
  • Persian (@xmine64)
  • Polish (@madik7)
  • Portuguese (@bdlukaa)
  • Romanian (@antoniocranga)
  • Russian (@raitonoberu)
  • Simplified Chinese (@zacksleo, @rk0cc)
  • Tagalog (@Yivan000)
  • Tamil (@sarankumar-ns)
  • Traditional Chinese (@zacksleo, @rk0cc)
  • Thai (@lines-of-codes)
  • Turkish (@timurturbil)
  • Spanish (@henry2man)
  • Ukranian (@vadimbarda)
  • Urdu (@sherazahmad720)
  • Uzbek (@bobobekturdiyev)

If a language is not supported, your app may crash. You can add support for a new language or use a supported language. Learn more

Contribution

Feel free to file an issue if you find a problem or make pull requests.

All contributions are welcome :)

Contributing new localizations

In PR#216 we added support for new localizations in FluentUI Widgets.

If you want to contribute adding new localizations please follow this steps:

  • Fork the repo
  • Copy lib/l10n/intl_en.arb file into lib/l10n folder with a new language code, following this list of ISO 859-1 codes
  • Update the contents in the newly created file. Specially, please update the @locale value with the corresponding ISO code.
  • Run your project and code generation will take place or run command flutter gen-l10n
  • When you're done, make a new pull request

More about Localization in the Flutter Official Documentation

Acknowledgements

Irrespective of order, thanks to all the people below for contributing with the project. It means a lot to me :)

所屬分類

依賴

依賴清單 5 項

原始碼儲存庫

使用此套件的專案

所在榜單