flutter/examples/hello_world
Greg Spencer ab2b0851a2
Add smoke tests for all the examples, fix 17 broken examples. (#89021)
This adds a smoke test for every single API example. It also fixes 17 tests that had bugs in them, or were otherwise broken, and even fixes one actual bug in the framework, and one limitation in the framework.

The bug in the framework is that NetworkImage's _loadAsync method had await response.drain<List<int>>();, but if the response is null, it will throw a cryptic exception saying that Null can't be assigned to List<int>. The fix was just to use await response.drain<void>(); instead.

The limitation is that RelativePositionedTransition takes an Animation<Rect> rect parameter, and if you want to use a RectTween with it, the value emitted there is Rect?, and one of the examples was just casting from Animation<Rect> to Animation<Rect?>, which is invalid, so I modified RelativePositionedTransition to take a Rect? and just use Rect.zero if the rect is null.
2021-09-28 09:32:06 -07:00
..
android [gradle] Unlock all configurations if a local engine is used (#83635) 2021-06-01 13:19:03 -07:00
fuchsia/meta [flutter_tool] Various fixes for 'run' for Fuchisa. (#44920) 2019-11-14 12:39:48 -08:00
ios Migrate iOS project to Xcode 13 compatibility (#90304) 2021-09-22 13:23:05 -07:00
lib add missing trailing commas (#81406) 2021-04-28 22:54:49 +02:00
macos Quote arguments to flutter assemble in xcode_backend.sh (#86534) 2021-07-16 18:22:10 -07:00
test License update (#45373) 2019-11-27 15:04:02 -08:00
test_driver Migrate to ChannelBuffers.push (#82564) 2021-05-21 15:09:03 -07:00
web License update (#45373) 2019-11-27 15:04:02 -08:00
pubspec.yaml Add smoke tests for all the examples, fix 17 broken examples. (#89021) 2021-09-28 09:32:06 -07:00
README.md Updated README.md file of the hello_world example (#64766) 2020-09-23 10:57:03 -07:00

To run the Hello World demo:

flutter run

To run the Hello World demo showing Arabic:

flutter run lib/arabic.dart