pl_grid 0.2.1 copy "pl_grid: ^0.2.1" to clipboard
pl_grid: ^0.2.1 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
40
pub points
2%
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

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on pl_grid