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

套件詳情v4.2.0

system_info2

提供對系統有用資訊的便捷存取(體系結構、位數、核心、記憶體、作業系統、CPU、使用者)。

AndroidiOSmacOSWindowsLinux
近 30 天下載
99.8萬
喜歡數
67
Pub 分數
150

安裝套件

flutter pub add system_info2

套件介紹

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

system_info2 是一個 Flutter 套件,可跨多個平台(包括架構、位數、核心版本、記憶體使用情況、作業系統詳情、CPU 資訊和使用者資料)提供對詳細系統資訊的簡單存取。此套件專為行動與桌面環境(Android、iOS、macOS、Windows、Linux)設計,讓開發者能收集關鍵裝置元資料,用於診斷、效能監控或應用程式個人化。該套件輕量且可透過簡單的 pub add 命令無縫整合至 Flutter 專案中。

適用情境

  • 設備診斷
  • 效能監控
  • 應用個性化
  • 跨平台相容性檢查
  • 系統健康狀態追蹤

主要特色

  • 跨平台支援
  • 輕鬆的 API 結合
  • 即時系統資料
  • 最小開銷
  • 完整的硬體資訊

適合對象

  • 開發診斷工具的開發者
  • 需要系統感知的應用程式
  • 跨平台 Flutter 應用
  • 分析設備功能的工具
  • 需要執行階段環境資訊的應用程式

使用建議

  • 某些作業系統需要特定平台的權限
  • 僅限只讀系統資料
  • 沒有輪詢就無法實現即時更新
  • 不適合用於敏感系統操作
  • 依賴底層作業系統API以確保準確性

原始 README

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

system_info2

A fork of system_info as the original maintainer no longer wishes to do so.

Thanks to onepub.dev for allowing me the time and resources to support this package.

Provides easy access to useful information about the system (architecture, bitness, kernel, memory, operating system, CPU, user).

system_info2 lets you discover specific hardware characteristics of the OS you are running on includeing:

  • kernelArchitecture
  • Kernel bitness
  • Kernel name
  • Kernel version
  • Operating system name
  • Operating system version
  • User directory
  • User id
  • User name
  • User space bitness

Basic examples:

if (SysInfo.operatingSystemName == "Ubuntu") {
  log.info("We love Ubuntu users");
}

Documentation

You can find the manual at:

sysinfo.onepub.dev

所屬分類

依賴

依賴清單 2 項

  • globbing^1.0.0
  • path^1.8.0

原始碼儲存庫

使用此套件的專案