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

源码仓库

使用此插件的项目

所在榜单