Skip to content

Conversation

@Hixie
Copy link
Contributor

@Hixie Hixie commented Dec 24, 2015

  • Add RenderFractionalTranslation, a render box that does a
    translation based on a FractionalOffset.
  • Make FractionalOffset more like Offset
    • dx/dy instead of x/y
    • add /, ~/, %
    • add .zero
  • Add alongOffset and alongSize to FractionalOffset so that you can
    easily apply FractionalOffset to Offsets and Sizes. (Better name
    suggestions welcome.)
  • Add transformHitTests boolean to RenderTransform (also on
    RenderFractionalTranslation), and to classes based on it.
  • Remove the fade from Dismissable. We can add it back using the
    builder-with-child pattern like Draggable if we need it. See Dismissable's build should be wrappable during a dismiss #1003
    for tha feature request.
  • Rename a bunch of variables in dismissable.dart.
  • Change the test for dismissable to not handle leftwards dismisses
    one pixel different from rightwards dismisses, and cleaned up the
    resulting effect on the test (mostly making sure we had the right
    number of pumps, with comments explaining what each one was).

Fixes #174.

@Hixie
Copy link
Contributor Author

Hixie commented Dec 24, 2015

I can split this into multiple patches if it's too much of a pain to review as-is. There was a bit of a yak shave involved.

@Hixie
Copy link
Contributor Author

Hixie commented Dec 24, 2015

Oh I forgot to mention one major change in this patch: it changes SlideTransition from working in absolute pixels to working in fractional offsets. There is only one consumer in our repo, but this might affect other people so I'll send a mail about it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@abarth
Copy link
Contributor

abarth commented Dec 24, 2015

LGTM

- Add RenderFractionalTranslation, a render box that does a
  translation based on a FractionalOffset.

- Make FractionalOffset more like Offset
  - dx/dy instead of x/y
  - add /, ~/, %
  - add .zero

- Add alongOffset and alongSize to FractionalOffset so that you can
  easily apply FractionalOffset to Offsets and Sizes. (Better name
  suggestions welcome.)

- Add transformHitTests boolean to RenderTransform (also on
  RenderFractionalTranslation), and to classes based on it.

- Remove the fade from Dismissable. We can add it back using the
  builder-with-child pattern like Draggable if we need it. See flutter#1003
  for tha feature request.

- Rename a bunch of variables in dismissable.dart.

- Change the test for dismissable to not handle leftwards dismisses
  one pixel different from rightwards dismisses, and cleaned up the
  resulting effect on the test (mostly making sure we had the right
  number of pumps, with comments explaining what each one was).

Fixes flutter#174.
Hixie added a commit that referenced this pull request Dec 24, 2015
RenderFractionalTranslation and Dismissable
@Hixie Hixie merged commit 4f672dc into flutter:master Dec 24, 2015
@Hixie Hixie deleted the transform branch December 24, 2015 19:08
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dismissable doesn't dismiss to the right edge

2 participants