1. 14 Sep, 2015 1 commit
  2. 08 Sep, 2015 1 commit
  3. 02 Sep, 2015 1 commit
    • Adam Barth's avatar
      Move widgets and rendering inside src · 693ddcd8
      Adam Barth authored
      Code outside of package:sky should import this code using
      
      package:sky/rendering.dart
      package:sky/widgets.dart
      
      Moving this code into the "src" directory is a convention that signifies that
      and it cleans up the generated dartdoc because the libraries in the src
      directory aren't included in the generated documentation. Instead, the classes
      are documented in the widgets.dart and rendering.dart libraries.
      693ddcd8
  4. 17 Aug, 2015 2 commits
  5. 13 Aug, 2015 1 commit
  6. 05 Aug, 2015 1 commit
  7. 04 Aug, 2015 3 commits
    • Adam Barth's avatar
      Rename widgets/widget.dart to widgets/framework.dart · 054ebbf3
      Adam Barth authored
      It was confusing to have both widget.dart and widgets.dart
      054ebbf3
    • 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
  8. 30 Jul, 2015 1 commit
    • James Robinson's avatar
      Make Switch a standalone class with a custom RenderObject · 445f4ee8
      James Robinson authored
      This changes Switch from being a subclass of the Toggleable widget to
      being a standalone Component with a custom RenderObject. This is to
      enable adding Switch-specific radial reaction animations in a
      subsequent patch. The CustomPaint logic that Toggleable was using does
      not provide a nice way for a class and its subclass to both participate
      in deciding to repaint.
      445f4ee8
  9. 28 Jul, 2015 2 commits
  10. 22 Jul, 2015 1 commit
    • Hixie's avatar
      Introduce an explicit Key type. · 74575775
      Hixie authored
      This fixes some theoretical bugs whereby we were using hashCode to try
      to get unique keys for objects, but really we wanted object identity.
      It also lays the groundwork for a new GlobalKey concept.
      
      I tried to keep the impact on the code minimal, which is why the "Key"
      constructor is actually a factory that returns a StringKey. The code
      has this class hierarchy:
      
      ```
         KeyBase
          |
         Key--------------+---------------+
          |               |               |
         StringKey    ObjectKey       UniqueKey
      ```
      
      ...where the constructors are Key and Key.stringify (StringKey),
      Key.fromObjectIdentity (ObjectKey), and Key.unique (UniqueKey).
      
      We could instead of factory methods use regular constructors with the
      following hierarchy:
      
      ```
         KeyBase
          |
         LocalKey---------+---------------+
          |               |               |
         Key      ObjectIdentityKey   UniqueKey
      ```
      
      ...with constructors Key, Key.stringify, ObjectIdentityKey, and
      UniqueKey, but I felt that that was maybe a more confusing hierarchy.
      I don't have a strong opinion on this.
      74575775
  11. 16 Jul, 2015 1 commit