grid_flutter 0.1.0 copy "grid_flutter: ^0.1.0" to clipboard
grid_flutter: ^0.1.0 copied to clipboard

Flutter bindings for flutter_grid. Provides GridBuilder (reactive widget), GridDataSource implementations (REST via Dio, stream, in-memory), and the GridPage / GridQuery models for server-side pagination.

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.

1
likes
60
points
25
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter bindings for flutter_grid. Provides GridBuilder (reactive widget), GridDataSource implementations (REST via Dio, stream, in-memory), and the GridPage / GridQuery models for server-side pagination.

Homepage
Repository (GitHub)
View/report issues

Topics

#table #grid #data-table #flutter-grid

License

MIT (license)

Dependencies

dio, flutter, grid_core, shared_preferences

More

Packages that depend on grid_flutter