theme_mode_builder 1.0.2 theme_mode_builder: ^1.0.2 copied to clipboard
A Flutter package for handling theme in an app and also saving it on the device in a hive box.
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(
subDir: "Theme Mode Builder Example",
);
/// Runs the app :)
runApp(ThemeModeBuilderExampleApp());
}