pl_grid 0.0.2+0 copy "pl_grid: ^0.0.2+0" to clipboard
pl_grid: ^0.0.2+0 copied to clipboard

outdated

A grid to display data that has pagination feature and more. Good for mobile and web apps

pl_grid #

The PlGrid is a grid view for showing data in a table with a sticky header and pagination components.

Getting Started #

To add the grid on your project, install it by adding the pl_grid package dependency to your pubspec.yaml file, then import the PlGrid class like so:

import 'package:pl_grid/pl_grid.dart';

Add the widget like in the example down below:

PlGrid(
    headerColumns: ['Id', 'Name', 'Age'],
    data: [
        [1, 'Bruno', 34],
        [2, 'Lindsey', 39],
        [3, 'Roberto', 18],
        [4, 'Yasmin', 22]
    ],
    columnWidthsPercentages: [15, 70, 15],
    curPage: 1,
    maxPages: 4,
    width: 300,
    height: 200,
)

and it will produce the following:

One can also use other parameters for example paginationItemClick that is a function that receives the index of the page touched/clicked to execute any routine such as call api with next page results

The property asCard is set as default to true, but could be set to false, producing the following:

16
likes
0
pub points
24%
popularity

Publisher

unverified uploader

A grid to display data that has pagination feature and more. Good for mobile and web apps

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on pl_grid