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
c832aff1
Commit
c832aff1
authored
Feb 17, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1957 from devoncarew/rename_in_readmes
rename some flutter command references in readmes
parents
6a6b6539
04eee82d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
CONTRIBUTING.md
CONTRIBUTING.md
+4
-4
profile_startup.dart
dev/profile_startup.dart
+2
-2
README.md
examples/README.md
+6
-6
README.md
examples/layers/README.md
+1
-1
README.md
examples/widgets/README.md
+1
-1
No files found.
CONTRIBUTING.md
View file @
c832aff1
...
@@ -48,17 +48,17 @@ Running the examples
...
@@ -48,17 +48,17 @@ Running the examples
To run an example with a prebuilt binary from the cloud, switch to that
To run an example with a prebuilt binary from the cloud, switch to that
example's directory, run
`pub get`
to make sure its dependencies have been
example's directory, run
`pub get`
to make sure its dependencies have been
downloaded, and use
`flutter
start
`
. Make sure you have a device connected over
downloaded, and use
`flutter
run
`
. Make sure you have a device connected over
USB and debugging enabled on that device.
USB and debugging enabled on that device.
*
`cd examples/hello_world; flutter
start
`
*
`cd examples/hello_world; flutter
run
`
You can also specify a particular Dart file to run if you want to run an example
You can also specify a particular Dart file to run if you want to run an example
that doesn't have a
`lib/main.dart`
file using the
`-t`
command-line option. For
that doesn't have a
`lib/main.dart`
file using the
`-t`
command-line option. For
example, to run the
`tabs.dart`
example in the
[
examples/widgets
](
examples/widgets
)
example, to run the
`tabs.dart`
example in the
[
examples/widgets
](
examples/widgets
)
directory on a connected Android device, from that directory you would run:
directory on a connected Android device, from that directory you would run:
*
`flutter
start
-t tabs.dart`
*
`flutter
run
-t tabs.dart`
When running code from the examples directory, any changes you make to the
When running code from the examples directory, any changes you make to the
example code, as well as any changes to Dart code in the
example code, as well as any changes to Dart code in the
...
@@ -169,7 +169,7 @@ engine using the `flutter test --debug` command. To run one of the
...
@@ -169,7 +169,7 @@ engine using the `flutter test --debug` command. To run one of the
examples on your device using your locally built engine, use the
examples on your device using your locally built engine, use the
`--debug`
option to the
`flutter`
tool:
`--debug`
option to the
`flutter`
tool:
*
`flutter
start
--debug`
*
`flutter
run
--debug`
If you want to test the release version instead of the debug version,
If you want to test the release version instead of the debug version,
use
`--release`
instead of
`--debug`
.
use
`--release`
instead of
`--debug`
.
...
...
dev/profile_startup.dart
View file @
c832aff1
...
@@ -45,7 +45,7 @@ Future<double> test(String tracesDir, String projectPath, int runNumber) async {
...
@@ -45,7 +45,7 @@ Future<double> test(String tracesDir, String projectPath, int runNumber) async {
String
tracePath
=
"
${tracesDir}
/trace_
$runNumber
.json"
;
String
tracePath
=
"
${tracesDir}
/trace_
$runNumber
.json"
;
runWithLoggingSync
([
runWithLoggingSync
([
'flutter'
,
'flutter'
,
'
start
'
,
'
run
'
,
'--no-checked'
,
'--no-checked'
,
'--trace-startup'
'--trace-startup'
],
workingDirectory:
projectPath
);
],
workingDirectory:
projectPath
);
...
@@ -84,7 +84,7 @@ main(List<String> args) async {
...
@@ -84,7 +84,7 @@ main(List<String> args) async {
String
traces_dir
=
'/tmp'
;
String
traces_dir
=
'/tmp'
;
List
<
double
>
times
=
[];
List
<
double
>
times
=
[];
print
(
"Profiling startup using flutter
start
--trace-startup."
);
print
(
"Profiling startup using flutter
run
--trace-startup."
);
print
(
"Measuring from first trace event to completion of first frame upload."
);
print
(
"Measuring from first trace event to completion of first frame upload."
);
print
(
"aka NativeViewGLSurfaceEGL:RealSwapBuffers.
\n
"
);
print
(
"aka NativeViewGLSurfaceEGL:RealSwapBuffers.
\n
"
);
print
(
"NOTE: If device is not on/unlocked tracing may fail.
\n
"
);
print
(
"NOTE: If device is not on/unlocked tracing may fail.
\n
"
);
...
...
examples/README.md
View file @
c832aff1
Flutter Examples
Flutter Examples
================
================
This directory contains several examples of using Flutter.
Each of these is an
This directory contains several examples of using Flutter. Each of these is an
individual Dart application package.
individual Dart application package.
To run a sample with the
`flutter`
tool, run
`pub get`
inside its directory,
To run a sample with the
`flutter`
tool, run
`pub get`
inside its directory,
then run
`flutter
start
`
. (See the
then run
`flutter
run
`
. (See the
[
getting started guide
](
https://flutter.io/getting-started/
)
to install
[
getting started guide
](
https://flutter.io/getting-started/
)
to install
the
`flutter`
tool.)
the
`flutter`
tool.)
Available examples include:
Available examples include:
-
*
Hello, world.
*
The
[
hello world app
](
hello_world
)
is a basic app that shows
-
*
*Hello, world*
*
The
[
hello world app
](
hello_world
)
is a basic app that shows
the text "hello, world."
the text "hello, world."
-
*
Stocks.
*
The
[
stocks app
](
stocks
)
is an example of a typical mobile app
-
*
*Stocks*
*
The
[
stocks app
](
stocks
)
is an example of a typical mobile app
built using Flutter. The app shows a list of all the stocks in the NASDAQ.
built using Flutter. The app shows a list of all the stocks in the NASDAQ.
-
*
Widgets.
*
The
[
widget apps
](
widgets
)
demonstrate a number of Flutter widgets
-
*
*Widgets*
*
The
[
widget apps
](
widgets
)
demonstrate a number of Flutter widgets
so you can experiment with them in a simple container. There is no main.dart
so you can experiment with them in a simple container. There is no main.dart
in this directory because each file is a standalone sample. To run a
in this directory because each file is a standalone sample. To run a
particular file, use
`flutter
start
-t filename.dart`
.
particular file, use
`flutter
run
-t filename.dart`
.
examples/layers/README.md
View file @
c832aff1
...
@@ -18,5 +18,5 @@ Flutter's layered architecture.
...
@@ -18,5 +18,5 @@ Flutter's layered architecture.
To run each example, use the
`-t`
argument to the
`flutter`
tool:
To run each example, use the
`-t`
argument to the
`flutter`
tool:
```
```
flutter
start
-t widgets/spinning_square.dart
flutter
run
-t widgets/spinning_square.dart
```
```
examples/widgets/README.md
View file @
c832aff1
...
@@ -4,7 +4,7 @@ Small examples of the Flutter widget framework
...
@@ -4,7 +4,7 @@ Small examples of the Flutter widget framework
To run these, open a terminal in this directory and use the following command:
To run these, open a terminal in this directory and use the following command:
```
bash
```
bash
flutter
start
--checked
-t
foo.dart
flutter
run
-t
foo.dart
```
```
...where
`foo.dart`
is the file you want to run.
...where
`foo.dart`
is the file you want to run.
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