Open victoreronmosele opened 3 weeks ago
When not creating a new project, won't this recreate test/widget_test.dart if it doesn't exist?
Ideally, this should probably just never write a file to test at all, and skip the delete step.
When not creating a new project, won't this recreate test/widget_test.dart if it doesn't exist?
Indeed, this seems to be the case.
Ideally, this should probably just never write a file to test at all, and skip the delete step.
Agreed.
This PR modifies the
flutter create --empty
command to not delete thetest/
folder when run on an existing app project.Before:
After:
Fixes https://github.com/flutter/flutter/issues/134928
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.