Tahateber95 / flutter_easy_table

Flutter Scrollable paginated data table

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a multi axis scrollable paginated data table, that allows you to scroll on both the vertical and horizontal axis, and also gives you the ability to style columns and rows cells. please look at the demo blow.

Features

Demo

alt text

This widget serves the same purpose as a DataTable.

Getting started

Simply add into your dependencies the following line.

dependencies:
  flutter_easy_table: ^0.0.1

Usage

EasyPaginatedTable(
        height: 300,
        width: 600,
        rowTail: true,
        rowsPerPage: 3,
        columnStyle: ColumnStyle(
          columnLabel: 'name',
          columnStyle: const TextStyle(
            color: Colors.blue,
            fontWeight: FontWeight.bold,
          ),
          rowCellLabel: 'Taha',
          rowCellStyle: const TextStyle(
            color: Colors.green,
            fontWeight: FontWeight.bold,
          ),
        ),
        onEdit: (index) {},
        onDelete: (index) {},
        columns: const ['id', 'name', 'age'],
        rows: const [
          {'id': '1', 'name': 'Taha', 'age': '27'},
          {'id': '2', 'name': 'wahab', 'age': '33'},
          {'id': '3', 'name': 'ahmed', 'age': '30'},
          {'id': '4', 'name': 'Taha', 'age': '27'},
          {'id': '5', 'name': 'wahab', 'age': '33'},
          {'id': '6', 'name': 'ahmed', 'age': '30'},
        ],
      )

Additional information

GitHub Repo: https://github.com/Tahateber95/flutter_easy_table

About

Flutter Scrollable paginated data table

License:MIT License


Languages

Language:C++ 39.0%Language:CMake 33.8%Language:Dart 18.6%Language:HTML 3.4%Language:C 2.7%Language:Swift 2.2%Language:Kotlin 0.2%Language:Objective-C 0.1%