mirror of
https://github.com/rive-app/rive-flutter.git
synced 2025-07-06 08:26:42 +08:00

adding a basic text test to get to the bottom of text not working Diffs= 66e234066 basic text test (#5718) b69ae1312 Lift tess decoders into a static lib (#5709) Co-authored-by: Maxwell Talbot <talbot.maxwell@gmail.com>
23 lines
537 B
Dart
23 lines
537 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:rive/rive.dart';
|
|
|
|
/// Basic example playing a Rive animation from a packaged asset.
|
|
class BasicText extends StatelessWidget {
|
|
const BasicText({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: const Text('Basic Text'),
|
|
),
|
|
body: const Center(
|
|
child: RiveAnimation.asset(
|
|
'assets/text_flutter.riv',
|
|
fit: BoxFit.cover,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|