Skip to content

Refresh indicator - #4788

Merged
HansMuller merged 4 commits into
flutter:masterfrom
HansMuller:refresh_indicator
Jun 30, 2016
Merged

HansMuller merged 4 commits into
flutter:masterfrom
HansMuller:refresh_indicator

Conversation

@HansMuller

Copy link
Copy Markdown
Contributor
  • Now displays the correct animation during a drag.
  • Handles overlapping calls to the refresh callback.
  • Forced SawToothCurve(t == 1.0) to transform to 1.0.

The implementation listens to the pointer instead of ScrollNotifications. At least for now, it's necessary to identify the scrollable that's driving the refresh indicator with a scrollableKey.

Fixes #4130

Animation<Color> valueColor
}) : super(key: key, value: value, backgroundColor: backgroundColor, valueColor: valueColor);

final AnimationController controller;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this used anywhere?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops, no. A leftover from an earlier version, thanks for catching that.

@abarth

abarth commented Jun 30, 2016

Copy link
Copy Markdown
Contributor

LGTM w/ coalescing the refreshes.

@HansMuller
HansMuller merged commit d9b9983 into flutter:master Jun 30, 2016
cdotstout pushed a commit to cdotstout/flutter that referenced this pull request Apr 3, 2018
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 15, 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.

repeatedly pulling on the refresh indicator on Android doesn't look right

2 participants