搜尋套件、儲存庫與 APP 分類

atreeon_datagrid_responsive 封面
套件詳情v0.4.0

atreeon_datagrid_responsive

具有排序和篩選功能的資料表格。它也對螢幕尺寸具有響應性。完全類型化。

近 30 天下載
81
喜歡數
7
Pub 分數
60

安裝套件

flutter pub add atreeon_datagrid_responsive

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個響應式的 Flutter 數據網格套件,提供排序與篩選功能,並具備完整的類型安全性。設計上可無縫適應各種螢幕尺寸,確保跨裝置的一致使用者體驗。基於 Dart 的強類型系統建構,提升程式碼可靠性和開發者生產力。適用於需要結構化資料顯示與互動功能的應用程式。此套件由 atreeon.com 維護,並託管於 GitHub,以確保透明度與社群貢獻。

適用情境

  • 在應用中顯示結構化資料
  • 實現可排序和可篩選的表格
  • 建立響應式資料介面
  • 建構管理員儀表板
  • 互動式管理大型資料集

主要特色

  • 適用於所有螢幕尺寸的響應式設計
  • 內建排序與篩選
  • 完全類型化,使用 Dart 泛型
  • 類型安全的資料處理
  • 與 Flutter 的輕鬆整合
  • 乾淨、可維護的程式碼結構

適合對象

  • 開發資料密集型 Flutter 應用的開發者
  • 重視類型安全的團隊
  • 需要響應式表格組件的專案
  • 管理面板與資料管理工具
  • 針對多種裝置尺寸的應用

使用建議

  • 需要 Flutter SDK 設定
  • 僅限表格特定用途
  • 無內建分頁
  • 可能需要自訂樣式以實現進階UI
  • 依賴外部透過 GitHub 的維護

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

atreeon_datagrid_responsive

A datagrid with sorting and filtering capabilities. It is also responsive to screen size. Fully Typed.

atreeon_datagrid_responsive example

Simple Demo

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"};


Features

  • multi select over multiple pages
  • sorting and secondary sort capabilities
  • typed filtering
  • vertical responsive design (or fixed height)
  • paging or no paging

Limitations

  • no cell editing capability (you can open a dialog on click of a row though)
  • some data types aren't yet supported (DateTime)
  • no grouping
  • no reording column placement
  • no widening or narrowing of column widths

Other Notes / Information

written a couple of years ago

所屬分類

依賴

依賴清單 7 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。