Skip to content

Repository files navigation

ThemeButton

https://pub.dev/packages/theme_button

It ensures a switch widget for Night/Light theme modes

Add Dependency

dependencies:
flutter:
sdk: flutter# add theme_buttontheme_button: ^{latest version}

Get Started

import'package:theme_button/theme_button.dart';
ThemeButton(
onChanged: (bool value) {
// do stuff
},
),

Property

PropertyTypeDefault ValueDescription
widthdouble72The width of the view
heightdouble72The height of the view
paddingEdgeInsetsEdgeInsets.zeroAnimation padding
durationDuration1 secondsAnimation speed
onChangedFun(value)nullIt'll be called when the switch has been changed by the user

About

Theme button provides a toggle widget for night/light modes

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages