Skip to content

[Mock Canvas] paints matcher is missing the ability to test rounded superellipse drawing. #165743

@ksokolovskyi

Description

@ksokolovskyi

Use case

The paints matcher is missing the ability to test RSuperellipse drawing. I think it is crucial to allow users to test the rounded superellipse drawing after the recent drawRSuperellipse introduction.

/// Draws a rounded superellipse with the given [Paint]. The shape is filled,
/// and the value of the [Paint.style] is ignored for this call.
///
/// ![](https://flutter.github.io/assets-for-api-docs/assets/dart-ui/canvas_rsuperellipse.png#gh-light-mode-only)
/// ![](https://flutter.github.io/assets-for-api-docs/assets/dart-ui/canvas_rsuperellipse.png#gh-dark-mode-only)
void drawRSuperellipse(RSuperellipse rse, Paint paint);

Proposal

Add the ability to test rounded superellipse drawing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions