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
c35c06e6
Commit
c35c06e6
authored
Sep 25, 2015
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename sky ==> flutter in the starting app template
parent
5c9413d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
init.dart
packages/flutter_tools/lib/src/init.dart
+8
-7
init_test.dart
packages/flutter_tools/test/init_test.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/init.dart
View file @
c35c06e6
...
...
@@ -13,7 +13,8 @@ import 'package:path/path.dart' as p;
class
InitCommand
extends
Command
{
final
name
=
'init'
;
final
description
=
'Create a new sky project.'
;
final
description
=
'Create a new Flutter project.'
;
InitCommand
()
{
argParser
.
addOption
(
'out'
,
abbr:
'o'
,
help:
'The output directory.'
);
argParser
.
addFlag
(
'pub'
,
...
...
@@ -32,7 +33,7 @@ class InitCommand extends Command {
// TODO: Confirm overwrite of an existing directory with the user.
Directory
out
=
new
Directory
(
argResults
[
'out'
]);
new
Sky
SimpleTemplate
().
generateInto
(
out
);
new
Flutter
SimpleTemplate
().
generateInto
(
out
);
print
(
''
);
...
...
@@ -89,8 +90,8 @@ abstract class Template {
String
toString
()
=>
name
;
}
class
Sky
SimpleTemplate
extends
Template
{
SkySimpleTemplate
()
:
super
(
'sky-simple'
,
'A minimal Sky
project.'
)
{
class
Flutter
SimpleTemplate
extends
Template
{
FlutterSimpleTemplate
()
:
super
(
'flutter-simple'
,
'A minimal Flutter
project.'
)
{
files
[
'.gitignore'
]
=
_gitignore
;
files
[
'pubspec.yaml'
]
=
_pubspec
;
files
[
'README.md'
]
=
_readme
;
...
...
@@ -124,8 +125,8 @@ const _readme = r'''
## Getting Started
For help getting started with
Sky
, view our online
[documentation](http
s://github.com/domokit/sky_engine/blob/master/sky/packages/sky/README.md
).
For help getting started with
Flutter
, view our online
[documentation](http
://flutter.io/
).
'''
;
const
_pubspec
=
r''
'
...
...
@@ -145,7 +146,7 @@ void main() => runApp(new HelloWorldApp());
class HelloWorldApp extends App {
Widget build() {
return new Scaffold(
toolbar: new ToolBar(center: new Text("
Sky
Demo")),
toolbar: new ToolBar(center: new Text("
Flutter
Demo")),
body: new Material(child: new Center(child: new Text("Hello world!"))),
floatingActionButton: new FloatingActionButton(
child: new Icon(type: '
content
/
add
', size: 24)));
...
...
packages/flutter_tools/test/init_test.dart
View file @
c35c06e6
...
...
@@ -24,7 +24,7 @@ defineTests() {
});
// Verify that we create a project that is well-formed.
test
(
'init
sky
-simple'
,
()
async
{
test
(
'init
flutter
-simple'
,
()
async
{
InitCommand
command
=
new
InitCommand
();
CommandRunner
runner
=
new
CommandRunner
(
'test_flutter'
,
''
)
..
addCommand
(
command
);
...
...
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