Files
rive-flutter/example/lib/basic_text.dart
mjtalbot 01a12255ea basic text test
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>
2023-08-01 14:48:05 +00:00

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,
),
),
);
}
}