theme_mode_builder 2.0.0 copy "theme_mode_builder: ^2.0.0" to clipboard
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

example/lib/main.dart

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());
}
23
likes
160
pub points
51%
popularity

Publisher

verified publisheralkhalaf.dev

A Flutter package for handling theme in an app and also saving it on the device with shared preferences

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, path, path_provider, provider, shared_preferences

More

Packages that depend on theme_mode_builder