6570 Commits

Author SHA1 Message Date
Ian Hickson
5bc8888e7d Make tests more realistic (#5762)
Previously, pumpWidget() would do a partial pump (it didn't trigger
Ticker callbacks or post-frame callbacks), and pump() would do a full
pump. This patch brings them closer together. It also makes runApp run a
full actual frame, rather than skipping the transient callback part of
the frame logic. Having "half-frames" in the system was confusing and
could lead to bugs where code expecting to run before the next layout
pass didn't because a "half-frame" ran first.

Also, make Tickers start ticking in the frame that they were started in,
if they were started during a frame. This means we no longer spin a
frame for t=0, we jump straight to the first actual frame.

Other changes in this patch:

* rename WidgetsBinding._runApp to WidgetsBinding.attachRootWidget, so
  that tests can use it to more accurately mock out runApp.

* allow loadStructuredData to return synchronously.

* make handleBeginFrame handle not being given a time stamp.

* make DataPipeImageProvider.loadAsync protected (rather than private),
  and document it. There wasn't really a reason for it to be private.

* fix ImageConfiguration.toString.

* introduce debugPrintBuildScope and debugPrintScheduleBuildForStacks,
  which can help debug problems with widgets getting marked as dirty but
  not cleaned.

* make debugPrintRebuildDirtyWidgets say "Building" the first time and
  "Rebuilding" the second, to make it clearer when a widget is first
  created. This makes debugging widget lifecycle issues much easier.

* make debugDumpApp more resilient.

* debugPrintStack now takes a label that is printed before the stack.

* improve the banner shown for debugPrintBeginFrameBanner.

* various and sundry documentation fixes
2016-09-08 13:54:21 -07:00
Matt Perry
b71d7694ab Prevent Hero transition for AppBar on Pesto recipe page. (#5760)
BUG=https://github.com/flutter/flutter/issues/5351
2016-09-08 16:40:11 -04:00
Phil Quitslund
d2fda677e1 Update to Dart 1.20.0-dev.1.0. (#5689)
* Udpate to Dart `1.20.0-dev.1.0`.

Udpate to Dart `1.20.0-dev.1.0` and corresponding `analyzer` package.

* Added `--no-packages-dir`.

* Revert extension to master.

* Added ignores.

* Review nits.

* More nits.
2016-09-08 13:14:08 -07:00
Ian Hickson
99a9bbbe7c Add a test for 5630 (#5768)
This issue got fixed by a recent check-in, but I had a test specifically
for this incarnation so we should probably keep it just in case.

Closes https://github.com/flutter/flutter/issues/5630
2016-09-08 12:14:24 -07:00
Chinmay Garde
0fe09e52eb Update engine revision to pull in fixes for crashes on arm64 due to missing CRC32 instruction. (#5774) 2016-09-08 11:48:36 -07:00
Dan Rubel
3ed3390d0c flutter analyze repo analysis options (#5707)
This updates the flutter analyze command to use the .analysis_options_flutter_analyze in the repo root when either the --flutter-repo flag is supplied or the sources being analyzed reside in the flutter repo.
2016-09-07 22:41:59 -04:00
Ian Hickson
1f15e06e45 Handle stateful widgets in layout builders. (#5752)
Previously, if a StatefulWidget was marked dirty, then removed from the
build, then reinserted using the exact same widget under a widget under
a LayoutBuilder, it wouldn't rebuild.

This fixes that.

It also introduces an assert that's supposed to catch SizeObserver-like
behaviour. Rather than make this patch even bigger, I papered over two
pre-existing bugs which this assert uncovered (and fixed the other
problems it found):

   https://github.com/flutter/flutter/issues/5751
   https://github.com/flutter/flutter/issues/5749

We should fix those before 1.0 though.
2016-09-07 14:45:19 -07:00
Dragoș Tiselice
691c25faca Renamed Step curve to Threshold. (#5755)
In the interest of using the name in the case of Material steppers,
this commit renames Step curve to Threshold.
2016-09-07 13:58:04 -07:00
Matt Perry
e47a421e42 Use slide-from-right transition only when doing back gesture
This eliminates all the issues around the horizontal page transition. I also improved the back gesture animation, and added fling support.

BUG=https://github.com/flutter/flutter/issues/5678
BUG=https://github.com/flutter/flutter/issues/5622
2016-09-07 13:34:50 -04:00
Dan Rubel
359862bb8d Update ISSUE_TEMPLATE.md (#5747) 2016-09-06 20:42:59 -04:00
Chris Bracken
a69c11f349 Replace hardcoded iOS build dir with config-driven lookup (#5732)
Related: b5f763b45e454863eb5baa10132e5e2df59d6987
2016-09-02 17:01:11 -07:00
Dragoș Tiselice
dcda3d5ed8 Fixed a bug related to AnimtedCrossFade. (#5730)
Fixed a bug where the size of the AnimatedCrossFade would always
start from the size of the first child, irrespective of the
initial crossFadeState argument.
2016-09-02 16:41:09 -07:00
Hans Muller
afc0550a67 Fix circle antialiasing in the animation demo (#5729) 2016-09-02 16:13:09 -07:00
Jason Simmons
f6f37ef260 Roll the engine (#5725) 2016-09-02 10:46:46 -07:00
Seth Ladd
9e808aad7e Change from plural to singular (#5705)
Closes #5702

Update transitions_perf_test.dart

Update simple_smoke_test.dart
2016-09-02 09:14:06 -07:00
Dragoș Tiselice
8a20b261d0 Changed Material ease animations to fastOutSlowIn. (#5643)
Fixes #5393.
2016-09-02 09:03:51 -07:00
Dan Rubel
c57635f1a8 adjust channel_test to be less specific (#5721)
* adjust channel_test to be less specific
fixes https://github.com/flutter/flutter/issues/5716
2016-09-01 22:05:03 -04:00
Hans Muller
d6a6053630 Contacts icon alignment (#5719) 2016-09-01 15:42:23 -07:00
Dragoș Tiselice
8fed9d9e16 Added expansion panels demo to gallery. (#5539) 2016-09-01 15:36:26 -07:00
Dan Rubel
023b7de11f show device list in flutter doctor output (#5697)
* show device list in flutter doctor output
fixes https://github.com/flutter/flutter/issues/5625
2016-09-01 17:55:16 -04:00
Ian Hickson
6a323f6f19 Try to help people using intrinsic dimension methods more. (#5712) 2016-09-01 14:20:49 -07:00
Hans Muller
f27fa0ece0 Gallery animation demo: lazily compute screen dimensions (#5715) 2016-09-01 14:07:22 -07:00
Ian Hickson
1152fd60f6 Adds tester.pumpUntilNoTransientCallbacks (#5696)
Fixes https://github.com/flutter/flutter/issues/5234
2016-09-01 12:42:38 -07:00
Ian Hickson
ae56554705 Add example to RichText (#5708) 2016-09-01 11:59:23 -07:00
Ian Hickson
663596bc54 Handle GlobalKey reparenting inside LayoutBuilder (#5673) 2016-09-01 11:54:42 -07:00
Matt Perry
3732d754ca Re-enable iOS back gesture. (#5680)
The iOS transition is the more buggy part of this feature, and it wasn't
disabled. Let's just leave them enabled while I work on improvements.
2016-09-01 13:22:22 -04:00
Dan Rubel
ef79e7a1c0 improve device matching error message (#5693)
* improve device matching error message
fixes https://github.com/flutter/flutter/issues/5675
2016-09-01 12:37:58 -04:00
Dragoș Tiselice
50ead56e0e Made all drawer items actionable. (#5688)
One of the drawer items was dsiabled but still clickable which
led to inconsistent icon coloring. THis commit makes this item
actionable. Fixes #5683.
2016-08-31 15:46:39 -07:00
Dragoș Tiselice
b4fb23ad10 Increased text margin in typography demo. (#5691)
Subheading title was too close to the actual example. This commit
increases the size of its box. Fixes #5682.
2016-08-31 15:15:13 -07:00
Dragoș Tiselice
3964aaad55 Added action to Pesto FAB. (#5687)
The floating action button inside of the Pesto demo now opens up
a snackbar. Fixes #5685.
2016-08-31 14:50:14 -07:00
Matt Perry
6007f6af36 Use fastOutSlowIn curve for transitions on iOS when not controlled by user gesture. (#5666)
BUG=https://github.com/flutter/flutter/issues/5599
2016-08-31 13:50:38 -04:00
Eddy Ernesto del Valle Pino
ed6e7fa06f Ask if the app has location access before asking for location. (#5659) 2016-08-31 09:54:15 -07:00
Dan Rubel
e20ec2becb implement flutter format (#5606)
Implement flutter format, fixes https://github.com/flutter/flutter/issues/5338
2016-08-31 09:40:17 -04:00
Dragoș Tiselice
0fbe3ce92c Added AnimatedCrossFade. (#5650)
Added a widget that cross fades two children while animating the
size of the parent based on the children's interpolated sizes.
2016-08-30 15:02:36 -07:00
Jason Simmons
4aba536aa9 Support x86/x64 targets in the build apk command (#5660)
Fixes https://github.com/flutter/flutter/issues/5592
2016-08-30 14:13:47 -07:00
Jason Simmons
a4c9adfb5c Restrict Gallery to phone-sized screens (#5662)
See https://github.com/flutter/flutter/issues/5570
2016-08-30 13:53:57 -07:00
Matt Perry
1a87d4b82c Disable back gesture behind a flag until it's ready. (#5646)
Also added a regression test for the back gesture on iOS and android.
2016-08-30 16:17:31 -04:00
Dan Rubel
83bf5d10c0 fix getDeviceById to match exact name (#5657)
* fix getDeviceById to match exact name
fixes https://github.com/flutter/flutter/issues/5508
2016-08-30 14:11:54 -04:00
Hans Muller
f6353b686d Image should handle InheritedWidget ancestor changes (#5656) 2016-08-30 08:51:28 -07:00
Devon Carew
22fe5db91a peg dartdoc to a specific version (#5644)
* peg dartdoc to a specific version

* add some documentation

* apply the fix to dev/bots/docs instead
2016-08-29 16:20:18 -07:00
Hans Muller
119758b822 Make the suspended gallery task bar gray (#5651) 2016-08-29 14:59:10 -07:00
Hans Muller
c76decb842 Update Scrollable scrollBehavior when ScrollConfiguration changes (#5647) 2016-08-29 14:36:53 -07:00
Adam Barth
e0f6c0db84 Add labels to the slider demos (#5639)
Previously, it was unclear that the middle slider was disabled.

Fixes #5517
2016-08-29 12:17:34 -07:00
Ian Hickson
ea6bf4706a Fix the losing of state when pushing opaque routes (#5624)
Fixes https://github.com/flutter/flutter/issues/5283

Other changes in this patch:

Rename OffStage to Offstage.
Fixes https://github.com/flutter/flutter/issues/5378

Add a lot of docs.

Some minor punctuation and whitespace fixes.
2016-08-29 11:28:37 -07:00
Ian Hickson
43d0eeb8e1 Update the docs for hitTest() (#5520) 2016-08-29 11:25:39 -07:00
Ian Hickson
dd2251ecf5 Fix some hero observer bugs (#5633)
1: If a route is already dismissed when it's popped, there's no point
trying to animate heroes, because it's going to be gone before the
heroes code can look at it.

2: If a hero animation finishes just as a new one is starting, we
previously blew away the state for the starting one. Now we correctly
segregate the "starting up quest" variables from the "actively ongoing
quest" variables.
2016-08-29 10:35:18 -07:00
Chris Bracken
4bc70c9e91 Fix minor misspellings in comments. (#5641) 2016-08-29 10:05:22 -07:00
Ian Hickson
4db096ab4e Some cleanup in the heroes realm. (#5559) 2016-08-26 17:47:12 -07:00
Hans Muller
d0e72d616b Prevent looking up inherited widget values from initState() (#5609) 2016-08-26 15:19:46 -07:00
Ryan Macnak
fa8dc5f88b Do not truncate commands, this inhibits reproduction. (#5607) 2016-08-26 14:48:21 -07:00