day_night_themed_switch 1.0.0
day_night_themed_switch: ^1.0.0 copied to clipboard
Custom Switch widget with day and night theme
day_night_themed_switch #
Custom Switch widget with day and night theme. Based on UX design found on Instagram.
Installation #
In the dependencies:
section of your pubspec.yaml
, add the following line:
dependencies:
day_night_themed_switch: <latest_version>
Usage #
Import the package:
import 'package:day_night_themed_switch/day_night_themed_switch.dart';
Use the switcher like:
DayNightSwitch(
value: true,
onChanged: (_) {},
),