Search packages, repositories and app categories

Package detailsv0.2.9

gsettings

Provides a client to access GSettings - a settings database used for storing user preferences on Linux.

Linux
30-day downloads
1.9M
Likes
30
Pub points
160

Install package

flutter pub add gsettings

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The gsettings package provides a Flutter client for accessing GSettings, a system-wide settings database used on Linux to store user preferences. It enables Flutter applications running on Linux to read from and write to GSettings schemas, allowing seamless integration with the desktop environment's configuration system. This is particularly useful for apps that need to respect or modify system-level settings such as theme preferences, keyboard shortcuts, or display configurations. The package is maintained by Canonical and is designed specifically for Linux platforms.

Use cases

  • Integrating with Linux desktop environment settings
  • Reading and writing user preference values
  • Synchronizing app settings with system defaults
  • Customizing UI themes based on system settings
  • Implementing system-level configuration options

Key features

  • Native GSettings schema access
  • Supports reading and writing settings
  • Designed specifically for Linux
  • Maintained by Canonical
  • Simple Dart API for GSettings operations

Suitable for

  • Linux-only Flutter applications
  • Desktop apps requiring system setting integration
  • Developers targeting Ubuntu and other GNOME-based distributions
  • Apps needing to follow system-wide UI/UX conventions

Considerations

  • Limited to Linux platform only
  • Requires GSettings schemas to be available
  • May require elevated permissions for certain settings
  • Depends on underlying D-Bus infrastructure
  • Not compatible with Windows or macOS

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Pub Package codecov

Provides a client to use GSettings - a settings database used for storing user preferences on Linux.

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();
}

Contributing to gsettings.dart

We welcome contributions! See the contribution guide for more details.

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package