[flutter_tools] Use proper project name in templates (#96373)

This commit is contained in:
Collin Jackson
2022-02-02 06:50:14 -08:00
committed by GitHub
parent 5840db7d4a
commit 10fbbafe09
29 changed files with 37 additions and 34 deletions

View File

@@ -349,7 +349,8 @@ android {
path.join(parent.path, 'hello', 'pubspec.yaml')
);
final String contents = pubspec.readAsStringSync();
final String newContents = contents.replaceFirst('# The following section is specific to Flutter.${platformLineSep}flutter:$platformLineSep', '''
final String newContents = contents.replaceFirst('${platformLineSep}flutter:$platformLineSep', '''
flutter:
assets:
- lib/gallery/example_code.dart