mirror of
https://github.com/rive-app/rive-flutter.git
synced 2025-06-04 11:02:18 +08:00
16 lines
380 B
Dart
16 lines
380 B
Dart
library rive;
|
|
|
|
import 'package:flare_flutter/flare_actor.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class Rive extends StatelessWidget {
|
|
final String filename;
|
|
final String animation;
|
|
|
|
const Rive({Key key, this.filename, this.animation}) : super(key: key);
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return FlareActor(filename, animation: animation);
|
|
}
|
|
}
|