pl_grid 1.0.0 copy "pl_grid: ^1.0.0" to clipboard
pl_grid: ^1.0.0 copied to clipboard

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

example/pl_grid_example.dart

import 'package:flutter/material.dart';
import 'package:pl_grid/pl_grid.dart';

void main() => runApp(
      MaterialApp(
        home: Scaffold(
          body: PlGrid(
            headerColumns: ['Id', 'Name', 'Age'],
            data: [
              [1, 'Bruno', 34],
              [2, 'Lindsey', 39],
              [3, 'Roberto', 18],
              [4, 'Yasmin', 22]
            ],
            onPaginationItemClick: (i) async {
              await Future.delayed(Duration(seconds: 3));
              return [];
            },
            paginationDynamicStyle: (page) => TextStyle(color: Colors.blue),
            dataAsync: () async {
              await Future.delayed(Duration());
              return [];
            },
            columnWidthsPercentages: <double>[15, 70, 15],
            curPage: 1,
            maxPages: 4,
          ),
        ),
      ),
    );
16
likes
140
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

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on pl_grid