-
Notifications
You must be signed in to change notification settings - Fork 222
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
It seems that rive-flutter always draws stroke atop of fill
I've attached screenshots with semitransparent fill, so you can see clearly see the difference
With an opaque fill the button looked like its stroke was twice as thick as in the Rive editor, which is quite difficult to notice, but it felt like something was wrong
Steps To Reproduce
Steps to reproduce the behavior:
- Set up a stroke with a fill atop of it for rectangle in Rive editor
- Run Flutter app with this component
- Compare thickness of the rendered stroke in Rive editor and Flutter app
- In Rive editor you only see the outer part of the stroke, because fill covers the inner part. In Flutter app you see the entire stroke, because it is rendered atop of fill
Source .riv/.rev file
Expected behavior
rive-flutter draws fills and strokes in the specified order
Screenshots
Here you can see the stroke with a semitransparent fill atop in Rive editor (the stroke is enlarged for clarity)

And how it actually looks in Flutter app

Device & Versions
- Device: iOS Simulator
- OS: iOS 17.5
- Flutter Version:
Flutter 3.27.1 • channel stable • https://github.com/flutter/flutter
Framework • revision 17025dd882 (9 days ago) • 2024-12-17 03:23:09 +0900
Engine • revision cb4b5fff73
Tools • Dart 3.6.0 • DevTools 2.40.2
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working