You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
jonahwilliams commentedon Jun 3, 2022
I think we could possibly break out that library, but we'd need to spend time to take a pass over the API and documentation
Move mock canvas to flutter_test (#131631)
github-actions commentedon Aug 22, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Move mock canvas to flutter_test (#131631)