INNER CODE UNIT · Dart

_applyWrapper

rvamsikrishna/inview_notifier_list · lib/src/inview_notifier_list.dart:88

  static Widget _applyWrapper(ScrollViewWrapper? wrapper, Widget scrollView) {
    return wrapper != null ? wrapper(scrollView) : scrollView;
  }
}

///builds a [CustomScrollView] and notifies when the widgets are on screen within a provided area.
///
///A [CustomScrollView] lets you supply [slivers] directly to create various scrolling effects,
///such as lists, grids, and expanding headers. For example, to create a scroll view
///that contains an expanding app bar followed by a list and a grid, use a list of
///three slivers: [SliverAppBar], [SliverList], and [SliverGrid].

class InViewNotifierCustomScrollView extends InViewNotifier {
  // scrollDirection is intentionally not a super parameter — it is used both
  // for super.scrollDirection and to configure the inner CustomScrollView.
  // ignore: use_super_parameters
  InViewNotifierCustomScrollView({
    super.key,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…