Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
DataTable
const DataTable({
super.key,
required this.columns,
this.size,
required this.rows,
this.title,
this.itemCount,
this.toolbar,
this.search,
this.footer,
this.selectedRows = const {},
this.onSelectionChanged,
this.hasMore = false,
this.isLoadingMore = false,
this.onLoadMore,
this.onLoadMoreError,
this.loadMoreErrorBuilder,
this.loadMoreThreshold = 180,
this.showSelection = true,
this.headerHeight,
this.rowHeight,
this.bodyMaxHeight = 400,
this.backgroundColor,
this.headerColor,
this.rowColor,
this.dividerColor,
this.borderRadius,
this.bodyBorderRadius,
this.bodyInset,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
columns | List<DataTableColumn<T>> | Yes | — |
size | ComponentSize? | No | null |
rows | List<T> | Yes | — |
title | String? | No | null |
itemCount | int? | No | null |
toolbar | List<Widget>? | No | null |
search | Widget? | No | null |
footer | Widget? | No | null |
selectedRows | Set<T> | No | const {} |
onSelectionChanged | ValueChanged<Set<T>>? | No | null |
hasMore | bool | No | false |
isLoadingMore | bool | No | false |
onLoadMore | FutureOr<void> Function()? | No | null |
onLoadMoreError | void Function(Object error, StackTrace stackTrace)? | No | null |
loadMoreErrorBuilder | Widget Function(BuildContext context, Object error, VoidCallback retry)? | No | null |
loadMoreThreshold | double | No | 180 |
showSelection | bool | No | true |
headerHeight | double? | No | null |
rowHeight | double? | No | null |
bodyMaxHeight | double | No | 400 |
backgroundColor | Color? | No | null |
headerColor | Color? | No | null |
rowColor | Color? | No | null |
dividerColor | Color? | No | null |
borderRadius | double? | No | null |
bodyBorderRadius | double? | No | null |
bodyInset | double? | No | null |
Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/data_display/table/table.dart
This reference is generated from the DataTable declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

