settings_provider 0.2.1 copy "settings_provider: ^0.2.1" to clipboard
settings_provider: ^0.2.1 copied to clipboard

A library for providing declarative configuration of app settings (wraper for shared_preference).

example/lib/main.dart

import 'package:example/src/simple_app/settings.dart';
import 'package:flutter/material.dart';
import 'package:settings_provider/settings_provider.dart';

import 'src/simple_app/app.dart';

void main() async {
  // the binding on which Flutter depends must be done as a matter of priority
  WidgetsFlutterBinding.ensureInitialized();

  var generalSettings = GeneralSettings();

  await generalSettings.init();

  //await generalSettings.init();

  runApp(
    Settings(
      model: generalSettings,
      child: const SimpleApp(),
    ),
  );
}
7
likes
160
pub points
20%
popularity
screenshot

Publisher

unverified uploader

A library for providing declarative configuration of app settings (wraper for shared_preference).

Repository (GitHub)
View/report issues

Topics

#settings #settings-management

Documentation

API reference

License

MIT (license)

Dependencies

flutter, nested, shared_preferences

More

Packages that depend on settings_provider