• Justin McCandless's avatar
    Fix TextField height issues (#27205) · 9e9f48da
    Justin McCandless authored
    * Create new TextField attribute to control maxLength behaviour
    
    * Create test case for maxLinesIncrementalHeight
    
    * fix maxLinesIncrementalHeight set method
    
    * fix editable_test.dart
    
    * Just introducing some proposed API additions, renaming to expands
    
    * Pass minLines and expands through to child widgets and validate
    
    * minLines can't be null, and expands can't be true when maxLines is 1
    
    * Implement minLines and maxLines height sizing logic
    
    * Simplify minLines validation logic
    
    * expands parameter proof of concept
    
    * min/max mixup bug fix, and tests work with expands false
    
    * Test expands=true cases, and fix textPainter.height being out of date
    
    * Test all behavior matrix cases
    
    * min/max assertion more strict, can't be equal
    
    * Tests work that were missing expands serialization
    
    * Action sheet tests no longer fail due to rounding error
    
    * TextFieldFocus test no longer mysteriously fails
    
    * TODOs for making expands nullable. Will depend on how Expanded wrapping works
    
    * Expanded growth happens when expanded is true and maxLines is null
    
    * Test Expanded wrapper
    
    * No more overflow when wrapped in Expanded
    
    * Docs improvements
    
    * expands can be null
    
    * Simplify error cases to support existing behavior
    
    * Docs examples and other docs cleanup
    
    * Expansion up to perfectly meet the parent size
    
    * Fix analyze null error
    
    * Fix test after move to nullable expands
    
    * minLines defaults to null
    
    * expands is now exclusively for expanding to parent height and not growth between min and max
    
    * _layout rewritten to handle max height. Need to fix prefix tests and
    reenable expands
    
    * Tests for textfield overflowing parent
    
    * layoutLineBox is documented and private
    
    * expands works in new _layout
    
    * _layout return numbers seem to perfectly match original _layout
    
    * inputWidth comment after trying it out and failing tests
    
    * Fix analyze errors
    
    * WIP prefix/suffix do affect height
    
    * Prefix/suffix and icons affect height, tests pass, but I'm still visually verifying identical to original
    
    * Tall prefix test that verifies pixel perfect layout
    
    * Fix overflowing edge case and test it
    
    * Clean up comments, old code, and todos
    
    * Changing _expands causes relayout. Wasnt able to figure out how to test though...
    
    * Clean up code review comments
    
    * Fix misalignment when tall prefix and border, and clean up related test
    
    * Simple code review cleanup
    
    * Bring back inputWidth to _layout method
    
    * Fix rounding errors showing up in mac tests
    
    * Fix flake by reordering tests. Without this, the dreaded intrinsicwidth flake is reproducible 50% of the time on my machine.
    
    * Fix more rounding error mac tests
    9e9f48da
Name
Last commit
Last update
..
annotated_region_test.dart Loading commit data...
aspect_ratio_test.dart Loading commit data...
baseline_test.dart Loading commit data...
box_constraints_test.dart Loading commit data...
box_test.dart Loading commit data...
cached_intrinsics_test.dart Loading commit data...
constraints_test.dart Loading commit data...
debug_overflow_indicator_test.dart Loading commit data...
debug_test.dart Loading commit data...
dynamic_intrinsics_test.dart Loading commit data...
editable_test.dart Loading commit data...
error_test.dart Loading commit data...
flex_overflow_test.dart Loading commit data...
flex_test.dart Loading commit data...
image_test.dart Loading commit data...
independent_layout_test.dart Loading commit data...
intrinsic_width_test.dart Loading commit data...
layers_test.dart Loading commit data...
limited_box_test.dart Loading commit data...
localized_fonts_test.dart Loading commit data...
mock_canvas.dart Loading commit data...
mutations_test.dart Loading commit data...
non_render_object_root_test.dart Loading commit data...
object_test.dart Loading commit data...
offstage_test.dart Loading commit data...
overflow_test.dart Loading commit data...
paragraph_intrinsics_test.dart Loading commit data...
paragraph_test.dart Loading commit data...
positioned_box_test.dart Loading commit data...
proxy_box_test.dart Loading commit data...
proxy_getters_and_setters_test.dart Loading commit data...
reattach_test.dart Loading commit data...
recording_canvas.dart Loading commit data...
relative_rect_test.dart Loading commit data...
rendering_tester.dart Loading commit data...
repaint_boundary_test.dart Loading commit data...
semantics_and_children_test.dart Loading commit data...
simple_semantics_test.dart Loading commit data...
size_test.dart Loading commit data...
sliver_cache_test.dart Loading commit data...
slivers_block_test.dart Loading commit data...
slivers_helpers_test.dart Loading commit data...
slivers_layout_test.dart Loading commit data...
slivers_test.dart Loading commit data...
stack_test.dart Loading commit data...
table_border_test.dart Loading commit data...
table_test.dart Loading commit data...
transform_test.dart Loading commit data...
view_test.dart Loading commit data...
viewport_test.dart Loading commit data...
wrap_test.dart Loading commit data...