lazy_data_table 0.2.0 lazy_data_table: ^0.2.0 copied to clipboard
A Flutter data table with (optional) sticky row and/or column headers that loads the contents lazily.
import 'package:flutter/material.dart';
import 'headerless_table.dart';
import 'simple_table.dart';
import 'custom_size_table.dart';
void main() {
runApp(MaterialApp(
title: 'Example',
home: MyApp(),
));
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("Examples")),
body: Center(
child: Column(
children: <Widget>[
RaisedButton(
child: Text("Simple table"),
onPressed: () => Navigator.push(context,
MaterialPageRoute(builder: (context) => SimpleTable())),
),
RaisedButton(
child: Text("Header-less table"),
onPressed: () => Navigator.push(context,
MaterialPageRoute(builder: (context) => HeaderlessTable())),
),
RaisedButton(
child: Text("Custom column and row sizes table"),
onPressed: () => Navigator.push(context,
MaterialPageRoute(builder: (context) => CustomSizeTable())),
),
],
),
),
);
}
}