0 purchases
day night
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;
},
),
),
);
}
copied to clipboard
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.