You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
796 B
28 lines
796 B
import 'package:flutter/material.dart';
|
|
import 'package:rive/rive.dart';
|
|
|
|
class AnimatedDash extends StatelessWidget {
|
|
const AnimatedDash({
|
|
Key? key,
|
|
required this.boardSize,
|
|
required Function(Artboard artboard) onInit,
|
|
required RiveAnimationController riveController,
|
|
EdgeInsets padding = const EdgeInsets.only(right: 56.0, bottom: 56),
|
|
}) : _riveController = riveController,
|
|
_onInit = onInit,
|
|
_padding = padding,
|
|
super(key: key);
|
|
|
|
final double boardSize;
|
|
final Function(Artboard artboard) _onInit;
|
|
final RiveAnimationController _riveController;
|
|
final EdgeInsets _padding;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Align(
|
|
alignment: Alignment.bottomCenter,
|
|
child: Padding(padding: _padding),
|
|
);
|
|
}
|
|
}
|