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
1532005e
Commit
1532005e
authored
Sep 22, 2015
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a path issue when creating new flutter apps
parent
542da8cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
common.dart
packages/flutter_tools/lib/src/common.dart
+2
-1
init.dart
packages/flutter_tools/lib/src/init.dart
+1
-0
No files found.
packages/flutter_tools/lib/src/common.dart
View file @
1532005e
...
...
@@ -14,7 +14,8 @@ abstract class CommandHandler {
ArgParser
get
parser
;
/// @return 0 for no errors or warnings executing command, 1 for warnings, 2 for errors.
/// Returns 0 for no errors or warnings executing command, 1 for warnings, 2
/// for errors.
Future
<
int
>
processArgResults
(
ArgResults
results
);
void
printUsage
([
String
message
])
{
...
...
packages/flutter_tools/lib/src/init.dart
View file @
1532005e
...
...
@@ -89,6 +89,7 @@ abstract class Template {
files
.
forEach
((
String
path
,
String
contents
)
{
Map
m
=
{
'projectName'
:
projectName
,
'description'
:
description
};
contents
=
mustache
.
render
(
contents
,
m
);
path
=
path
.
replaceAll
(
'/'
,
Platform
.
pathSeparator
);
File
file
=
new
File
(
p
.
join
(
dir
.
path
,
path
));
file
.
parent
.
createSync
();
file
.
writeAsStringSync
(
contents
);
...
...
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