day_night 0.0.7 day_night: ^0.0.7 copied to clipboard
A widget to select between light and dark ThemeMode (in development, but working fine)
A widget to toggle between a light or dark ThemeMode
Features #
Configurable colors for background and foreground colors for both light and dark modes API similar to standard Material Slider widget
TODO: List what your package can do. Maybe include images, gifs, or videos.
Getting started #
Flutter Android Flutter iOS Flutter Web Flutter Desktop
TODO: List prerequisites and provide or point to information on how to start using the package.
Usage #
TODO: Include short and useful examples for package users. Add longer examples
to /example
folder.
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(title),
),
body: Center(
child: ThemeModeSelector(
height: 39,
onChanged: (mode) {
print('ThemeMode changed to $mode');
ThemeModeManager.of(context).themeMode = mode;
},
),
),
);
}
Additional information #
TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more. # day_night_switch # day_night_switch