We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The fills and strokes of texts wrapped in Layout are not shown.
This is my sample class for the reproducible example :
import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:rive/rive.dart'; class BackgroundLayoutTextTest extends StatefulWidget { const BackgroundLayoutTextTest({super.key, required this.assetPath}); final String assetPath; @override State<BackgroundLayoutTextTest> createState() => _BackgroundLayoutTextTestState(); } class _BackgroundLayoutTextTestState extends State<BackgroundLayoutTextTest> { RiveFile? _riveData; @override void initState() { super.initState(); _loadRiveAsset(); } @override Widget build(BuildContext context) { if (_riveData == null) { return Placeholder(); } else { return RiveAnimation.direct( _riveData!, artboard: 'test', alignment: Alignment.topCenter, fit: BoxFit.fitWidth, ); } } Future<void> _loadRiveAsset() async { final data = await rootBundle.load(widget.assetPath); _riveData = RiveFile.import(data); setState(() {}); } }
.riv
.rev
text_background.zip
The Layout's background should be visible as on the Rive editor:
Backgrounds are not visibles, the blue is the fill color of the artboard:
flutter --version
Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision 2663184aa7 (3 months ago) • 2024-09-11 16:27:48 -0500 Engine • revision 36335019a8 Tools • Dart 3.5.3 • DevTools 2.37.3
The attached rive files are just a reproducible example but the production animation is a bit more complex.
Any workaround appreciated 🙏
The text was updated successfully, but these errors were encountered:
Layout is not yet supported on the Flutter runtime, this is part of a bigger rewrite for the Flutter runtime.
You can see this document for a list of runtime supported features: https://rive.app/community/doc/feature-support/dockjX9x72UM
The base for the new package is published as a dev release: https://pub.dev/packages/rive_native
The new Flutter runtime should be fully up to date early 2025
Sorry, something went wrong.
No branches or pull requests
Description
The fills and strokes of texts wrapped in Layout are not shown.
Steps To Reproduce
This is my sample class for the reproducible example :
Source
.riv
/.rev
filetext_background.zip
Expected behavior
The Layout's background should be visible as on the Rive editor:
Screenshots
Backgrounds are not visibles, the blue is the fill color of the artboard:
Device & Versions (please complete the following information)
flutter --version
Additional context
The attached rive files are just a reproducible example but the production animation is a bit more complex.
Any workaround appreciated 🙏
The text was updated successfully, but these errors were encountered: