grid_flutter

Flutter bindings layer of flutter_grid.

Provides GridBuilder (reactive widget), ready-made GridDataSource implementations, and the GridPage / GridQuery pipeline for server-side pagination.

Part of flutter_grid

Most users should depend on the top-level package instead:

dependencies:
  flutter_grid: ^0.1.0
import 'package:flutter_grid/flutter_grid.dart';

Use grid_flutter directly only if you need the Flutter bindings without the pre-built UI widgets from grid_ui.

Key exports

Symbol Description
GridBuilder<T> Reactive widget — rebuilds on controller changes, drives dataSource
MemoryDataSource<T> In-memory list source
StreamDataSource<T> Real-time stream source (Firebase, WebSocket…)
RestDataSource<T> HTTP/Dio source with x-total-count / body total support

GridBuilder usage

GridBuilder<Person>(
  controller: _controller,
  dataSource: myDataSource,
  builder: (context, table) {
    if (table.isLoading) return const CircularProgressIndicator();
    if (table.error != null) return Text('Error: ${table.error}');
    return ListView.builder(
      itemCount: table.pageRows.length,
      itemBuilder: (_, i) => ListTile(title: Text(table.pageRows[i].original.name)),
    );
  },
)

Documentation

Full documentation and code samples are in the flutter_grid README.

License

MIT — see LICENSE.

Libraries

grid_flutter
Flutter bindings for grid_core.