Skip to content
pubscout

gsettings

0.2.9, released 9 weeks ago by canonical.com

Client to access GSettings database for storing user preferences on Linux.

$ flutter pub add gsettings
Source repository

What it does

Provides a Dart client to access GSettings, the settings database used for storing user preferences on Linux. Allows reading, writing, and listening to changes on GSettings keys via D-Bus.

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

Use it when

  • You are developing a Flutter or Dart desktop application targeting Linux.
  • You need to integrate with native GNOME or desktop user preferences using GSettings.

Skip it when

  • You need cross-platform storage (Android, iOS, Windows, macOS).
  • You are looking for a general-purpose key-value store independent of Linux desktop environments.

Strengths

  • Native integration with Linux GSettings and D-Bus.
  • Supports memory and keyfile backends and schema directories.

Weaknesses

  • Limited exclusively to the Linux platform.
  • Requires proper D-Bus and GSettings schema setup on the host system.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
2

Requires Linux environment with D-Bus and GSettings support.

import 'package:gsettings/gsettings.dart';

void main() async {
  var settings = GSettings('org.gnome.desktop.interface');
  var value = await settings.get('font-name');
  var font = value.asString();
  print('Current font set to: $font');
  await settings.close();
}

Alternatives

Packages that do the same job and could replace gsettings.

  • fbdb

    Dart client for Firebird SQL using FFI, providing async API and low‑level bindings.

  • drift_postgres

    Postgres implementation and APIs for the drift database package.

  • pref

    Create Preference Screens easily with advanced features and sub-pages.

  • minio

    Unofficial MinIO and S3-compatible object storage client SDK for Dart and Flutter.

Works with

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