Flutter package for animated switchers in your flutter application
To use flutter_animated_switchers, follow the following steps:
- add the plugin to your pubspec.yaml file:
flutter_animated_switchers: [latest_version]
- import the plugin in [your_file].dart
import 'package:flutter_animated_switchers/flutter_animated_switchers.dart';
const FlutterAnimatedSwitcher(
switcherType: SwitcherType.styleOne,
),
- you can also listen to state changes from the following two states:
STATE | DESCRIPTION | DATA TYPE / FORMAT |
---|---|---|
State On | When the switcher is turned on | bool: true |
State Off | When the switcher is turned off | bool: false |
FlutterAnimatedSwitcher(
switcherType: SwitcherType.styleFive,
onTap: (() {
print("Tapped");
}),
onStateChanged: ((state) {
print("current state is $state");
}),
)
- Example Gif/Mp4 files for review are as below: (wait while its loading)
styleone.mp4
styletwo.mp4
stylethree.mp4
stylefour.mp4
stylefive.mp4
In case you need: to add new feature or you get any error or any help, please contact me at [email protected] or [email protected] please be kind if you get any errors, text me I'll be more than happy to help you all.
THANK YOU!