simple_theme_switcher 0.0.7 copy "simple_theme_switcher: ^0.0.7" to clipboard
simple_theme_switcher: ^0.0.7 copied to clipboard

Simple light/dark mode switcher using material theme.Just wrap your App with STMaterialApp Widget and toggle it with a switch.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add simple_theme_switcher

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  simple_theme_switcher: ^0.0.7

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:simple_theme_switcher/simple_theme_switcher.dart';
1
likes
160
points
161
downloads

Publisher

unverified uploader

Weekly Downloads

Simple light/dark mode switcher using material theme.Just wrap your App with STMaterialApp Widget and toggle it with a switch.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_bloc

More

Packages that depend on simple_theme_switcher