- 22 Nov, 2017 1 commit
-
-
Kyle Bradshaw authored
* AnimationController reset() method Just a simple convenience method to fix #13039 * Added `reset()` test * More test expectations Per feedback. * Removed test print * Improved documentation of reset() * Add controller.reverse to test
-
- 16 Nov, 2017 1 commit
-
-
Ian Hickson authored
Previously, ExpansionPanel would do weird things if interacted with when it was already animating. This is fixed and there's now a test. Also: * Minor fixes to make the gallery work in RTL, not that there's any way to see that without hard-coding the framework to RTL. But at least I'll be less annoyed when doing that. * Some trivial code and documentation cleanup.
-
- 04 Aug, 2017 3 commits
-
-
Michael Goderbauer authored
* Adding tests for animationStatus * remove comments * animateTo is allways forward * clearify docs * review comments
-
Michael Goderbauer authored
-
Michael Goderbauer authored
* 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
-
- 21 Jun, 2017 1 commit
-
-
Alan authored
-
- 02 May, 2017 1 commit
-
-
Ian Hickson authored
This splits the frame pipeline into two, beginFrame and drawFrame. As part of making this change I added some debugging hooks that helped debug the issues that came up: * I added debugPrintScheduleFrameStacks which prints a stack whenever a frame is actually scheduled, so you can see why frames are being scheduled. * I added some toString output to EditableText and RawKeyboardListener. * I added a scheduler_tester.dart library for scheduler library tests. * I changed the test framework to flush microtasks before pumping. * Some asserts that had the old string literal form were replaced by asserts with messages. I also fixed a few subtle bugs that this uncovered: * setState() now calls `ensureVisualUpdate`, rather than `scheduleFrame`. This means that calling it from an AnimationController callback does not actually schedule an extra redundant frame as it used to. * I corrected some documentation.
-
- 15 Apr, 2017 1 commit
-
-
Ian Hickson authored
With this patch, you can do: ```dart Future<Null> foo() async { try { await controller.forward().orCancel; await controller.reverse().orCancel; await controller.forward().orCancel; } on TickerCanceled { // did not complete } } ``` ...in a State's async method, and so long as you dispose of the controller properly in your dispose, you'll have a nice way of doing animations in sequence without leaking the controller. try/finally works as well, if you need to allocate resources and discard them when canceled. Simultaneously, you can do: ```dart Future<Null> foo() async { await controller.forward().orCancel; await controller.reverse().orCancel; await controller.forward().orCancel; } ``` ...and have the same effect, where the method will just silently hang (and get GC'ed) if the widget is disposed, without leaking anything, if you don't need to catch the controller being killed. And all this, without spurious errors for uncaught exceptions on controllers.
-
- 16 Mar, 2017 1 commit
-
-
Hans Muller authored
-
- 15 Mar, 2017 1 commit
-
-
Alexandre Ardhuin authored
-
- 04 Mar, 2017 1 commit
-
-
Chris Bracken authored
-
- 18 Feb, 2017 1 commit
-
-
Todd Volkert authored
-
- 09 Feb, 2017 1 commit
-
-
Alexandre Ardhuin authored
-
- 20 Jan, 2017 2 commits
-
-
Adam Barth authored
This patch aligns the iteration patterns used by animations and ChangeNotifier. They now both respect re-entrant removal of listeners and coalesce duplication registrations. (Also, ChangeNotifier notification is no longer N^2). This patch introduces ObserverList to avoid the performance regression that the previous version of this patch caused. Fixes #7533
-
Adam Barth authored
Also, fix some minor bugs with SynchronousFuture.
-
- 19 Jan, 2017 4 commits
-
-
Adam Barth authored
-
Adam Barth authored
This patch aligns the iteration patterns used by animations and ChangeNotifier. They now both respect re-entrant removal of listeners and coalesce duplication registrations. (Also, ChangeNotifier notification is no longer N^2). Fixes #7533
-
Adam Barth authored
Previously the navigator wouldn't always call Route.dispose when it was removed from the tree. After this patch, the navigator remembers popped routes so that it can call dispose on them when it is removed from the tree. Also, improve some error messages around calling dispose() more than once on routes and AnimationControllers. Fixes #7457
-
Adam Barth authored
The only client of this machinery was AnimationController.fling, but it's easier for that function to just create the simulation it needs directly. Fixes #7216
-
- 17 Jan, 2017 1 commit
-
-
Adam Barth authored
* MultiTapGestureRecognizer previously would assert if there was no competition. * GestureArenaTeam would always select the first recongizer as the winner even if a later recognizer actually accepted the pointer sequence. * debugPrintStack would fail a type check if maxFrames was non-null. * FractionalOffset.lerp would throw a null-pointer exception if its second argument was null. Also, add a number of tests for previously untested lines of code.
-
- 11 Jan, 2017 1 commit
-
-
Adam Barth authored
Also, make the exception handling for global key listeners slightly more robust.
-
- 05 Jan, 2017 1 commit
-
-
Hans Muller authored
-
- 16 Dec, 2016 1 commit
-
-
Ian Hickson authored
Port DecelerateInterpolator to Flutter. Also, hide the Curve subclasses that you can't extend and that have no statics and are generally not useful.
-
- 09 Dec, 2016 1 commit
-
-
Alexandre Ardhuin authored
-
- 17 Nov, 2016 1 commit
-
-
Ian Hickson authored
(and minor doc changes) This will in the future allow Scrollable to not track the Simulation itself.
-
- 26 Sep, 2016 1 commit
-
-
Ian Hickson authored
This requires all AnimationController objects to be given a TickerProvider, a class that can create the Ticker. It also provides some nice mixins for people who want to have their State provide a TickerProvider. And a schedulerTickerProvider for those cases where you just want to see your battery burn. Also, we now enforce destruction order for elements.
-
- 07 Sep, 2016 1 commit
-
-
Dragoș Tiselice authored
In the interest of using the name in the case of Material steppers, this commit renames Step curve to Threshold.
-
- 04 Aug, 2016 1 commit
-
-
Jason Simmons authored
This also required changing the AnimationController state transition logic to signal completion of the animation during the tick that finishes the simulation. Fixes https://github.com/flutter/flutter/issues/3675
-
- 24 Jun, 2016 2 commits
-
-
Adam Barth authored
The one line we don't test is the private constructor for the Curves class, which exists to ensure that no one constructs the Curves class.
-
Adam Barth authored
`flutter test` now has a `--merge-coverage` flag that can be used to merge coverage data from previous runs, enabling faster iteration cycles.
-
- 23 Jun, 2016 3 commits
-
-
Adam Barth authored
-
Adam Barth authored
We now have 100% coverage of animation.dart and animation_controller.dart. Also, add some basic tools for working with lcov files. These tools need much more polish.
-
Adam Barth authored
Also, fix the bug where apps would assert when you change the time dilation. Use that mechanism to fix the animation controller tests.
-
- 13 Jun, 2016 1 commit
-
-
Adam Barth authored
Instead of flinging to between 0.0 and 1.0, we should adapt the default spring to the controller's upper and lower bounds. Fixes #3545
-
- 04 May, 2016 1 commit
-
-
pq authored
The `flutter` package gets more types! Follow-up from: https://github.com/flutter/flutter/pull/3727.
-
- 22 Apr, 2016 1 commit
-
-
Ian Hickson authored
The old names were getting silly and started stepping on valuable namespace. The new names are consistent and clear.
-
- 02 Mar, 2016 1 commit
-
-
Adam Barth authored
Fixes #2324
-
- 27 Feb, 2016 1 commit
-
-
Adam Barth authored
Previously we would elide forward and reverse callbacks that canceled each other out, which broke the expected state machine. Now we synchronously deliver status callbacks when start an animation. Fixes #1913
-
- 21 Feb, 2016 1 commit
-
-
Adam Barth authored
We should mutate the status of the AnimationController before calling the status callbacks so that we're prepared to be re-entered. Fixes #1911
-