boringdeveloper / FlutterSwitch

A Custom Switch package created for Flutter.
https://pub.dev/packages/flutter_switch
BSD 3-Clause "New" or "Revised" License
78 stars 66 forks source link

Made animation have more than 3 frames, added optional duration and curve properties, centered text #21

Closed Maksim-Nikolaev closed 3 years ago

Maksim-Nikolaev commented 3 years ago

Added optional Duration duration property, to allow developers control the animation's duration better. Didn't change the original value . Added optional Curve curve property, to allow developers control the animation's curve better. Didn't change the original value. Changed Row to Stack. Original Row had 3 fixed frames (left, center, right), but with Stack and Align it will animate position by given animation values (as many frames as possible, no hardcoded frames)

Also changed the text to be centered.