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
a86dab0c
Unverified
Commit
a86dab0c
authored
Nov 13, 2020
by
Jonah Williams
Committed by
GitHub
Nov 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] remove automatic doctor from flutter create (#70475)
parent
f7811ea5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
21 deletions
+6
-21
create.dart
packages/flutter_tools/lib/src/commands/create.dart
+6
-21
No files found.
packages/flutter_tools/lib/src/commands/create.dart
View file @
a86dab0c
...
@@ -474,19 +474,18 @@ class CreateCommand extends FlutterCommand {
...
@@ -474,19 +474,18 @@ class CreateCommand extends FlutterCommand {
));
));
globals
.
printStatus
(
'Your module code is in
$relativeMainPath
.'
);
globals
.
printStatus
(
'Your module code is in
$relativeMainPath
.'
);
}
else
{
}
else
{
//
Run doctor; t
ell the user the next steps.
//
T
ell the user the next steps.
final
FlutterProject
project
=
FlutterProject
.
fromPath
(
projectDirPath
);
final
FlutterProject
project
=
FlutterProject
.
fromPath
(
projectDirPath
);
final
FlutterProject
app
=
project
.
hasExampleApp
?
project
.
example
:
project
;
final
FlutterProject
app
=
project
.
hasExampleApp
?
project
.
example
:
project
;
final
String
relativeAppPath
=
globals
.
fs
.
path
.
normalize
(
globals
.
fs
.
path
.
relative
(
app
.
directory
.
path
));
final
String
relativeAppPath
=
globals
.
fs
.
path
.
normalize
(
globals
.
fs
.
path
.
relative
(
app
.
directory
.
path
));
final
String
relativeAppMain
=
globals
.
fs
.
path
.
join
(
relativeAppPath
,
'lib'
,
'main.dart'
);
final
String
relativeAppMain
=
globals
.
fs
.
path
.
join
(
relativeAppPath
,
'lib'
,
'main.dart'
);
final
String
relativePluginPath
=
globals
.
fs
.
path
.
normalize
(
globals
.
fs
.
path
.
relative
(
projectDirPath
));
final
String
relativePluginPath
=
globals
.
fs
.
path
.
normalize
(
globals
.
fs
.
path
.
relative
(
projectDirPath
));
final
String
relativePluginMain
=
globals
.
fs
.
path
.
join
(
relativePluginPath
,
'lib'
,
'
$projectName
.dart'
);
final
String
relativePluginMain
=
globals
.
fs
.
path
.
join
(
relativePluginPath
,
'lib'
,
'
$projectName
.dart'
);
if
(
globals
.
doctor
.
canLaunchAnything
)
{
// Let them know a summary of the state of their tooling.
// Let them know a summary of the state of their tooling.
await
globals
.
doctor
.
summary
();
final
List
<
String
>
platforms
=
_getSupportedPlatformsFromTemplateContext
(
templateContext
);
final
List
<
String
>
platforms
=
_getSupportedPlatformsFromTemplateContext
(
templateContext
);
final
String
platformsString
=
platforms
.
join
(
', '
);
final
String
platformsString
=
platforms
.
join
(
', '
);
globals
.
printStatus
(
'''
globals
.
printStatus
(
'''
In order to run your
$application
, type:
In order to run your
$application
, type:
\$
cd
$relativeAppPath
\$
cd
$relativeAppPath
...
@@ -501,20 +500,6 @@ Your plugin code is in $relativePluginMain.
...
@@ -501,20 +500,6 @@ Your plugin code is in $relativePluginMain.
Host platform code is in the
$platformsString
directories under
$relativePluginPath
.
Host platform code is in the
$platformsString
directories under
$relativePluginPath
.
To edit platform code in an IDE see https://flutter.dev/developing-packages/#edit-plugin-package.
To edit platform code in an IDE see https://flutter.dev/developing-packages/#edit-plugin-package.
'''
);
'''
);
}
}
else
{
globals
.
printStatus
(
"You'll need to install additional components before you can run "
'your Flutter app:'
);
globals
.
printStatus
(
''
);
// Give the user more detailed analysis.
await
globals
.
doctor
.
diagnose
();
globals
.
printStatus
(
''
);
globals
.
printStatus
(
"After installing components, run 'flutter doctor' in order to "
're-validate your setup.'
);
globals
.
printStatus
(
"When complete, type 'flutter run' from the '
$relativeAppPath
' "
'directory in order to launch your app.'
);
globals
.
printStatus
(
'Your
$application
code is in
$relativeAppMain
'
);
}
}
}
}
return
FlutterCommandResult
.
success
();
return
FlutterCommandResult
.
success
();
...
...
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