搜尋套件、儲存庫與 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

原始碼儲存庫

使用此套件的專案

所在榜單