Skip to content

Commit ba7cbea

Browse files
authored
Fix outdated comment about overflow (#112595)
1 parent 145904f commit ba7cbea

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/flutter/lib/src/cupertino/refresh.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,13 @@ class CupertinoSliverRefreshControl extends StatefulWidget {
380380
) {
381381
final double percentageComplete = clampDouble(pulledExtent / refreshTriggerPullDistance, 0.0, 1.0);
382382

383-
// Place the indicator at the top of the sliver that opens up. Note that we're using
384-
// a Stack/Positioned widget because the CupertinoActivityIndicator does some internal
385-
// translations based on the current size (which grows as the user drags) that makes
386-
// Padding calculations difficult. Rather than be reliant on the internal implementation
387-
// of the activity indicator, the Positioned widget allows us to be explicit where the
388-
// widget gets placed. Also note that the indicator should appear over the top of the
389-
// dragged widget, hence the use of Overflow.visible.
383+
// Place the indicator at the top of the sliver that opens up. We're using a
384+
// Stack/Positioned widget because the CupertinoActivityIndicator does some
385+
// internal translations based on the current size (which grows as the user drags)
386+
// that makes Padding calculations difficult. Rather than be reliant on the
387+
// internal implementation of the activity indicator, the Positioned widget allows
388+
// us to be explicit where the widget gets placed. The indicator should appear
389+
// over the top of the dragged widget, hence the use of Clip.none.
390390
return Center(
391391
child: Stack(
392392
clipBehavior: Clip.none,

0 commit comments

Comments
 (0)