settings_provider 0.0.2 settings_provider: ^0.0.2 copied to clipboard
A library for providing declarative configuration of app settings (wraper for shared_preference).
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(),
),
);
}