• 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
..
bottom_navigation_demo.dart Loading commit data...
buttons_demo.dart Loading commit data...
cards_demo.dart Loading commit data...
chip_demo.dart Loading commit data...
data_table_demo.dart Loading commit data...
date_and_time_picker_demo.dart Loading commit data...
dialog_demo.dart Loading commit data...
drawer_demo.dart Loading commit data...
expansion_panels_demo.dart Loading commit data...
full_screen_dialog_demo.dart Loading commit data...
grid_list_demo.dart Loading commit data...
icons_demo.dart Loading commit data...
leave_behind_demo.dart Loading commit data...
list_demo.dart Loading commit data...
material.dart Loading commit data...
menu_demo.dart Loading commit data...
modal_bottom_sheet_demo.dart Loading commit data...
overscroll_demo.dart Loading commit data...
page_selector_demo.dart Loading commit data...
persistent_bottom_sheet_demo.dart Loading commit data...
progress_indicator_demo.dart Loading commit data...
scrollable_tabs_demo.dart Loading commit data...
selection_controls_demo.dart Loading commit data...
slider_demo.dart Loading commit data...
snack_bar_demo.dart Loading commit data...
tabs_demo.dart Loading commit data...
tabs_fab_demo.dart Loading commit data...
text_form_field_demo.dart Loading commit data...
tooltip_demo.dart Loading commit data...
two_level_list_demo.dart Loading commit data...