super_sliver_list 0.2.0-dev.2 super_sliver_list: ^0.2.0-dev.2 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 "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) {
debugPrint("${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);
}