INNER CODE UNIT · Dart

of

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

  static InViewState? of(BuildContext context) {
    final InheritedInViewWidget widget = context
        .getElementForInheritedWidgetOfExactType<InheritedInViewWidget>()!
        .widget as InheritedInViewWidget;
    return widget.inViewState;
  }

  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].

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…