flutter_jsettings library

A simple JSON key-value store.

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

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

Extensions

JSettingsX