Skip to main content

positioned_sliver_list 0.2.4 copy "positioned_sliver_list: ^0.2.4" to clipboard
positioned_sliver_list: ^0.2.4 copied to clipboard

A virtualized sliver list with variable heights, exact index navigation, scroll anchoring, pixel scrolling and a scrollable_positioned_list compatible API.

example/lib/main.dart

import "dart:async";

import "package:flutter/foundation.dart";
import "package:logging/logging.dart";
import "package:pixel_snap/widgets.dart";

import "shell/app.dart";

void main() {
  Logger.root.onRecord.listen((record) {
    Zone.current.print("${record.level.name}: ${record.message}");
  });
  hierarchicalLoggingEnabled = true;
  WidgetsFlutterBinding.ensureInitialized();
  // Logger("SuperSliverList").level = Level.FINER;

  // Right now the debug bar doesn't work nicely with safe area so
  // only enable it on desktop platform.
  Widget app = const ExampleApp();
  if (defaultTargetPlatform != TargetPlatform.iOS &&
      defaultTargetPlatform != TargetPlatform.android) {
    app = PixelSnapDebugBar(child: app);
  }
  runApp(app);
}
2
likes
160
points
13.7k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A virtualized sliver list with variable heights, exact index navigation, scroll anchoring, pixel scrolling and a scrollable_positioned_list compatible API.

Repository (GitHub)
View/report issues

Topics

#list #scrolling #sliver #widget

License

MIT (license)

Dependencies

collection, flutter, logging

More

Packages that depend on positioned_sliver_list