1. 27 Jan, 2016 1 commit
  2. 22 Jan, 2016 1 commit
  3. 11 Jan, 2016 3 commits
    • Adam Barth's avatar
      Use a named argument for Widget children · 05676641
      Adam Barth authored
      Previously we used a positional argument for widgets that had multiple
      children. Now we use a named argument that defaults to an empty list.
      
      Fixes #241
      05676641
    • Ian Hickson's avatar
      88c43c3f
    • Ian Hickson's avatar
      Add more debugging options to the stocks app. · 48e1350e
      Ian Hickson authored
      - Add an option to enable debugPaintSizeEnabled.
      - Add an option to enable the StatisticsOverlay.
      - Add support for the StatisticsOverlay in MaterialApp.
      - Change the layout behaviour of RenderStatisticsBox:
         - Give it a zero intrinsic width.
         - Give it an accurate intrinsic height that depends on the flags
           set. (Also, move the enum to the rendering/ layer from the
           widgets/ layer to enable this.)
         - Make the box automatically size itself full-width and the correct
           height, so that you can actually embed it (though most of the
           time you'd just put it in a Stack so this doesn't matter as
           much, really).
      - Some style nit fixes in statistics_box.dart.
      48e1350e
  4. 10 Jan, 2016 1 commit
  5. 08 Jan, 2016 1 commit
  6. 04 Dec, 2015 1 commit
  7. 30 Nov, 2015 1 commit
    • Hixie's avatar
      NavigatorTransaction · f9ea1ce8
      Hixie authored
      To make it easier to avoid pushing twice in one frame, provide a
      transaction mechanism for the navigator.
      f9ea1ce8
  8. 06 Nov, 2015 1 commit
    • Hixie's avatar
      Teach Block about padding. · 1f5844ea
      Hixie authored
      It's common to want a scrolling viewport but with padding around the
      contents. Teaching Block about this makes the places that do this
      substantially simpler and further buries ScrollableViewport and
      BlockBody (they're now only used in scrollable.dart).
      1f5844ea
  9. 02 Nov, 2015 1 commit
    • Adam Barth's avatar
      Routes shouldn't be interactive when animating out · 828775e9
      Adam Barth authored
      This patch introduces the notion of a ModalRoute that puts up a modal barrier
      and makes the route invisible to hit testing when its animating out. This patch
      also uses this mechanism in a number of places (including PageRoute). There are
      still a few more cases to convert, but that's work for a future patch.
      
      Fixes #1684
      828775e9
  10. 27 Oct, 2015 1 commit
    • Ian Hickson's avatar
      Track scroll position · 8a900f90
      Ian Hickson authored
      - Change RouteArguments to pass the route's BuildContext rather than
        the Navigator. This caused the bulk of the examples/ and .../test/
        changes (those are mostly mechanical changes). It also meant I could
        simplify Navigator.of().
      
      - Make initState() actually get called when the State's Element is in
        the tree, so you can use Foo.of() functions there. Added a test for
        this also.
      
      - Provide a RouteWidget so that routes have a position in the Widget
        tree. The bulk of the route logic is still in a longer-lived Route
        object for now.
      
      - Make Route.setState() only rebuild the actual route, not the whole
        navigator.
      
      - Provided a Route.of().
      
      - Provided a Route.writeState / Route.readState API that tries to
        identify the clients by their runtimeType, their key, and their
        ancestors keys, up to the nearest ancestor with a GlobalKey.
      
      - Made scrollables hook into this API to track state. Added a test to
        make sure this works.
      
      - Fix the debug output of GestureDetector and the hashCode of
        MixedViewport.
      
      - Fixed ScrollableWidgetListState<T> to handle infinite lists.
      8a900f90
  11. 22 Oct, 2015 1 commit
    • Adam Barth's avatar
      Add Navigator.of · de395582
      Adam Barth authored
      Now you don't need to pass the navigator around everywhere.
      de395582
  12. 19 Oct, 2015 1 commit
  13. 12 Oct, 2015 2 commits
    • Hixie's avatar
      Lots of trivial warning fixes · f2cc43a4
      Hixie authored
      Add type annotations in many places.
      Fix some identifiers to have more lint-satisfying names.
      Make all operator==s consistent in style.
      Reorder some functions for consistency.
      Make ParentData no longer dynamic, and fix all the code around that.
      f2cc43a4
    • Adam Barth's avatar
      Change the default MaterialType to canvas · 09665c0d
      Adam Barth authored
      Canvas is by far the most popular type of material by call site (and makes for
      a faster default because it doesn't have a RRect clip).
      09665c0d
  14. 06 Oct, 2015 1 commit
    • Adam Barth's avatar
      Simplify Scaffold · 89a09822
      Adam Barth authored
      Rather than using a custom render object, we can just use a Stack.
      89a09822
  15. 26 Sep, 2015 1 commit
  16. 21 Sep, 2015 1 commit
    • Adam Barth's avatar
      Remove EventDisposition · 051354ae
      Adam Barth authored
      All the use cases for EventDisposition are now addressed by the gesture
      detection system.
      051354ae
  17. 26 Aug, 2015 1 commit
    • Hixie's avatar
      Replace Flex to Row and Column in tests and examples. · ce28a717
      Hixie authored
      This still leaves Flex and FlexDirection available. At some point once
      people have transitioned to Row/Column we should rename Flex to _Flex
      and stop reexporting FlexDirection from basic.dart.
      ce28a717
  18. 22 Aug, 2015 3 commits
  19. 21 Aug, 2015 1 commit
    • Adam Barth's avatar
      Rename all the scrollable classes · 010589be
      Adam Barth authored
      Block -> BlockBody
      ScrollableBlock -> Block
      FixedHeightScrollable -> ScrollableWidgetList
      VariableHeightScrollable -> ScrollableMixedWidgetList
      BlockViewport -> MixedViewport
      010589be
  20. 08 Aug, 2015 1 commit
  21. 04 Aug, 2015 2 commits
    • James Robinson's avatar
      Add RenderToggleable base and use in Switch and Checkbox · 56a4a8ad
      James Robinson authored
      This refactors Checkbox to own a RenderObject similar to how Switch was
      refactored in https://github.com/domokit/sky_engine/pull/376 and
      extracts common functionality for toggleable renderers into a base
      class.  Switch and Checkbox's render objects derive from this base
      class to add their own custom painting and theming logic.
      56a4a8ad
    • James Robinson's avatar
      Teach event system about disposition and make 'consumed' disposition terminal · 53163f8b
      James Robinson authored
      This introduces the notion of event disposition and allows event
      targets (widgets and render objects) to consume events that should not
      be processed further. This is needed by the Switch component in the
      Drawer in the stocks example. The Switch is embedded in a DrawerItem.
      The Switch handles the gesture tap event to toggle its state and should
      handle pointer events to allow swiping and draw its own radial
      reaction. The DrawerItem also handles gesture taps to allow toggling
      the switch value when tapping anywhere on the drawer and to draw its
      own ink splash. When tapping on the switch, both the switch's render
      object and the DrawerItem's listener are in the event dispatch path.
      The Switch needs to signal in some fashion that it consumed the event
      so the DrawerItem does not also try to toggle the switch's state.
      53163f8b
  22. 28 Jul, 2015 2 commits
  23. 25 Jul, 2015 1 commit
  24. 24 Jul, 2015 3 commits
    • Hixie's avatar
      Use the navigator to stack dialogs. · ac6342ab
      Hixie authored
      This removes the need to manually include the dialog builder in the main window's build() function.
      It also removes the need to track if a dialog is visible.
      
      Other changes:
      - I made dialog.dart a bit more readable.
      - I renamed transitionFinished to fullyOpaque since that's what actually matters.
      - I made Routes track if they're opaque. Eventually this should probably be more configurable when creating the route.
      
      Directions for Future Research:
      - Use this for focus management somehow.
      - The popup menu should use something like this.
      - We should factor the following out into a showDialog() function that returns a future for the dialog's exit result:
          navigator.push(new DialogRoute(builder: (navigator, route) { ... }));
      - Maybe navigator.pop() should take a value to return to that Future.
      ac6342ab
    • Jim Simon's avatar
      Converted examples to libraries · 3089686e
      Jim Simon authored
      Converted demo launcher example to library
      
      Converted fitness example to library
      
      Converted hello world example to library
      
      Converted mine digger example to library
      
      Converted stocks example to library
      3089686e
    • Collin Jackson's avatar
      Fix the new item dialog for fitness app · 9f6fc78c
      Collin Jackson authored
      9f6fc78c
  25. 21 Jul, 2015 1 commit
    • Hixie's avatar
      Rationalise usage of keys in navigator.dart. · 9da399b0
      Hixie authored
      Route (named routes) no longer have a key, and have their own storage for their names.
      RouseState no longer has a key, and uses an owner field pointing to a StatefulComponent instead.
      As such, RouteBase no longer has a key.
      
      HistoryEntry no longer uses a global int to ensure uniqueness.
      
      Propagated this to stocks app.
      9da399b0
  26. 16 Jul, 2015 1 commit