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
4bcef2a3
Commit
4bcef2a3
authored
Apr 07, 2016
by
Jason Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some documentation for running "flutter refresh" in the Gradle sample (#3201)
parent
3cfa4d39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
README.md
examples/hello_android/README.md
+21
-0
No files found.
examples/hello_android/README.md
View file @
4bcef2a3
...
...
@@ -14,3 +14,24 @@ Then run:
*
`gradle wrapper`
*
`./gradlew build`
## Updating the Dart code
You can push new Dart code to a Flutter app during development without performing
a full rebuild of the Android app package.
The
`flutter refresh`
tool manages this process.
`flutter refresh`
will build
a snapshot of an app's Dart code, copy it to an Android device, and send an
intent instructing the Android app to load the snapshot.
To try this out:
*
Install and run this app on your device
*
Edit the Dart code in
`app/src/flutter/lib`
*
cd
`app/src/flutter`
*
`flutter refresh --activity com.example.flutter/.ExampleActivity`
`flutter refresh`
sends an
`ACTION_RUN`
intent with an extra containing the
device filesystem path where the snapshot was copied.
`ExampleActivity.java`
shows how an activity can handle this intent and load the new snapshot into
a Flutter view.
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