INNER CODE UNIT · Dart

targetOffset

fluttercandies/flutter_scrollview_observer · lib/src/common/observer_controller.dart:479

          double targetOffset = precedingScrollExtent - viewportBoundaryExtent;
          if (targetOffset > maxScrollExtent) targetOffset = maxScrollExtent;
          await _controller.animateTo(
            targetOffset.rectify(obj),
            duration: _findingDuration,
            curve: _findingCurve,
          );
          await WidgetsBinding.instance.endOfFrame;
        }
      }
    }

    var targetScrollChildModel = indexOffsetMap[ctx]?[index];
    // There is a cache offset, scroll to the offset directly.
    if (targetScrollChildModel != null) {
      _handleScrollDecision(context: ctx);
      var calcResult = _calculateTargetLayoutOffset(
        obj: obj,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…