win32_registry
3.0.3, released 7 months ago by halildurmus.dev
Type‑safe Dart API for accessing and managing the Windows Registry
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.
49Compare - typed_preferences
A type‑safe wrapper around SharedPreferences with observers and DAO support.
44Compare
Works with
Packages commonly used together with win32_registry: ones it builds on, ones built on it, and its own family.
- ffiwin32_registry depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- win32win32_registry depends on itCall common Windows APIs and COM objects directly from Dart using FFI.
- ffi_leak_trackerwin32_registry depends on itTracks and detects native memory leaks in Dart FFI allocations.
- filepicker_windowsSame familyWindows file and directory picker using native dialog controls
- win32_gamepadSame familyType-safe Dart API for accessing Windows gamepads via Win32
- win32_clipboardSame familyType‑safe Dart API for reading, writing and monitoring the Windows clipboard.
- device_info_plusBuilt on win32_registryProvides detailed information about the current device, make, model, and OS version.
- launch_at_startupBuilt on win32_registryAllows Flutter desktop apps to automatically launch on startup or login.