settings_provider 0.3.0 settings_provider: ^0.3.0 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();
var generalSettings = GeneralSettings();
await generalSettings.init();
//await generalSettings.init();
runApp(
Settings(
model: generalSettings,
child: const SimpleApp(),
),
);
}