Skip to content

Instantly share code, notes, and snippets.

@miguelpruivo
Created September 23, 2019 14:18
Show Gist options
  • Save miguelpruivo/43ca212d071dde3ff577ebcc79c1f0cf to your computer and use it in GitHub Desktop.
Save miguelpruivo/43ca212d071dde3ff577ebcc79c1f0cf to your computer and use it in GitHub Desktop.
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