feat(wave): support independent corner radii
Merged
RE
3h ago+80+80+01234567890123456789-8-8-0123456789
Summary
Inset waves can take a different radius for each corner. Vance can give the paywall wave its sheet’s top corners and the device’s bottom corners.
Changes
- Add
DistortionWave.cornerRadiiand pass it to the wave renderer. Default geometry and style still apply when the property is omitted. - Cover an inset wave with distinct corners, a live radius update, and fallback to a uniform radius.
- Prepare the 0.4.0 release.
Testing
dart format --output=none --set-exit-if-changed .flutter analyze --no-pub --fatal-infos- All 37 distortion-wave widget tests passed.
dart pub publish --dry-runreported zero warnings.
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Summary by cubic
Adds DistortionWave.cornerRadii so inset surfaces can use different corner radii per corner, for example a paywall wave with the sheet's top corners and the device's bottom corners.
- Explicit radii take precedence over display corners and
WaveGlow.cornerRadius; omitting the property keeps existing geometry and style behavior. - Live radius updates repaint in place, with fallback to uniform radius when set to null.
- Covers an inset wave with distinct corners, an in-place radius update, and fallback; bumps the release to 0.4.0 and updates docs.