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
25eaaefd
Commit
25eaaefd
authored
Oct 11, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch init command over to package:flutter
parent
9148e177
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
15 deletions
+24
-15
init.dart
packages/flutter_tools/lib/src/commands/init.dart
+24
-15
No files found.
packages/flutter_tools/lib/src/commands/init.dart
View file @
25eaaefd
...
...
@@ -40,11 +40,11 @@ class InitCommand extends Command {
String
message
=
'''All done! To run your application:
cd
${out.path}
./packages/
sky
/sky_tool start
./packages/
flutter
/sky_tool start
Or if the
Sky
APK is not already on your device, run:
Or if the
Flutter
APK is not already on your device, run:
./packages/
sky
/sky_tool start --install
./packages/
flutter
/sky_tool start --install
'''
;
...
...
@@ -108,7 +108,7 @@ String _normalizeProjectName(String name) {
return
name
;
}
const
_gitignore
=
r''
'
const
String
_gitignore
=
r''
'
.DS_Store
.idea
.packages
...
...
@@ -118,7 +118,7 @@ packages
pubspec.lock
'''
;
const
_readme
=
r''
'
const
String
_readme
=
r''
'
# {{projectName}}
{{description}}
...
...
@@ -129,36 +129,45 @@ For help getting started with Flutter, view our online
[documentation](http://flutter.io/).
'''
;
const
_pubspec
=
r''
'
const
String
_pubspec
=
r''
'
name: {{projectName}}
description: {{description}}
dependencies:
sky: any
flutter: ">=0.0.2 <0.1.0"
dev_dependencies:
sky_tools: any
'''
;
const
_libMain
=
r''
'
import '
package:
sky
/
material
.
dart
';
const
String
_libMain
=
r''
'
import '
package:
flutter
/
material
.
dart
';
void main() {
runApp(
new MaterialApp(
title: "Flutter Demo",
routes:
<String, RouteBuilder>
{
'
/
': (RouteArguments args) => new
HelloWorldComponent
()
routes: {
'
/
': (RouteArguments args) => new
FlutterDemo
()
}
)
);
}
class
HelloWorldComponent
extends StatelessComponent {
class
FlutterDemo
extends StatelessComponent {
Widget build(BuildContext context) {
return new Scaffold(
toolBar: new ToolBar(center: new Text("Flutter Demo")),
body: new Material(child: new Center(child: new Text("Hello world!"))),
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)
child: new Icon(
type: '
content
/
add
',
size: 24
)
)
);
}
...
...
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