8871 Commits

Author SHA1 Message Date
xster
5f52457f1b Let android create template have an explicit flutter splash screen flag (#11622)
* Let android create template have an explicit flutter splash screen flag

* minor language tweak
2017-08-15 11:19:21 -07:00
Dan Rubel
3a31c35ba0 Rename .analysis_options to analysis_options.yaml (#11594) 2017-08-15 08:46:42 -04:00
xster
225da92342 Revert engine roll (#11621)
* Revert "Create template splash screens for Android and iOS (#11505)"

This reverts commit 1ad4a088f16a07a1a6e50cc9e263dfe09c27618c.

* Revert "Roll engine (#11619)"

This reverts commit ea78f448e46eda1dcb26941f4c5377b8acaf32b8.
2017-08-14 18:41:56 -07:00
xster
1ad4a088f1 Create template splash screens for Android and iOS (#11505)
* Add iOS template

* Android

* Let the engine reset the theme without the activity knowing

* Small tweak

* Replace assets with different vectors

* Let the template hookup have no actual image assets

* Add back placeholder assets with 1px transparent pngs

* Fix drawable xml

* clean up an extraneous line in the storyboard xml
2017-08-14 17:20:36 -07:00
xster
ea78f448e4 Roll engine (#11619)
* roll

* kick the tests again

* Revert "kick the tests again"

This reverts commit 4480a02ce2d60e66ad0ca8ac5a2029f84f9b71d9.
2017-08-14 17:17:49 -07:00
xster
4cb3a98f2c [Discuss] Let the initial date picker mode be selectable (#11614)
* Let the initial date picker mode be selectable

* Doc for enum

* Add a test

* Add a comment for test

* actually decouple test from setup state
2017-08-14 14:54:23 -07:00
Mikkel Nygaard Ravn
3b8159564f Alpha post-roll work (#11608) 2017-08-14 20:28:34 +02:00
ameiyil
b156a0f054 Wrap the label widget of the Chip in a Flexible. (#11523) (#11554)
* Wrap the label widget of the Chip in a Flexible. (#11523)

* This allows the Chip to constrain the size of its content after taking into account the space occupied by the avatar and delete icon (if they are present)

* Adding unit tests to evaluate correct size constraints of the Chip widget's label. (#11523)

* Minor change in formatting.

* Adjust function formatting.
2017-08-11 22:01:40 -07:00
Chris Bracken
309a2d78fb Extract snapshotting logic to Snapshotter class (#11591)
First step in eliminating code duplication between script snapshotting
(in FLX build) and AOT, assembly AOT snapshotting.
2017-08-11 12:58:35 -07:00
Sarah Zakarias
f1f5d4f3a8 Add integration test for platform interaction (#11580) 2017-08-11 10:38:12 +02:00
Jason Simmons
4f61061733 Roll engine to fef7d827d6e22830ee6c88e8260f118a6b3fbcd9 (#11588) 2017-08-10 18:03:19 -07:00
Phil Quitslund
d264f39f95 Update project templates to use WEB_MODULEs. (#11587) 2017-08-10 16:54:44 -07:00
Chris Bracken
bf69c3c69b Minor whitespace formatting fix (#11590)
Adds some missing spaces.
2017-08-10 16:52:25 -07:00
Michael Goderbauer
7532a99ce6 Mention alternative way to rebuild flutter tools in CONTRIBUTING.md (#11567) 2017-08-10 08:46:56 -07:00
xster
c9b0b3bb03 Fix iOS last up event velocity calculation - version 3 (#11571)
* Add synthesized property to pointer events

* test
2017-08-09 17:39:59 -07:00
Hans Muller
680d581db7 Correct handling of assets when no main asset is present (#11564) 2017-08-09 16:04:57 -07:00
xster
5ee8390e9c Let iOS back gesture listen to edge swipes only (#11559)
* Make iOS back gesture triggerable from the edge only.

* change to positioned
2017-08-09 12:35:05 -07:00
xster
2877dda572 Add a small doc suggesting usage pattern for setSystemUIOverlayStyle (#11558) 2017-08-09 12:27:11 -07:00
Jason Simmons
13dda7cf80 Signal an error in the dependency checker if an import URI is invalid (#11557)
Fixes https://github.com/flutter/flutter/issues/11539
2017-08-09 10:08:11 -07:00
Mikkel Nygaard Ravn
859d8d3830 Alpha pre roll (#11560) 2017-08-09 15:52:04 +02:00
Alexandre Ardhuin
8a88e2efca Bump Dart SDK to 1.25.0-dev.9.0 (#11509)
* Bump Dart SDK to 1.25.0-dev.9.0

* add link to sdk bug
2017-08-09 14:45:55 +02:00
Michael Goderbauer
3b76e7e258 Make tear-offs cacheable for RenderSemanticsGestureHandler (#11556)
* Make tear-offs cachable for RenderSemanticsGestureHandler

Fixes https://github.com/flutter/flutter/issues/11552

* comment fix

* refactor
2017-08-08 15:46:47 -07:00
Michael Goderbauer
1d9f834fb2 a11y: handle left/right scrolls correctly (#11309)
* a11y: handle left/right scrolls correctly

* fix keep alive test

* fix scaffold test
2017-08-08 14:42:17 -07:00
Michael Goderbauer
b551f53471 Don't trigger an assert when markNeedsSemanticsUpdate is called multiple times in edge cases (#11544)
* Don't trigger assert if a render object ceases to be a semantic boundary

This bug was exposed by https://github.com/flutter/flutter/pull/11309, which caused the following assertion to trigger when scrolling in the Animation demo:

```
The following assertion was thrown during _updateSemantics():
'package:flutter/src/rendering/object.dart': Failed assertion: line 2626 pos 16: 'fragment is
_InterestingSemanticsFragment': is not true.
```

A minimal reproduction of the bug can be found in `semantics_10_test.dart`, which has been added as a regression test for the bug by this PR.

Looking at that test, here is a description of the faulty behaviour:
1. During the second `pumpWidget` call `RenderExcludeSemantics` marks itself as needing a semantics update (due to excluding going from `false` -> `true`).
2. This causes the nearest ancestor with semantics information (here: `RenderSemanticsAnnotations` representing the "container" Semantics widget) to be added to the `_nodesNeedingSemantics` list.
3. `RenderSliverList` (implementation behind ListView) marks itself as needing a semantics update (due to its changing children).
4. This causes the `RenderSemanticsGestureHandler` to be added to the `_nodesNeedingSemantics` list.
5. Next, canDrag is updated from `true` -> `false`. This means, `RenderSemanticsGestureHandler` is no longer a semantics boundary, it marks itself as needing a semantics update.
6. The nearest ancestor with semantics (`RenderSemanticsAnnotations`, the "container") is added to the `_nodesNeedingSemantics` list (this is a no-op because it is already in the list).
7. During `flushSemantics`, the `_nodesNeedingSemantics` list is walked. The first entry (`RenderSemanticsAnnotations`) updates the semantics tree to only contain the container widget and drop everything else (= no children of the ExcludeSemantics widget are walked).
8. The second entry (`RenderSemanticsGestureHandler`) is updated. It does not add any semantics of its own and is no longer a semantics boundary. Therefore, it wants to merge its descendent semantics into its parents. Here is where the assert throws because the algorithm assumes that every entry in the `_nodesNeedingSemantics` list will produce and own an `_InterestingSemanticsFragment` (passing your semantics on to your parents is not interesting).

The problem here seems to be step 4 in combination with step 5. In step 4 we rely on the fact that `RenderSemanticsGestureHandler` is an (explicit or implicit) semantics boundary and that it will be able to absorb the semantics change of `RenderSliverList`. This is true
at this time. However, in step 4 `RenderSemanticsGestureHandler` decides to no longer be an (explicit or implicit) semantics boundary and our assumption from step 5 becomes incorrect. We did nothing to correct this assumption.

This PR removes a node, that could potentially cease to be a (explicit or implicit) semantics boundary from the `_nodesNeedingSemantics` list to fix that problem. Please node that this does not mean that the node's semantics will not be updated: The node's closest ances
tor with semantics is added to that list during the `markNeedsSemanticsUpdate` call. During `flushSemantics` we will walk from this node to update the semantics of it's children (if changed), which will include the node in question.

* tiny fix

* simplify test

* analyzer fixes

* review comments
2017-08-08 14:17:20 -07:00
Jason Simmons
7d3a1f9616 Roll engine to f0d440bec3ed79f01890e956b07b6e8e6182db62 (#11553) 2017-08-08 11:39:12 -07:00
Chris Bracken
74835db563 Avoid rebuilding snapshots if no change to source (#11551)
This change re-introduces skipping snapshot builds if input sources (and
outputs) have not changed since the last snapshot build, with a bugfix
to include the entry-point source in the checksum used to check whether
rebuild can be skipped. This ensures that the following sequence
invalidates the cached build, resulting in two snapshot builds:

  flutter build ios lib/foo.dart
  flutter build ios lib/bar.dart

This reverts commit 3d5afb5a81052b7d55661549320d6d43f893f448.
2017-08-08 10:52:24 -07:00
Michael Goderbauer
7edec88632 Allow tapping on TabBar indicator to switch tabs (#11525)
* Allow tapping on TabBar indicator to switch tabs

* fix semantics

* review comments
2017-08-08 10:14:35 -07:00
Alexander Markov
8f57c67d9b Roll engine to cc7e71eaace0ee43cc718059e0fdd12c798205a0 (#11542)
Roll engine in order to fix regression of AOT snapshot build time.
2017-08-08 10:00:50 -07:00
Hans Muller
9b3307a43b Add splashColor and highlightColor to IconButton (#11524) 2017-08-08 07:44:49 -07:00
Ian Hickson
02c214479f CupertinoPageRoute cleanup (#11473) 2017-08-07 16:55:37 -07:00
Ian Hickson
35496d00a9 Re-enable coverage checking. (#11537)
I forgot to do this when I updated our test package.
2017-08-07 16:55:29 -07:00
Jaime Wren
dbd3bf28e6 Replace FLUTTER_MODULE_TYPE with WEB_MODULE in dev/manual_tests/* and examples/* iml files (#11234) 2017-08-07 15:53:56 -07:00
Chris Bracken
cb14eb989d Update IntelliJ project files for latest plugin (#11536)
The most recent Flutter IntelliJ plugin replaces FLUTTER_MODULE with
WEB_MODULE and eliminates the exclusion of packages/ directories.
Use of the packages/ directory was turned off by default months ago, and
is replaced by the .packages file.
2017-08-07 12:19:25 -07:00
Yegor
bbc15724bd roll engine ff50334587 to get async stacks (#11519) 2017-08-07 10:03:09 -07:00
paolosoares
4da5e9b249 Adds more customization options to the Chip widget (#11498)
* Adds more customization options to the Chip widget

Includes:
- Custom Tooltip message for the delete button;
- Custom background color for the chip
- Custom delete icon color
- Custom label text style

* Adds missing type annotations to tests and improves documentation.

* Tweaks labelStyle field documentation
2017-08-04 17:44:20 -07:00
Ian Hickson
db88414131 Upgrade to the most recent test package. (#11526)
Also, add tests to verify that our coverage is actually being tested!
2017-08-04 16:33:38 -07:00
Michael Goderbauer
1e53d3206b Adding tests for animationStatus (#11520)
* Adding tests for animationStatus

* remove comments

* animateTo is allways forward

* clearify docs

* review comments
2017-08-04 16:14:05 -07:00
Jason Simmons
a5c4680e72 Reset the terminal if an exception occurs while handling terminal input in the app runner (#11516) 2017-08-04 14:27:36 -07:00
Michael Goderbauer
ec9df2f269 Allow Duration.Zero for animateTo (#11515) 2017-08-04 13:04:51 -07:00
Carlo Bernaschina
802d5d2028 Roll engine to 73afec408194dd6e03c0d8483f0ea1332113b9a4 (#11518) 2017-08-04 12:54:11 -07:00
Ian Hickson
00e135d879 Prevent event dispatch from happening during reassemble. (#11459)
It was previously possible for event dispatch to occurr during the
brief window where the tree had been marked dirty but before it had
been relaid out by reassemble, which would cause assertions to fire if
someone did a hot reload while touching the device.
2017-08-04 12:01:35 -07:00
Michael Goderbauer
d17ae25034 Do not schedule animation if already at the target value (#11503)
* Do not schedule animation if already at the target value

* Partially fixes https://github.com/flutter/flutter/issues/11495.
* Also includes a fix for Cupertino button to always run the tap animation even if the finger is immediately lifted from the screen (uncovered by a test failure).

* refactorings

* more tests

* test clearifications

* remove Listener

* fix lints

* fix async issue
2017-08-04 10:42:08 -07:00
Mikkel Nygaard Ravn
75ef9d02e8 Avoid building x86 jar for profile and release modes (#11486) 2017-08-04 14:57:54 +02:00
Jason Simmons
7df854ad47 Disable the coverage shard in Travis (#11512)
In a Travis environment, the test package is exiting the process after
completing the tests.
See dart-lang/test@d1057c4

The flutter test command calls the test package's main() and then expects to
do other work afterward.  The exit prevents flutter test from writing the
new coverage results, causing the coveralls tool to run against an old
lcov.info file.
2017-08-03 18:05:49 -07:00
Jacob Richman
cf8d11ad1b Revert "Cache the hosted directory under .pub-cache instead of all of .pub-cache." (#11507)
This reverts commit 0cfd3dec239faf3c13ce759df15ddab226545e8c.
2017-08-03 15:30:28 -07:00
Jacob Richman
b64c0e117c Cache the hosted directory under .pub-cache instead of all of .pub-cache. (#11506) 2017-08-03 13:16:29 -07:00
Jason Simmons
ffe5851eb7 Do not throw if a hot reload is attempted when all Flutter instances on the device have been stopped (#11504)
This can happen if an Android host app has been paused but its process is still running
2017-08-03 13:09:10 -07:00
Devon Carew
8ee902c04b rev the min. recommended flutter plugin version (#11501) 2017-08-03 10:21:35 -07:00
Jacob Richman
93a98327a8 Add Diagnosticable base class and add documentation. (#11458)
Add Diagnosticable base class and documentation
2017-08-03 09:49:44 -07:00
Michael Goderbauer
58f47bd906 Roll engine to 1de56a33d256ce4002a28ffe281163622e0c4010 (#11494) 2017-08-02 17:34:23 -07:00