Skip to content
pubscout

win32_registry

3.0.3, released 7 months ago by halildurmus.dev

Type‑safe Dart API for accessing and managing the Windows Registry

$ flutter pub add win32_registry
Source repository

What it does

Provides high‑level, strongly typed methods to read, write, delete, and monitor registry keys and values, with support for transactions and change notifications.

AI-written summary of version 3.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Windows desktop applications that need to read or modify registry settings
  • Installers or setup utilities that configure system or application settings
  • Tools that monitor registry changes for dynamic configuration

Skip it when

  • Non‑Windows platforms
  • Applications that prefer cross‑platform configuration storage (e.g., JSON, SQLite)

Strengths

  • Type‑safe, high‑level API built on win32
  • Supports transactions and change monitoring
  • No need to write raw FFI code
  • Active CI and code coverage

Weaknesses

  • Windows‑only, requires native FFI
  • Adds a dependency on win32 and ffi_leak_tracker
  • Limited to registry operations

Setup

Kind
FFI (native library)
Effort
Low
Code generation
No
Direct dependencies
5

Add win32_registry to pubspec, import package:win32_registry/win32_registry.dart

void main(){
  final key = LOCAL_MACHINE.open(r'Software\\Microsoft\\Windows NT\\CurrentVersion');
  final buildNumber = key.getString('CurrentBuild');
  if (buildNumber != null) {
    print('Windows build number: $buildNumber');
  }
  key.close();
}

Alternatives

Packages that do the same job and could replace win32_registry.

  • hivez

    Clean, type-safe wrapper for Hive databases with auto-initialization and fast queries.

  • typed_preferences

    A type‑safe wrapper around SharedPreferences with observers and DAO support.

Works with

Packages commonly used together with win32_registry: ones it builds on, ones built on it, and its own family.