settings_provider 0.1.0 copy "settings_provider: ^0.1.0" to clipboard
settings_provider: ^0.1.0 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(),
    ),
  );
}
7
likes
0
pub points
20%
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