Skip to content

Instantly share code, notes, and snippets.

@timbergus
Last active June 10, 2019 08:53
Show Gist options
  • Save timbergus/57bbd27512ef5f7ce0090a27f1337b00 to your computer and use it in GitHub Desktop.
Save timbergus/57bbd27512ef5f7ce0090a27f1337b00 to your computer and use it in GitHub Desktop.
import 'package:flare_flutter/flare_actor.dart';
[...]
Future<Map> getData(double latitude, double longitude) async {
[...]
@override
Widget build(BuildContext context) {
[...]
Container(
height: 250,
child: FlareActor(
'assets/animations/cloudy.flr',
alignment: Alignment.center,
fit: BoxFit.contain,
animation: 'get_cloudy',
),
),
[...]
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment