Skip to content

Move mock_canvas to flutter_test package #59413

@pingbird

Description

@pingbird

Many widget tests in the flutter package use packages/flutter/test/rendering/mock_canvas.dart as a convenient method of validating painting behaviors. This library is fully documented yet can't be imported externally.

I would like to use this library for some tests, without having to copy its implementation to my project.

Proposal

The mock_canvas library should be moved to flutter_test, where it can be used from anywhere.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our testsc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.packageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamwaiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions