Tahateber95 / scrollable_table_view

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a multi axis scrollable data table, that allows you to scroll on both the vertical and horizontal axis, with the header remaining static on the vertical axis. Please look at the demo below.

Features

Demo

This widget serves the same purpose as a DataTable, with the advantage that it can scroll in both the horizontal and vertical axis, while maintaining the vertical position of the header.

Getting started

Simply add into your dependencies the following line.

dependencies:
  scrollable_table_view: ^0.0.2

Usage

ScrollableTableView(
  columns: [
    "product_id",
    "product_name",
    "price",
  ].map((column) {
    return TableViewColumn(
      label: column,
    );
  }).toList(),
  rows: [
    ["PR1000", "Milk", "20.00"],
    ["PR1001", "Soap", "10.00"],
  ].map((record) {
    return TableViewRow(
      height: 60,
      cells: record.map((value) {
        return TableViewCell(
          child: Text(value),
        );
      }).toList(),
    );
  }).toList(),
);

Additional information

GitHub Repo: https://github.com/herbertamukhuma/scrollable_table_view

About

License:MIT License


Languages

Language:C++ 35.3%Language:CMake 30.6%Language:Dart 26.5%Language:HTML 3.1%Language:C 2.4%Language:Swift 2.0%Language:Kotlin 0.2%Language:Objective-C 0.1%