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

插件详情v6.4.0

win32

使用 FFI 直接从 Dart 调用通用 Windows API。

Windows
近 30 天下载
1160万
喜欢数
958
Pub 分数
160

安装插件

flutter pub add win32

插件介绍

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

win32 包使 Dart 应用程序能够使用外部函数接口 (FFI) 直接调用常见的 Windows API。它提供了一种低级别的、高效的方式来与 Windows 操作系统交互,允许访问诸如注册表操作、文件管理以及窗口处理等系统功能。该包专为 Windows 桌面开发设计,无需编写平台特定代码即可将 Dart 与原生 Windows 功能连接起来。对于构建高性能、系统集成的桌面应用程序的开发者而言,该包非常理想。

适合场景

  • 访问 Windows 注册表
  • 管理系统文件和目录
  • 与 Windows UI 组件交互
  • 与 Windows 服务集成
  • 执行系统级操作

主要特点

  • 对 Windows API 的直接 FFI 访问
  • 最小开销和高性能
  • 全面的 Windows API 绑定
  • 与Flutter桌面应用轻松集成
  • 定期更新新的 Windows 功能

适合对象

  • 面向 Windows 的桌面应用程序开发者
  • 需要系统级访问权限的应用程序
  • 高性能 Windows 集成
  • 使用 Flutter 开发 Windows
  • 需要原生 Windows 功能的项目

使用建议

  • 仅支持 Windows 平台
  • 需要理解 FFI 和 C 风格 API
  • 系统访问潜在的安全风险
  • 与其他高级包相比,文档有限
  • 不适用于跨平台桌面应用程序

原始 README

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

ci codecov GitHub stars Language: Dart License: BSD-3-Clause

This monorepo contains the win32 family of Dart packages – everything you need to build Windows-native applications in Dart and Flutter. The packages range from low-level Win32 and COM API bindings to modern, type-safe APIs for everyday Windows features like the Registry, Clipboard, gamepads, and more.

📦 Packages

Package Description Pub Issues
ffi_leak_tracker Allocation tracking and leak detection for Dart FFI code pub issues
filepicker_windows File and directory picker for Windows that uses common dialog controls pub issues
win32 Call common Windows APIs directly from Dart using FFI pub issues
win32_clipboard A modern, type-safe Dart API for accessing and managing the Windows Clipboard pub issues
win32_gamepad A modern, type-safe Dart API for accessing gamepads connected to a Windows machine pub issues
win32_registry A modern, type-safe Dart API for accessing and managing the Windows Registry pub issues
win32_runner A Dart runner for Flutter Windows apps — no C++ compiler required pub issues
winmd Inspect and generate Windows Metadata (.winmd) files based on the ECMA-335 standard pub issues
Internal Packages
Package Description Issues
generator Generates Win32 and COM API projections from Windows Metadata issues

🐞 Features and Bugs

If you encounter bugs or need additional functionality, please file an issue.

所属分类

依赖

依赖清单 3 项

  • ffi^2.1.4
  • ffi_leak_tracker^0.1.1
  • meta^1.17.0

源码仓库

使用此插件的项目

所在榜单