You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: update header text and improve tooltip handling in themed table (#125)
This pull request introduces improvements to the `ThemedTable2` widget,
specifically enhancing the handling of header text overflow by adding
tooltips, and includes some refactoring and minor updates. The main
change is the addition of the `ThemedTooltip` to table headers, ensuring
that overflowing header text is now accessible via a tooltip. There are
also some code cleanups and a version bump.
**Enhancements to Table Header Overflow Handling:**
- Added `ThemedTooltip` to the headers of `ThemedTable2` so that when
header text overflows, a tooltip is shown with the full header text.
This improves usability for columns with long titles.
[[1]](diffhunk://#diff-5b9ef11e8406724411bc47df7bacb49b59952951fd8bdd7628101cf5d723be40L483-R511)
[[2]](diffhunk://#diff-5b9ef11e8406724411bc47df7bacb49b59952951fd8bdd7628101cf5d723be40L504-R533)
[[3]](diffhunk://#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4edR3-R5)
- Introduced a utility method `buildHeaderCell` to encapsulate the logic
for rendering header cells with overflow detection and tooltips.
**Codebase Maintenance and Refactoring:**
- Cleaned up commented-out debug print statements in the selection logic
for cleaner code.
- Refactored header cell width calculation for clarity and
maintainability.
**Versioning and Documentation:**
- Bumped the package version to `7.5.19` in `pubspec.yaml` and updated
the changelog to document the new tooltip feature.
[[1]](diffhunk://#diff-8b7e9df87668ffa6a04b32e1769a33434999e54ae081c52e5d943c541d4c0d25L3-R3)
[[2]](diffhunk://#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4edR3-R5)
Other changes include a test update to the example table header text,
which is not functionally significant.
Copy file name to clipboardExpand all lines: pubspec.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
name: layrz_theme
2
2
description: Layrz standard styling library for Flutter. Widget library following the Material Design 3 guidelines, with a focus on reliavility and functionality.
0 commit comments