theme_button 1.0.4 copy "theme_button: ^1.0.4" to clipboard
theme_button: ^1.0.4 copied to clipboard

Theme button provides a switch widget for night/light modes on Android,iOS, WEB and Desktop

ThemeButton #

It ensures a switch widget for Night/Light theme modes

Add Dependency #

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

Get Started #

import 'package:theme_button/theme_button.dart';

ThemeButton(
    onChanged: (bool value) {
        // do stuff
    },
),

Property #

Property Type Default Value Description
width double 72 The width of the view
height double 72 The height of the view
padding EdgeInsets EdgeInsets.zero Animation padding
duration Duration 1 seconds Animation speed
onChanged Fun(value) null It'll be called when the switch has been changed by the user
12
likes
160
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

Theme button provides a switch widget for night/light modes on Android,iOS, WEB and Desktop

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, lottie

More

Packages that depend on theme_button