TTableDetails<T, K> class
Details and expansion configuration for the table.
Constructors
-
TTableDetails({TTableExpansionMode mode = TTableExpansionMode.bottom, TTableExpansionMode? createMode, String? itemTitle(T item)?, String? itemSubTitle(T item)?, String? itemDescription(T item)?, String? itemImageUrl(T item)?, List<
TKeyValue> ? itemInfo(T item)?, TKeyValueMode? itemInfoMode, List<Widget> actions(T item)?, Future<bool> onWillExpand(K key)?, Future<bool> onWillCollapse(K key)?, bool focus = false, double? dimmedOpacity, TListExpandedBuilder<T, K> ? builder, TTableCreateBuilder<T, K> ? createBuilder, String? createTitle(T? item)?, Widget layoutBuilder(BuildContext context, TTableDetails<T, K> details, T? item, Widget child)?, bool showLayoutForBottom = false, double dialogWidth = 800.0, double? createDialogWidth, double sideOverlayWidth = 500.0, double? createSideOverlayWidth, double? sideOverlayMinWidth = 320.0, double? sideOverlayMaxWidth, double? sideOverlayWidthRatio, double? createSideOverlayMinWidth, double? createSideOverlayMaxWidth, double? createSideOverlayWidthRatio, bool autoExpandFirst = false, bool autoSelectFirst = false, bool itemInfoGridInline = true, bool? expandOnRowTap, dynamic expandIcon, dynamic collapseIcon, bool? rowTapDetails, bool? onRowTapDetails}) -
const
Properties
-
actions
→ List<
Widget> Function(T item)? -
Actions to display in the page wrapper for a specific item. Only shown in view mode.
final
- autoExpandFirst → bool
-
Whether to automatically expand the first item in the list initially.
final
- autoSelectFirst → bool
-
Whether to automatically select the first item in the list initially.
final
-
builder
→ TListExpandedBuilder<
T, K> ? -
Builder for expanded content of a row.
final
- collapseIcon → dynamic
-
Optional custom icon (HugeIcon, IconData, or Widget) for expanded state.
final
-
createBuilder
→ TTableCreateBuilder<
T, K> ? -
Builder for expanded content of a row when creating or editing.
final
- createDialogWidth → double?
-
The width of the dialog when creating or editing items in dialog mode. Defaults to dialogWidth or 800.
final
- createMode → TTableExpansionMode?
-
Defines how the expanded content is presented during creation/editing.
final
- createSideOverlayMaxWidth → double?
-
Optional maximum width constraint for the side overlay when creating/editing.
final
- createSideOverlayMinWidth → double?
-
Optional minimum width constraint for the side overlay when creating/editing.
final
- createSideOverlayWidth → double?
-
The width of the side overlay when creating or editing items in sideOverlay mode. Defaults to sideOverlayWidth or 500.
final
- createSideOverlayWidthRatio → double?
-
Optional width ratio for the side overlay when creating/editing.
final
- createTitle → String? Function(T? item)?
-
Function to extract the title when creating/editing.
final
- dialogWidth → double
-
The width of the dialog when expansion mode is dialog. Defaults to 800.
final
- dimmedOpacity → double?
-
Opacity level to apply to headers and footer when table is dimmed.
final
- expandIcon → dynamic
-
Optional custom icon (HugeIcon, IconData, or Widget) for collapsed state.
final
- expandOnRowTap → bool
-
Whether tapping on a row expands its details. Defaults to true.
final
- focus → bool
-
Whether to dim the rest of the table and scroll to the expanded item.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemDescription → String? Function(T item)?
-
Function to extract the description from an item (used in dialogs/pages/sheets).
final
- itemImageUrl → String? Function(T item)?
-
Function to extract the image URL from an item (used in dialogs/pages/sheets).
final
-
itemInfo
→ List<
TKeyValue> ? Function(T item)? -
Function to extract key-value information from an item (used in dialogs/pages/sheets).
final
- itemInfoGridInline → bool
-
Whether to display key and value inline in grid layout (Key: Value) for itemInfo. Defaults to true.
final
- itemInfoMode → TKeyValueMode?
-
Layout presentation mode for itemInfo. If not specified, defaults to itemInfoGridInline (inlineFlow or stackedFlow).
final
- itemSubTitle → String? Function(T item)?
-
Function to extract the sub-title from an item (used in dialogs/pages/sheets).
final
- itemTitle → String? Function(T item)?
-
Function to extract the title from an item (used in dialogs/pages/sheets).
final
-
layoutBuilder
→ Widget Function(BuildContext context, TTableDetails<
T, K> details, T? item, Widget child)? -
Optional layout builder for custom details wrapper.
final
- mode → TTableExpansionMode
-
Defines how the expanded content is presented.
final
- onRowTapDetails → bool
-
no setter
-
onWillCollapse
→ Future<
bool> Function(K key)? -
Callback fired before the table's detail view / panel closes.
Return true to allow the close, or false to prevent it.
final
-
onWillExpand
→ Future<
bool> Function(K key)? -
Callback fired before a row expansion changes.
Return true to allow the expansion change, or false to prevent it.
final
- rowTapDetails → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showLayoutForBottom → bool
-
Whether to show the details layout/page wrapper when expansion mode is bottom.
final
- sideOverlayMaxWidth → double?
-
Optional maximum width constraint for the side overlay.
final
- sideOverlayMinWidth → double?
-
Optional minimum width constraint for the side overlay. Defaults to 320.
final
- sideOverlayWidth → double
-
The width of the side overlay when expansion mode is sideOverlay. Defaults to 500.
final
- sideOverlayWidthRatio → double?
-
Optional width ratio (fraction of screen width, e.g. 0.5) for responsive side overlay.
final
Methods
-
copyWith(
{TTableExpansionMode? mode, TTableExpansionMode? createMode, String? itemTitle(T item)?, String? itemSubTitle(T item)?, String? itemDescription(T item)?, String? itemImageUrl(T item)?, List< TKeyValue> ? itemInfo(T item)?, TKeyValueMode? itemInfoMode, bool? itemInfoGridInline, List<Widget> actions(T item)?, Future<bool> onWillExpand(K key)?, Future<bool> onWillCollapse(K key)?, bool? focus, double? dimmedOpacity, TListExpandedBuilder<T, K> ? builder, TTableCreateBuilder<T, K> ? createBuilder, String? createTitle(T? item)?, Widget layoutBuilder(BuildContext context, TTableDetails<T, K> details, T? item, Widget child)?, bool? showLayoutForBottom, double? dialogWidth, double? createDialogWidth, double? sideOverlayWidth, double? createSideOverlayWidth, double? sideOverlayMinWidth, double? sideOverlayMaxWidth, double? sideOverlayWidthRatio, double? createSideOverlayMinWidth, double? createSideOverlayMaxWidth, double? createSideOverlayWidthRatio, bool? autoExpandFirst, bool? autoSelectFirst, bool? expandOnRowTap, dynamic expandIcon, dynamic collapseIcon}) → TTableDetails<T, K> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveSideOverlayWidth(
BuildContext context, {bool isCreateOrEdit = false}) → double - Resolves the effective responsive side overlay width for a given context and screen size.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited