Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
23d705c3
Unverified
Commit
23d705c3
authored
Jun 08, 2021
by
Alex Melnyk
Committed by
GitHub
Jun 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in create.dart (#82454)
parent
3bd14e78
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
create.dart
packages/flutter_tools/lib/src/commands/create.dart
+1
-1
create_test.dart
...tter_tools/test/commands.shard/permeable/create_test.dart
+19
-0
No files found.
packages/flutter_tools/lib/src/commands/create.dart
View file @
23d705c3
...
@@ -483,7 +483,7 @@ void _printPluginDirectoryLocationMessage(String pluginPath, String projectName,
...
@@ -483,7 +483,7 @@ void _printPluginDirectoryLocationMessage(String pluginPath, String projectName,
Your plugin code is in
$relativePluginMain
.
Your plugin code is in
$relativePluginMain
.
You example app code is in
$relativeExampleMain
.
You
r
example app code is in
$relativeExampleMain
.
'''
);
'''
);
if
(
platformsString
!=
null
&&
platformsString
.
isNotEmpty
)
{
if
(
platformsString
!=
null
&&
platformsString
.
isNotEmpty
)
{
...
...
packages/flutter_tools/test/commands.shard/permeable/create_test.dart
View file @
23d705c3
...
@@ -2203,6 +2203,25 @@ void main() {
...
@@ -2203,6 +2203,25 @@ void main() {
FeatureFlags:
()
=>
TestFeatureFlags
(
isMacOSEnabled:
true
),
FeatureFlags:
()
=>
TestFeatureFlags
(
isMacOSEnabled:
true
),
});
});
testUsingContext
(
'flutter create . on and existing plugin should show "Your example app code in"'
,
()
async
{
Cache
.
flutterRoot
=
'../..'
;
final
CreateCommand
command
=
CreateCommand
();
final
CommandRunner
<
void
>
runner
=
createTestCommandRunner
(
command
);
final
String
projectDirPath
=
globals
.
fs
.
path
.
normalize
(
projectDir
.
absolute
.
path
);
final
String
relativePluginPath
=
globals
.
fs
.
path
.
normalize
(
globals
.
fs
.
path
.
relative
(
projectDirPath
));
final
String
relativeExamplePath
=
globals
.
fs
.
path
.
normalize
(
globals
.
fs
.
path
.
join
(
relativePluginPath
,
'example/lib/main.dart'
));
await
runner
.
run
(<
String
>[
'create'
,
'--no-pub'
,
'--org=com.example'
,
'--template=plugin'
,
'--platforms=android'
,
projectDir
.
path
]);
expect
(
logger
.
statusText
,
contains
(
'Your example app code is in
$relativeExamplePath
.
\n
'
));
await
runner
.
run
(<
String
>[
'create'
,
'--no-pub'
,
'--org=com.example'
,
'--template=plugin'
,
'--platforms=ios'
,
projectDir
.
path
]);
expect
(
logger
.
statusText
,
contains
(
'Your example app code is in
$relativeExamplePath
.
\n
'
));
await
runner
.
run
(<
String
>[
'create'
,
'--no-pub'
,
projectDir
.
path
]);
expect
(
logger
.
statusText
,
contains
(
'Your example app code is in
$relativeExamplePath
.
\n
'
));
},
overrides:
<
Type
,
Generator
>
{
Logger:
()
=>
logger
,
});
testUsingContext
(
'flutter create -t plugin in an empty folder should not show pubspec.yaml updating suggestion'
,
()
async
{
testUsingContext
(
'flutter create -t plugin in an empty folder should not show pubspec.yaml updating suggestion'
,
()
async
{
Cache
.
flutterRoot
=
'../..'
;
Cache
.
flutterRoot
=
'../..'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment