Commit Graph

22 Commits

Author SHA1 Message Date
Sam Rawlins
412e329af2 Correct missing return statements in nullably-typed functions (#95428) 2021-12-16 15:29:17 -08:00
Dan Field
bf60291493 Improve sync*/async* opt outs (#95286) 2021-12-14 19:00:52 -08:00
Greg Spencer
bbc21fe3ed Fix some issues with samples (#95044) 2021-12-13 09:29:09 -08:00
Dan Field
ab0a335973 Ban sync*/async* from user facing code (#95050) 2021-12-12 13:05:03 -08:00
Ian Hickson
5ddc00cc03 Use EnumName.name where possible. (#94496) 2021-12-03 16:39:04 -08:00
Michael Goderbauer
f4a44a9d68 Reland "Mixin for slotted RenderObjectWidgets and RenderBox (#94077)" (#94632) 2021-12-03 14:39:02 -08:00
Michael Goderbauer
885a1482f8 Revert "Mixin for slotted RenderObjectWidgets and RenderBox (#94077)" (#94620)
This reverts commit 988959dad9.
2021-12-03 10:39:11 -08:00
Michael Goderbauer
988959dad9 Mixin for slotted RenderObjectWidgets and RenderBox (#94077) 2021-12-03 09:29:06 -08:00
Hans Muller
f4f23ecb59 Added SharedAppData to the widgets library (#93175) 2021-11-08 12:27:14 -08:00
Hans Muller
0815da4d38 Revert "Added widgets/AppModel" (#93161) 2021-11-05 16:13:03 -07:00
Hans Muller
389a12f4e0 Added widgets/AppModel (#92297) 2021-11-03 20:23:02 -07:00
LongCatIsLooong
ffcd32ebb6 Move text editing Actions to EditableTextState (#90684) 2021-11-03 11:11:32 -07:00
Ian Hickson
6d5fc420b6 Enable sort_child_properties_last lint (#91585) 2021-10-11 21:23:02 -07:00
Ian Hickson
61a0add286 Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00
Zachary Anderson
b9d2177da0 Revert "Enable avoid_redundant_argument_values lint (#91409)" (#91461)
This reverts commit 5fd259be24.
2021-10-07 21:11:07 -07:00
Ian Hickson
5fd259be24 Enable avoid_redundant_argument_values lint (#91409) 2021-10-07 20:13:02 -07:00
Ian Hickson
f25b833f27 Enable avoid_print lint. (#91444) 2021-10-07 16:48:04 -07:00
Mouad Debbar
c2ea78d231 Revert "Enable avoid_print lint. (#91332)" (#91438)
This reverts commit cb378edc9e.
2021-10-07 16:16:17 -04:00
Ian Hickson
cb378edc9e Enable avoid_print lint. (#91332) 2021-10-07 09:53:03 -07:00
Greg Spencer
fd9ce27748 Clean up examples, remove section markers and --template args (#91133)
This does a cleanup of the examples, removing all of the "section" markers and extra comments that we don't need anymore now that the samples are no longer in the source code. It also removes the --template arguments from the {@tool dartpad} and {@tool sample} directives, since those are no longer used. It converts two examples that I discovered were still embedded into linked examples in the examples folder.

I didn't delete the templates from the snippets config folder yet, because there are still embedded samples in the dart:ui package from the engine that use them. Once dart:ui no longer uses the templates, they can be removed.

I bumped the version of the snippets package to pick up a change that allows removal of the --template argument.
2021-10-04 12:16:17 -07:00
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
Greg Spencer
33403bd28e Extract Sample code into examples/api (#87280)
This extracts the sample code out from the API doc comments, and places them in separate files on disk, allowing running of the examples locally, testing them, and building of slightly larger examples.
2021-08-25 09:45:12 -07:00