Repository navigation
fix: honor Ruby horizontal_lines on DataTable - #13
Merged
AdamMusa merged 2 commits intoOct 28, 2026
Merged
Conversation
This was referenced Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ruby's
DataTable(materials/datatable_control.rb) declareshorizontal_linesandvertical_lines. Both are border-side maps, for exampledata_table(horizontal_lines: { color: "#666666", width: 1 }). That is the shapedata_table_compatibility_test.rbasserts.material_datatable.dartreadvertical_linescorrectly, but it looked up horizontal lines under the misspelled key"horizontal_lLines". Sohorizontal_lineswas never read, and theTableBorder.horizontalInsideit should drive was alwaysBorderSide.none. The iOS renderer (CupertinoDataTableControl) did not read the key either and always drew a 0.5 px separator.Fix
material_datatable.dart): the code now readshorizontal_lines, parsed withgetBorderSideexactly likevertical_lines. The existingTableBorder(horizontalInside:, verticalInside:)wiring is unchanged.cupertino_content_controls.dart):Table.border.horizontalInsidenow useshorizontal_lines, parsed withcupertinoStyleTheme, when it is set. When it is unset, the table keeps the nativeCupertinoColors.separator0.5 px line.No other core engine code reads the misspelled key.
ruflet_datatable2already readshorizontal_linescorrectly.Tests
New
test/widgets/ruby_datatable_keys_test.dart:horizontal_lines: {color: "#666666", width: 2}and checks that bothDataTable.border.horizontalInsideand the builtTable.border.horizontalInsidematch, withverticalInsideset tonone. A second test combineshorizontal_linesandvertical_lines. Both tests failed before the fix.horizontal_linesand checks thatTable.border.horizontalInsidematches. This failed before the fix. Without the key, it checks that the native 0.5 px separator is kept.verify_pr.sh:flutter test+699, all passed (695 baseline + 4 new).flutter analyze lib testfound no issues. Flutter 3.41.2.Not in scope: the Cupertino DataTable still ignores
vertical_lines. That is a separate parity gap, not a misspelling.QA finding #15