super_sliver_list 0.2.1 super_sliver_list: ^0.2.1 copied to clipboard
Drop-in replacement for SliverList and ListView that can handle large lists with variable extents and jump/animate to specific items.
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.INFO;
// 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);
}