• Ian Hickson's avatar
    Move Point to Offset (#9277) · bf017b79
    Ian Hickson authored
    * Manually fix every use of Point.x and Point.y
    
    Some of these were moved to dx/dy, but not all.
    
    * Manually convert uses of the old gradient API
    
    * Remove old reference to Point.
    
    * Mechanical changes
    
    I applied the following at the root of the Flutter repository:
    
    git ls-files -z | xargs -0 sed -i 's/\bPoint[.]origin\b/Offset.zero/g'
    git ls-files -z | xargs -0 sed -i 's/\bPoint[.]lerp\b/Offset.lerp/g'
    git ls-files -z | xargs -0 sed -i 's/\bnew Point\b/new Offset/g'
    git ls-files -z | xargs -0 sed -i 's/\bconst Point\b/const Offset/g'
    git ls-files -z | xargs -0 sed -i 's/\bstatic Point /static Offset /g'
    git ls-files -z | xargs -0 sed -i 's/\bfinal Point /final Offset /g'
    git ls-files -z | xargs -0 sed -i 's/^\( *\)Point /\1Offset /g'
    git ls-files -z | xargs -0 sed -i 's/ui[.]Point\b/ui.Offset/g'
    git ls-files -z | xargs -0 sed -i 's/(Point\b/(Offset/g'
    git ls-files -z | xargs -0 sed -i 's/\([[{,]\) Point\b/\1 Offset/g'
    git ls-files -z | xargs -0 sed -i 's/@required Point\b/@required Offset/g'
    git ls-files -z | xargs -0 sed -i 's/<Point>/<Offset>/g'
    git ls-files -z | xargs -0 sed -i 's/[.]toOffset()//g'
    git ls-files -z | xargs -0 sed -i 's/[.]toPoint()//g'
    git ls-files -z | xargs -0 sed -i 's/\bshow Point, /show /g'
    git ls-files -z | xargs -0 sed -i 's/\bshow Point;/show Offset;/g'
    
    * Mechanical changes - dartdocs
    
    I applied the following at the root of the Flutter repository:
    
    git ls-files -z | xargs -0 sed -i 's/\ba \[Point\]/an [Offset]/g'
    git ls-files -z | xargs -0 sed -i 's/\[Point\]/[Offset]/g'
    
    * Further improvements and a test
    
    * Fix minor errors from rebasing...
    
    * Roll engine
    bf017b79
Name
Last commit
Last update
..
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_test.dart Loading commit data...
dynamic_intrinsics_test.dart Loading commit data...
error_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...
limited_box_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...
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...
size_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_test.dart Loading commit data...
transform_test.dart Loading commit data...