1. 30 Sep, 2015 19 commits
  2. 29 Sep, 2015 17 commits
  3. 28 Sep, 2015 4 commits
    • Devon Carew's avatar
      Merge pull request #1375 from devoncarew/customize_dartdoc · ebd7fa3e
      Devon Carew authored
      customize the generated dartdoc to look like flutter.io
      ebd7fa3e
    • Hixie's avatar
      Require giving a GlobalKey to UniqueComponent · 5487b954
      Hixie authored
      Having UniqueComponent automatically generate its own key is a trap. If
      anyone ever creates a UniqueComponent in a build function (rather than
      ahead of time) and forgets to pass a key, then that entire subtree is
      going to be rebuilt, including layout, every time it's updated. Since
      there's basically no way for us to catch this, we should at least force
      the author to see the explicit "new GlobalKey()" call in their code.
      5487b954
    • Hixie's avatar
      Make the checkbox in the stocks popup menu work. · 066768f0
      Hixie authored
      Tapping on the menu item didn't animate the checkbox because the menu
      takes 300ms to animate entirely away while the checkbox takes 200ms to
      animate checked, and since the item with the checkbox was at the bottom,
      we were only seeing about 60ms of the entire checkbox animation, which
      isn't enough to notice it. So I moved it to the top of the menu.
      
      Tapping on the checkbox didn't animate because nothing caused the menu
      to rebuild when the callback was invoked. To trigger a rebuild, I now
      call navigator.setState() explicitly, after changing out local state.
      
      To make tapping the checkbox remove the menu, I also explicitly call
      navigator.pop() in the code that handles the check. (I still explicitly
      change the checkbox to show that that's possible. In principle one could
      just treat the checkbox as an inert widget that happens to trigger pop,
      and do all the checking/unchecking in the switch statement.)
      
      I also made some minor style tweaks to files I was looking at while
      dealing with this issue.
      066768f0
    • Hixie's avatar
      Make the FAB move up when a Snack Bar slides in. · 56d40334
      Hixie authored
      This changes how SnackBar works so you can use it anywhere, not just on
      the bottom edge of the screen (it used to rely on overflowing its bounds
      and having negative offsets... I'm not really sure how hit testing
      worked on it before!).
      
      To do this I introduced a new RenderBox, RenderOverflowBox, that lets
      you set your child's size independent of your own. I needed this so that
      the snack bar could use a SquashTransition to change its size, while not
      affecting the layout of its child. This is exposed as OverflowBox in
      fn3. I'm not sure if it's the best API. It doesn't let you position the
      child (which is an issue if the size you give is smaller), it doesn't
      let you give a loose constraint (which maybe you might want?). But it
      handles this use case, so for now it's probably ok.
      
      Making the FAB get repositioned out of the way of the Snack Bar is now
      done in the Scaffold, which is in charge of positioning both of those
      and is the place that knows that both exist.
      56d40334