theme_mode_builder 2.0.0 theme_mode_builder: ^2.0.0 copied to clipboard
A Flutter package for handling theme in an app and also saving it on the device with shared preferences
import 'package:flutter/material.dart';
import 'package:theme_mode_builder/theme_mode_builder.dart';
import 'package:theme_mode_builder_example/theme_mode_builder_example_app.dart';
Future<void> main() async {
/// ensure widgets are initialized
WidgetsFlutterBinding.ensureInitialized();
/// initialize theme mode builder
await ThemeModeBuilderConfig.ensureInitialized(
/// included for backward compatibility with old versions :D
subDir: "Theme Mode Builder Example",
);
/// Runs the app :)
runApp(ThemeModeBuilderExampleApp());
}