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';
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),
),

Libraries

flutter_jsettings
A simple JSON key-value store.