Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 7.5.20
- Fixed `ThemedTable2` header overflow detection by including the sort icon width in the available text width, ensuring tooltips appear correctly.

## 7.5.19
- Add `ThemedTooltip` to headers of `ThemedTable2` for better overflow handling

Expand Down
5 changes: 4 additions & 1 deletion lib/src/table2/src/table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,10 @@ class _ThemedTable2State<T> extends State<ThemedTable2<T>> {
alignment: entry.alignment,
child: Builder(
builder: (context) {
final double textWidth = cellWidth - (_padding.left + _padding.right);
final double textWidth =
cellWidth -
(_padding.left + _padding.right) -
(isSelected ? _sortIconSize : 0);

// Fetch inline spans if richTextBuilder is provided, otherwise, use the header text
final textOnlySpan = TextSpan(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: layrz_theme
description: Layrz standard styling library for Flutter. Widget library following the Material Design 3 guidelines, with a focus on reliavility and functionality.
version: "7.5.19"
version: "7.5.20"
homepage: https://theme.layrz.com
repository: https://github.com/goldenm-software/layrz_theme

Expand Down
Loading