feat(flutter): add shared texture through rive panel (#10451) 7359e8b824

* feat(flutter): add shared texture through rive panel

* feat: updates to rive panel

* chore: revert pub path change

* docs: update api level docs

* feat: expose drawOrder

feat: Add fallback AtlasTypes that don't need float color buffers (#10475) 5e6f683b9e
Floating point color buffers are only supported via extensions in GL.
Previously, the feather atlas would just break when this functionality
wasn't present.

This PR adds support for multiple different AtlasTypes that make use of
various GL extensions to render the atlas. As a final resort, if none of
the other extensions are available, it can split coverage up into rgba8
compoments. This mode works on unextended GL at the cost of quality.

Co-authored-by: Gordon <pggordonhayes@gmail.com>
This commit is contained in:
HayesGordon
2025-09-03 17:20:33 +00:00
parent 38f40c8309
commit ce00421de5
22 changed files with 1169 additions and 3 deletions

View File

@ -1,6 +1,7 @@
// ignore_for_file: deprecated_member_use
import 'package:flutter/material.dart';
import 'package:rive_example/advanced/advanced.dart';
import 'package:rive_example/colors.dart';
import 'package:rive_example/examples/examples.dart';
import 'package:rive/rive.dart' as rive;
@ -67,6 +68,8 @@ class _RiveExampleAppState extends State<RiveExampleApp> {
'Simple example usage of the Rive widget with common parameters.'),
_Page('Rive Widget Builder', ExampleRiveWidgetBuilder(),
'Example usage of the Rive builder widget with common parameters.'),
_Page('Rive Panel [Shared Texture]', ExampleRivePanel(),
'Example usage of the Shared Texture View widget.'),
],
),
const _Section(
@ -107,6 +110,7 @@ class _RiveExampleAppState extends State<RiveExampleApp> {
'Advanced: Custom painter for state machines.'),
_Page('Single Animation Painter', ExampleSingleAnimationPainter(),
'Advanced: Custom painter for single animation playback.'),
_Page('Centaur Game', CentaurGameWidget(), 'Advanced: Centaur Game.'),
],
),
const _Section(