settings_provider 0.1.1 copy "settings_provider: ^0.1.1" to clipboard
settings_provider: ^0.1.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();

  // Now we can create a consistent constructor asynchronously
  SettingsController controller =
      await SettingsController.consist(properties: settings, isDebug: false);

  runApp(
    Settings(
      controller: controller,
      child: const SimpleApp(),
    ),
  );
}
6
likes
0
pub points
48%
popularity

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

License

unknown (LICENSE)

Dependencies

flutter, nested, shared_preferences

More

Packages that depend on settings_provider