dart_grid 1.0.5 copy "dart_grid: ^1.0.5" to clipboard
dart_grid: ^1.0.5 copied to clipboard

Dart Grid type data implementation. This package allows you to work with data tables like Excel, while saving only real data (empty data is only generated).

example/main.dart

import 'package:dart_grid/dart_grid.dart';

void main() {
  var grid = Grid<int>();

  grid.add(CellData(index: 0, data: 1));
  grid.add(CellData(index: 1, data: 2));
  grid.add(CellData(index: 2, data: 3));
  grid.putAt(3, [CellData(index: 3, data: 4)]);
  grid.add(CellData(index: 4, data: 5));

  grid.removeAt(2, offset: true);

  for (var i = 0; i < grid.lengthRows; i++) {
    print('Row index ${grid.rows[i].index}: ${grid.datas[i]}');
  }
}
3
likes
160
points
296
downloads

Publisher

verified publisherdip.dev

Weekly Downloads

Dart Grid type data implementation. This package allows you to work with data tables like Excel, while saving only real data (empty data is only generated).

Homepage
Repository (GitHub)
View/report issues

Topics

#dart #data #grid

Documentation

API reference

License

MIT (license)

Dependencies

collection

More

Packages that depend on dart_grid