Created
September 23, 2019 14:18
-
-
Save miguelpruivo/43ca212d071dde3ff577ebcc79c1f0cf to your computer and use it in GitHub Desktop.
This file contains 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:flare_flutter/flare.dart'; | |
import 'package:flare_flutter/flare_controls.dart'; | |
class MyControls extends FlareControls { | |
@override | |
void initialize(FlutterActorArtboard artboard) { | |
super.initialize(artboard); | |
play("first animation"); | |
} | |
@override | |
void onCompleted(String name) { | |
switch (name) { | |
case "first animation": | |
play("second animation"); | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment