• 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
..
about_test.dart Loading commit data...
app_bar_test.dart Loading commit data...
app_test.dart Loading commit data...
arc_test.dart Loading commit data...
back_button_test.dart Loading commit data...
bottom_navigation_bar_test.dart Loading commit data...
button_bar_test.dart Loading commit data...
buttons_test.dart Loading commit data...
chip_test.dart Loading commit data...
circle_avatar_test.dart Loading commit data...
colors_test.dart Loading commit data...
data_table_test.dart Loading commit data...
data_table_test_utils.dart Loading commit data...
date_picker_test.dart Loading commit data...
debug_test.dart Loading commit data...
dialog_test.dart Loading commit data...
divider_test.dart Loading commit data...
drawer_test.dart Loading commit data...
dropdown_test.dart Loading commit data...
expand_icon_test.dart Loading commit data...
expansion_panel_test.dart Loading commit data...
flexible_space_bar_test.dart Loading commit data...
floating_action_button_test.dart Loading commit data...
grid_title_test.dart Loading commit data...
icon_button_test.dart Loading commit data...
icon_data_test.dart Loading commit data...
icon_test.dart Loading commit data...
icon_theme_data_test.dart Loading commit data...
image_icon_test.dart Loading commit data...
ink_paint_test.dart Loading commit data...
ink_well_test.dart Loading commit data...
input_decorator_test.dart Loading commit data...
list_tile_test.dart Loading commit data...
material_test.dart Loading commit data...
mergeable_material_test.dart Loading commit data...
modal_bottom_sheet_test.dart Loading commit data...
page_test.dart Loading commit data...
paginated_data_table_test.dart Loading commit data...
persistent_bottom_sheet_test.dart Loading commit data...
popup_menu_test.dart Loading commit data...
progress_indicator_test.dart Loading commit data...
radio_test.dart Loading commit data...
refresh_indicator_test.dart Loading commit data...
scaffold_test.dart Loading commit data...
scrollbar_paint_test.dart Loading commit data...
scrollbar_test.dart Loading commit data...
slider_test.dart Loading commit data...
snack_bar_test.dart Loading commit data...
stepper_test.dart Loading commit data...
switch_test.dart Loading commit data...
tabs_test.dart Loading commit data...
text_field_test.dart Loading commit data...
theme_data_test.dart Loading commit data...
theme_test.dart Loading commit data...
time_picker_test.dart Loading commit data...
tooltip_test.dart Loading commit data...
two_level_list_test.dart Loading commit data...
typography_test.dart Loading commit data...
user_accounts_drawer_header_test.dart Loading commit data...
will_pop_test.dart Loading commit data...