Skip to content

Conversation

@gspencergoog
Copy link
Contributor

This fixes #17169 by adding onChangeStart and onChangeEnd to the slider. These will be called when the user starts a change, and when they end a change, regardless of whether that change is a tap or a drag.

These differ from onChanged, in that they only report when the user starts and ends an interaction, not at every slight change.

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

Lgtm

@gspencergoog gspencergoog merged commit c2c64a5 into flutter:master May 11, 2018
srawlins added a commit to srawlins/flutter that referenced this pull request May 11, 2018
* master:
  Add a golden image test for centered text (flutter#17517)
  Gallery a11y fix: give the categories and demos pages "route" scope (flutter#17516)
  Stop Gallery the logo to back-button cross fade shaking (flutter#17513)
  Correct a typo in InputDecorator, affects computeMinIntrinsicHeight() (flutter#17512)
  don't fail a test when there are issues deleting a temp dir (flutter#17498)
  Roll engine to 9ae10ef (flutter#17503)
  Roll engine to b856303 (flutter#17499)
  Rebase after package:isolate fixes. (flutter#17289)
  Add more unit tests for AOT snapshotting (flutter#17493)
  Update a TODO with issue number (flutter#17494)
  Fix backdrop demo margin for iPhone X (flutter#17480)
  Post libtxt/post iOS 11 fidelity fine tuning (flutter#17366)
  Add onChangeStart and onChangeEnd to slider. (flutter#17298)
  Use deprecated I/O constants (flutter#17491)
  Augment `flutter screenshot` with all supported screenshot types (flutter#17478)
  Roll engine to fade83c (flutter#17488)
  Fix handling of null body2 text style for chip and slider (flutter#17311)
  Roll engine to 37e20af (flutter#17481)
  Mark test as flaky (flutter#17486)
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
This fixes flutter#17169 by adding onChangeStart and onChangeEnd to the slider. These will be called when the user starts a change, and when they end a change, regardless of whether that change is a tap or a drag.

These differ from onChanged, in that they only report when the user starts and ends an interaction, not at every slight change.
gspencergoog pushed a commit that referenced this pull request May 18, 2018
This is a follow up on issue #17169 and the pull request #17298

This pull request adds the onChangeStart and onChangeEnd callbacks for CupertinoSlider. These are called when a user starts and ends a change respectively.

Pushing for @dcaraujo0872, the PR author.
@gspencergoog gspencergoog deleted the slider_callback branch May 30, 2018 21:16
@bahrinb55
Copy link

I am having an issue, I am trying to get the end value of a slider, but for some reason, the onChangeEnd is hired 2 times, when user moves the slider

@zoechi zoechi added framework flutter/packages/flutter repository. See also f: labels. f: scrolling Viewports, list views, slivers, etc. f: material design flutter/packages/flutter/material repository. and removed f: scrolling Viewports, list views, slivers, etc. labels Jan 24, 2019
@tzvc
Copy link

tzvc commented Oct 14, 2019

Same problem as @bahrinb55 here

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slider needs callback for when touch/interaction ends

6 participants