flutter/examples/flutter_gallery/lib/demo
Ian Hickson bf017b79b3 Move Point to Offset (#9277)
* 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
2017-04-12 15:06:12 -07:00
..
animation Move Point to Offset (#9277) 2017-04-12 15:06:12 -07:00
calculator apply the upcoming rule unnecessary_this (#8838) 2017-03-17 08:05:42 +01:00
cupertino Constants! Constants everywhere! (#9286) 2017-04-07 12:24:32 -07:00
material Move Point to Offset (#9277) 2017-04-12 15:06:12 -07:00
shrine Rename State.config to widget everywhere (#9273) 2017-04-10 18:32:24 -07:00
all.dart apply the upcoming rule : directives_ordering (#8582) 2017-03-08 14:58:09 -08:00
animation_demo.dart Added a gallery animation demo (#8547) 2017-03-03 11:38:19 -08:00
calculator_demo.dart Reorganize the calculator demo (#4536) 2016-06-13 11:44:46 -07:00
colors_demo.dart Constants! Constants everywhere! (#9286) 2017-04-07 12:24:32 -07:00
contacts_demo.dart Constants! Constants everywhere! (#9286) 2017-04-07 12:24:32 -07:00
pesto_demo.dart Rename State.config to widget everywhere (#9273) 2017-04-10 18:32:24 -07:00
shrine_demo.dart Document the buildTransitions() method (#9182) 2017-04-04 17:18:16 -07:00
typography_demo.dart Constants! Constants everywhere! (#9286) 2017-04-07 12:24:32 -07:00