flutter/examples/flutter_gallery
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
..
.idea Update IJ files to match latest flutter create template (#9103) 2017-04-04 15:50:03 +02:00
android Android: Set evaluationDependsOn for plugin subprojects. (#9179) 2017-04-04 13:03:06 +02:00
ios Build Flutter app as a framework on iOS (#8971) 2017-03-22 17:41:49 -07:00
lib Move Point to Offset (#9277) 2017-04-12 15:06:12 -07:00
test Move Point to Offset (#9277) 2017-04-12 15:06:12 -07:00
test_driver Remove the pesto gallery demo (#9341) 2017-04-12 14:41:03 -07:00
.gitignore Call it Flutter Gallery (#3801) 2016-05-09 11:00:54 -07:00
BUILD.gn Add a Fuchsia target for the Flutter gallery. (#7619) 2017-01-24 14:03:06 -08:00
flutter_gallery.iml Revert back IntelliJ .iml file to project root (#8139) 2017-02-14 18:15:26 +01:00
pubspec.yaml Merge pubspec.yaml and flutter.yaml. (#7605) 2017-01-24 11:19:31 -08:00
README.md Restore Flutter gallery license page scrolling (#5934) 2016-09-20 15:13:50 -07:00

Flutter gallery

Demo app for the material design widgets and other features provided by Flutter.

Building

You can follow these instructions to build the gallery app and install it onto your device.

Prereqs

If you are new to Flutter, please first follow the Flutter Setup guide.

Building and installing the Flutter app

  • cd $FLUTTER_ROOT/examples/flutter_gallery
  • flutter upgrade
  • flutter run --release

The flutter run --release command both builds and installs the Flutter app.

Prerelease checklist

  • Verify that the About box's license page scrolls and reveals its long long stream of license texts.

Icon

Android launcher icons were generated using Android Asset Studio: https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html#foreground.type=image&foreground.space.trim=1&foreground.space.pad=0.1&foreColor=607d8b%2C0&crop=0&backgroundShape=square&backColor=fafafa%2C100&effects=none