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
7ab48f4e
Commit
7ab48f4e
authored
Aug 16, 2016
by
Devon Carew
Committed by
GitHub
Aug 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak the --version text (#5420)
parent
2259c59b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
doctor.dart
packages/flutter_tools/lib/src/doctor.dart
+3
-2
version.dart
packages/flutter_tools/lib/src/version.dart
+12
-5
No files found.
packages/flutter_tools/lib/src/doctor.dart
View file @
7ab48f4e
...
...
@@ -202,9 +202,10 @@ class _FlutterValidator extends DoctorValidator {
messages
.
add
(
new
ValidationMessage
(
'Flutter at
${version.flutterRoot}
'
));
messages
.
add
(
new
ValidationMessage
(
'Framework revision
${version.frameworkRevisionShort}
'
'(
${version.frameworkAge}
), '
'engine revision
${version.engineRevisionShort}
'
'(
${version.frameworkAge}
),
${version.frameworkDate}
'
));
messages
.
add
(
new
ValidationMessage
(
'Engine revision
${version.engineRevisionShort}
'
));
messages
.
add
(
new
ValidationMessage
(
'Tools Dart version
${version.dartSdkVersion}
'
));
if
(
Platform
.
isWindows
)
{
valid
=
ValidationType
.
missing
;
...
...
packages/flutter_tools/lib/src/version.dart
View file @
7ab48f4e
...
...
@@ -48,6 +48,8 @@ class FlutterVersion {
String
_frameworkAge
;
String
get
frameworkAge
=>
_frameworkAge
;
String
get
frameworkDate
=>
frameworkCommitDate
;
String
get
dartSdkVersion
=>
Cache
.
dartSdkVersion
.
split
(
' '
)[
0
];
String
get
engineRevision
=>
Cache
.
engineRevision
;
...
...
@@ -57,12 +59,17 @@ class FlutterVersion {
@override
String
toString
()
{
String
from
=
'Flutter on channel
$channel
(from
${repositoryUrl == null ? 'unknown source' : repositoryUrl}
)'
;
String
flutterText
=
'Framework revision
$frameworkRevisionShort
(
$frameworkAge
); engine revision
$engineRevisionShort
'
;
String
dartSdkText
=
'Flutter tools using Dart version
$dartSdkVersion
'
;
String
frameworkCommit
=
'Last commit on framework:
$frameworkCommitDate
'
;
String
flutterText
=
'Flutter • channel
$channel
•
${repositoryUrl == null ? 'unknown source' : repositoryUrl}
'
;
String
frameworkText
=
'Framework • revision
$frameworkRevisionShort
(
$frameworkAge
) •
$frameworkCommitDate
'
;
String
engineText
=
'Engine • revision
$engineRevisionShort
'
;
String
toolsText
=
'Tools • Dart
$dartSdkVersion
'
;
// Flutter • channel master • https://github.com/flutter/flutter.git
// Framework • revision 2259c59be8 • 19 minutes ago • 2016-08-15 22:51:40
// Engine • revision fe509b0d96
// Tools • Dart 1.19.0-dev.5.0
return
'
$f
rom
\n
$flutterText
\n
$frameworkCommit
\n
$dartSdk
Text
'
;
return
'
$f
lutterText
\n
$frameworkText
\n
$engineText
\n
$tools
Text
'
;
}
/// A date String describing the last framework commit.
...
...
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