Created
October 20, 2025 18:37
-
-
Save fredgrott/47617a17699251964b94494801d84181 to your computer and use it in GitHub Desktop.
motor, individual phase per motion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:motor/motor.dart'; | |
| final complexSequence = MotionSequence<AppState, ButtonStyle>.statesWithMotions({ | |
| .loading: (loadingStyle, .smoothSpring()), | |
| .error: (errorStyle, .bouncySpring()), // Extra bounce for attention | |
| .success: (successStyle, .curved(Duration(seconds: 2), Curves.ease)), | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment