INNER CODE UNIT · Dart

CustomRefreshIndicator

gonuit/flutter-custom-refresh-indicator · lib/src/custom_refresh_indicator.dart:46

class CustomRefreshIndicator extends StatefulWidget {
  /// The value from which [IndicatorController] is considered to be armed.
  static const armedFromValue = 1.0;

  /// The default distance the user must over-scroll for the indicator
  /// to be armed, as a percentage of the scrollable's container extent.
  ///
  /// This value matches the extent to armed of built-in [RefreshIndicator] widget.
  static const defaultContainerExtentPercentageToArmed = 0.25 * (1 / 1.5);

  /// {@template custom_refresh_indicator.durations}
  /// Defines a durations that are used to control the duration of each phase,
  /// allowing you to adjust the behavior of the refresh indicator.
  /// {@endtemplate}
  final RefreshIndicatorDurations durations;

  /// {@template custom_refresh_indicator.notification_predicate}
  /// Determines whether the received [ScrollNotification] should

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…