v0.4.0atreeon_datagrid_responsive
Uma grade de dados com capacidades de ordenação e filtragem. Também é responsiva ao tamanho da tela. Totalmente tipada.
7Curtidas 62Downloads em 30 dias60Pontos Pub
Plataformas indisponíveis
Uma grade de dados com funcionalidades embutidas de ordenação e filtragem que também é responsiva.
{"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.4Texto original em inglês. Visite o GitHub para a versão atual.
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