How sivakumarravi3101/server_table works
Server Table is a Flutter package for displaying large, backend-paged datasets. The main workflow is a user-configured table widget, backed by a controller and generic data source, requesting data through a backend-specific query builder and Dio client; response mapping turns API results into typed rows for display. Documented capabilities also include OData and REST serializers, configurable backend support, sorting, filtering, search, pagination, and customizable table states and builders. No source excerpts were provided, so relationships below are limited to those documented in the README.
Main entry points: server_table_widget.dart Server table · server_data_source.dart Server data source · server_table_controller.dart Table controller · query_builder.dart Query builder
Components 26
Table UI
- Server table
lib/src/widgets/server_table_widget.dart - Table header
lib/src/widgets/table_header.dart - Table body
lib/src/widgets/body/table_body.dart - Table row
lib/src/widgets/body/table_row.dart - Table toolbar
lib/src/widgets/toolbar/table_toolbar.dart - Search field
lib/src/widgets/toolbar/search_field.dart - Filter row
lib/src/widgets/table_filter_row.dart - Filter button
lib/src/widgets/filter/filter_button.dart - Filter popup
lib/src/widgets/filter/filter_popup.dart - Table paginator
lib/src/widgets/pagination/table_paginator.dart
Table Control
- Table controller
lib/src/core/controller/server_table_controller.dart - Controller state
lib/src/core/controller/server_table_state.dart - Server data source
lib/src/core/datasource/server_data_source.dart - Response parser
lib/src/adapters/data_response_parser.dart
Queries and Network
- Dio client
lib/src/core/network/dio_client.dart - Query builder
lib/src/core/query/query_builder.dart - REST query builder
lib/src/core/query/standard/standard_query_builder.dart - REST serializer
lib/src/core/query/standard/rest_query_serializer.dart - OData builder
lib/src/core/query/odata/odata_query_builder.dart
Data Contracts
- Query options
lib/src/core/models/query_options.dart - Response config
lib/src/core/models/response_config.dart - Backend capabilities
lib/src/core/models/backend_capabilities.dart - Table columns
lib/src/core/models/server_column.dart - Page result
lib/src/core/models/page_result.dart
Other components
- Table user
- Backend API
Connections 26
- Table user → Server table: displays
README.md - Server table → Table controller: uses controller
README.md - Table controller → Server data source: loads data
README.md - Server data source → Dio client: requests API
README.md - Server data source → Query builder: builds query
README.md - Query builder → REST query builder: supports REST
- Query builder → OData builder: supports OData
- REST query builder → REST serializer: uses serializer
README.md - Dio client → Backend API: sends request
README.md - Backend API → Dio client: returns response
- Server data source → Response parser: maps response
README.md - Server data source → Response config: uses mapping
README.md - Table controller → Query options: configures query
- Server data source → Backend capabilities: checks capabilities
README.md - Server table → Table columns: displays columns
README.md - Response parser → Page result: maps page
- Server table → Table header: renders
- Server table → Table body: renders
- Table body → Table row: renders
- Server table → Table toolbar: renders
- Table toolbar → Search field: includes search
- Server table → Filter row: supports filtering
- Filter row → Filter button: opens filter
- Filter button → Filter popup: opens popup
- Server table → Table paginator: supports pagination
- Table controller → Controller state: manages state