搜索插件、代码仓与 APP 分类

desktop 封面
插件详情v6.0.2

desktop

适用于桌面的 Flutter 设计标准。仅使用简单、实用的组件来创建应用程序。请参阅图库以了解所用组件的示例。

近 30 天下载
215
喜欢数
173
Pub 分数
70

安装插件

flutter pub add desktop

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个专为桌面应用程序设计的 Flutter 小部件库,提供简单易用的组件,并遵循一致的设计标准。它提供了一组针对 Windows、Linux 和 macOS 优化的即用型小部件,使开发者能够以最少的努力构建直观的桌面应用。该包强调可用性和视觉一致性,并在其画廊中展示了示例。非常适合希望在 Flutter 生态系统内采用简化方法进行桌面 UI 开发的开发者。

适合场景

  • 构建跨平台桌面应用程序
  • 在 Windows、Linux 和 macOS 上创建一致的 UI
  • 桌面界面的快速原型设计
  • 开发生产力工具
  • 设计用户友好的桌面仪表板
  • 增强 Flutter 的原生桌面小部件支持

主要特点

  • 桌面优化的部件设计
  • 一致且干净的 UI 组件
  • 通过 pub 简单集成
  • 带有组件示例的画廊
  • 跨平台兼容性
  • 最小配置要求

适合对象

  • 面向桌面平台的 Flutter 开发者
  • 构建以桌面为中心的应用程序的团队
  • 以用户界面为重点的应用程序设计师
  • 初学者探索桌面 Flutter 开发
  • 希望拥有标准化桌面组件的开发者

使用建议

  • 仅限桌面平台(不支持移动设备或网页)
  • 依赖于 Flutter 的桌面支持
  • 可能需要自定义样式以满足高级用例
  • 不适用于移动或Web项目
  • 最适合与 Flutter 3.0+ 配合使用,以实现完整的平台兼容性
  • 除了基本样式外,没有内置主题

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Desktop

pub package

Minimal Desktop widgets for Flutter.

  • Navigation
    • Breadcrumb
    • Nav
    • Tab
    • Tree
  • Data
    • List table
    • Date form field
    • Text form field
  • Dialogs
    • Dialog
    • Message
    • Tooltip
    • Date picker
    • Drawer
  • Input
    • Button
    • Context menu
    • Dropdown menu
    • Hyperlink
    • Slider
    • Checkbox
    • Radio
    • Toggle switch
  • Status
    • Progress indicator
  • Text
    • Text field
    • Selectable text
  • Scrollbar

Gallery

Navigation
Breadcrumb Nav
breadcrumb nav_vertical
Nav Horizontal Tree
nav_horizontal tree
Tab Custom Tab
tab tab_custom
Data
List Table List Table Borderless
list_table list_table_borderless
Text Form Field Date Form Field
text_form_field date_form_field
Dialogs
Dialog Date Picker
dialog date_picker
Tooltip Message
tooltip message_error
Input
Button Hyperlink
button hyperlink
Slider Checkbox
slider checkbox
Radio Toggle Switch
radio toggle_switch
Status
Linear Progress Indicator Circular Progress Indicator
linear_progress_bar circular_progress

See Gallery, for more examples.

Example

DesktopApp(
  theme: ThemeData(
    brightness: Brightness.dark,
    primaryColor: PrimaryColors.royalBlue.primaryColor,
  ),
  home: Nav(
    trailingMenu: [
      NavItem(
        title: 'settings',
        builder: (context) => NavDialog(
          child: Container(
            alignment: Alignment.center,
            padding: EdgeInsets.all(32.0),
            width: 600.0,
            child: Text(
              'Settings page',
              style: textTheme.subtitle,
            ),
          ),
        ),
        icon: Icons.settings,
      ),
    ],
    items: [
      NavItem(
        builder: (context) => Center(
            child: Text(
          'Home',
          style: textTheme.title,
        )),
        title: 'Home',
        icon: Icons.today,
      ),
      NavItem(
        builder: (context) => Center(
            child: Text(
          'Library',
          style: textTheme.title,
        )),
        title: 'Library',
        icon: Icons.today,
      ),
    ],
  ),
)

Project structure

  • desktop - The main package.
  • docs - The folder with the html page built by the docs_web component.
  • docs_web - The implementation of desktop documentation.

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。