v0.4.0atreeon_datagrid_responsive
具有排序和篩選功能的資料表格。它也對螢幕尺寸具有響應性。完全類型化。
7喜歡 62近 30 天下載60Pub 分數
平台暫無資料
一個內建排序和篩選功能且具備響應式特性的資料表格。
{"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.4以下為英文專案原文快照,最新內容請造訪 GitHub。
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