1. 11 Oct, 2018 1 commit
  2. 08 Oct, 2018 1 commit
    • Ian Hickson's avatar
      Fix bug in AnimatedSwitcher (#22183) · 874df1ec
      Ian Hickson authored
      * Refactor AnimatedSwitcher
      
      This is mostly just a little bit of cleanup with hopefully no semantic
      changes, done to teach me how the code works so that I could fix a bug.
      
      * Add debugging information to AnimatedSwitcher
      
      * Fix AnimatedSwitcher to handle the case of back-to-back changes
      
      Previously, if a child was replaced the very next frame after it was
      added, we'd get confused because we tried to reverse the controller,
      which causes us to remove the child from the going-away list, before
      we had added the child to the list in the first place.
      
      The fix is just to move the reverse to after the add.
      874df1ec
  3. 12 Sep, 2018 1 commit
  4. 02 Aug, 2018 1 commit
  5. 27 Jul, 2018 1 commit
  6. 23 Jul, 2018 1 commit
  7. 16 Jul, 2018 2 commits
  8. 20 Jun, 2018 1 commit
  9. 19 Jun, 2018 1 commit
  10. 18 May, 2018 1 commit
    • Greg Spencer's avatar
      Speed up AnimatedSwitcher. (#17265) · 1f5fcb74
      Greg Spencer authored
      This optimizes the AnimatedSwitcher so that it tags the right widget with its keyed subtree, and avoids rebuilding the transition unnecessarily.
      
      This significantly improves the performance of Chips (which uses AnimatedSwitcher to swap out it's avatar and delete icon children).
      1f5fcb74
  11. 16 Apr, 2018 1 commit
    • Greg Spencer's avatar
      Rename AnimatedChildSwitcher to AnimatedSwitcher (#16551) · 6c049ec2
      Greg Spencer authored
      We don't really like the name AnimatedChildSwitcher, and we think that AnimatedSwitcher might be better (since the Child part is redundant). We also considered AnimatedChild, AnimatedTransition and AnimatedReplacement (among others).
      
      Nothing in here besides a rename.
      6c049ec2
  12. 12 Apr, 2018 1 commit
    • Greg Spencer's avatar
      Fix a bug in the AnimatedChildSwitcher, add builders. (#16250) · c73b8a7c
      Greg Spencer authored
      This fixes a rendering problem in the AnimatedChildSwitcher where it would add a new "previous" child each time it rebuilt, and if you did it fast enough, all of them would disappear from the page.
      
      It also expands the API for AnimatedChildSwitcher to allow you to specify your own transition and/or layout builder for the transition.
      
      Fixes #16226
      c73b8a7c
  13. 03 Apr, 2018 1 commit
    • Greg Spencer's avatar
      Add AnimatedChildSwitcher widget (#16192) · 6c896ae1
      Greg Spencer authored
      The AnimatedChildSwitcher widget (originally authored by Hixie), will cross-fade between a new child, and a previous child (or children, if the switch happens faster than the fade finishes).
      
      It's a good candidate for places where a widget will be added/removed from a slot, and you want a nice transition to occur.
      6c896ae1