v0.4.0atreeon_datagrid_responsive
A datagrid with sorting and filtering capabilities. It is also responsive to screen size. Fully Typed.
7Likes 6230-day downloads60Pub points
Platforms unavailable
A datagrid with sorting and filtering capabilities built in that is also responsive.
{"sdk":"flutter"}>=0.6.0 <2.0.0>=9.0.0 <11.0.0>=6.1.0+1 <7.0.0>=0.1.3 <1.0.0>=0.18.0 <1.0.0>=0.1.1 <0.2.0^1.6.3^1.18.2^2.1.4English project snapshot. Visit GitHub for the latest content.
A datagrid with sorting and filtering capabilities. It is also responsive to screen size. Fully Typed.
atreeon_datagrid_responsive example
see examples folder for more examples
class SimpleDemo extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
Expanded(
child: ResusableDatagridW<Item>(
data: originalData,
fields: [
Field<Item>((x) => x.name, "name", FilterFieldString()),
Field<Item>((x) => ramLookup[x.ram] ?? x.ram.toString(), "ram", FilterFieldNum()),
Field<Item>((x) => x.price, "price", FilterFieldNum()),
Field<Item>((x) => x.storage, "storage", FilterFieldNum()),
],
onRowClick: (x) => print(x.toString()),
lastSaveDate: null,
),
),
],
),
);
}
}
class Item {
String name;
int ram;
int price;
int storage;
Item(this.name, this.ram, this.price, this.storage);
}
var originalData = List<Item>.generate(
2000,
(i) => //
Item("id: $i", i * 2, i ~/ 2, i + 500));
var ramLookup = {64: "sixtyfour", 1: "one", 128: "one hundred & twenty eight"};
written a couple of years ago