Skip to content

Windmill-Smart-Solutions/FLUTTER-dark_floating_switcher

Repository files navigation

dark_floating_switcher

dark_floating_switcher widget for Flutter project.

Getting Started

For use dark_floating_switcher widget in your project:

  1. Add dependency in the pubspec.yaml file
    dependencies:
        flutter:
            sdk: flutter
        dark_floating_switcher:
            git:
                url: git@github.com:Windmill-Smart-Solutions/FLUTTER-dark_floating_switcher.git
  1. Import widget in the dart file:
    import 'package:dark_floating_switcher/dark_floating_switcher.dart';
    import 'package:dark_floating_switcher/dark_floating_switcher_state.dart';
  1. Make an instance of the widget.

         DarkFloatingSwitcher(
                state: DarkFloatingSwitcherState.on,
                valueChanged: (state) {
                  if (state == DarkFloatingSwitcherState.on) {
                    print('State is ON');
                  } else {
                    print('State is OFF');
                  }
                },
              )

    License

    Windmill Smart Solutions 2020 ©

About

dark_floating_switcher widget for Flutter project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages