flutter_jsettings 0.1.0 copy "flutter_jsettings: ^0.1.0" to clipboard
flutter_jsettings: ^0.1.0 copied to clipboard

JSON settings

flutter_jsettings #

pub license: MPL CI codecov

A simple JSON key-value store for Flutter.

Similar to shared_preferences on Linux and Windows but uses a filesystem watcher to provide change notifications.

import 'package:flutter_jsettings/flutter_jsettings.dart';
copied to clipboard
ChangeNotifierProvider(
  create: (_) => JSettingsNotifier('/path/to/settings.json'),
  child: MyApp(),
)
copied to clipboard
Checkbox(
  value: context.watch<JSettingsNotifier>().getBool('key') ?? false,
  onChanged: (v) => context.read<JSettingsNotifier>().setValue('key', v),
),
copied to clipboard
5
likes
140
points
166
downloads

Publisher

verified publishercanonical.com

Weekly Downloads

2024.09.11 - 2025.03.26

JSON settings

Repository (GitHub)
View/report issues

Documentation

API reference

License

MPL-2.0 (license)

Dependencies

flutter, jsettings

More

Packages that depend on flutter_jsettings