feat(wave): support independent corner radii

Merged
RE
3h ago
+80-8

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.cornerRadii and 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-run reported zero warnings.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Devin Review


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.