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

A widget to select between light and dark ThemeMode (in development, but working fine)

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add day_night

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

dependencies:
  day_night: ^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:day_night/day_night.dart';
1
likes
120
pub points
22%
popularity

Publisher

unverified uploader

A widget to select between light and dark ThemeMode (in development, but working fine)

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on day_night