- 15 Apr, 2017 4 commits
-
-
Zachary Anderson authored
-
Brian Slesinsky authored
IDEA gets confused unless the filename matches the project library name, including getting the case right.
-
Ian Hickson authored
With this patch, you can do: ```dart Future<Null> foo() async { try { await controller.forward().orCancel; await controller.reverse().orCancel; await controller.forward().orCancel; } on TickerCanceled { // did not complete } } ``` ...in a State's async method, and so long as you dispose of the controller properly in your dispose, you'll have a nice way of doing animations in sequence without leaking the controller. try/finally works as well, if you need to allocate resources and discard them when canceled. Simultaneously, you can do: ```dart Future<Null> foo() async { await controller.forward().orCancel; await controller.reverse().orCancel; await controller.forward().orCancel; } ``` ...and have the same effect, where the method will just silently hang (and get GC'ed) if the widget is disposed, without leaking anything, if you don't need to catch the controller being killed. And all this, without spurious errors for uncaught exceptions on controllers.
-
Yegor authored
-
- 14 Apr, 2017 10 commits
-
-
Hans Muller authored
-
Hans Muller authored
-
Zachary Anderson authored
-
Adam Barth authored
There are more places we can use this annotation, but this patch just gets us started.
-
Jason Simmons authored
-
Brian Slesinsky authored
Generates an android.iml file and a package-level library for flutter.jar. Does not set up an Android SDK in IDEA; this isn't possible with a template-based approach. But IDEA shows a clear warning, so the user can fix this by setting the SDK. (When creating a Flutter project from within IDEA, we can fix this up afterwards in the plugin.)
-
Jason Simmons authored
Fixes https://github.com/flutter/flutter/issues/9258
-
Devon Carew authored
-
Devon Carew authored
* update the font used for docs.flutter.io * update to use the flutter primary color * update the header background color
-
Phil Quitslund authored
Brings us inline with the latest internal push.
-
- 13 Apr, 2017 10 commits
-
-
Hans Muller authored
* Scaffold appBar is-a PreferredSizeWidget, etc * Updated * Updated per review feedback
-
Ian Hickson authored
-
Chris Bracken authored
-
Chris Bracken authored
Tests that updates to selection base/offset editing state is updated on controller updates. Tests TextEditingValue.clear() clears text.
-
Jason Simmons authored
Fixes https://github.com/flutter/flutter/issues/8690
-
Ian Hickson authored
I can't figure out if this is genius or a giant hack. This lets you use DefaultTextStyle.merge and IconTheme.merge without specifying a BuildContext. It automatically merges in at the appropriate place in the tree using a Builder widget.
-
Ian Hickson authored
In particular, if stdout.supportsAnsiEscapes is false, don't output ANSI. Also, output stdout/stderr of tests that are normally silenced, if they fail. Also, update the output to be more convenient when debugging. Also, expand some abbreviations.
-
Yegor authored
-
xster authored
-
xster authored
-
- 12 Apr, 2017 7 commits
-
-
xster authored
Remove intermediate animation listener
-
Hans Muller authored
-
Hans Muller authored
-
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
-
Chris Bracken authored
-
Hans Muller authored
-
Ian Hickson authored
* Fix tests to use Ahem, and helpful changes around that - Fix fonts that had metric-specific behaviours. - LiveTestWidgetsFlutterBinding.allowAllFrames has been renamed to LiveTestWidgetsFlutterBinding.framePolicy. - LiveTestWidgetsFlutterBinding now defaults to using a frame policy that pumps slightly more frames, to animate the pointer crosshairs. - Added "flutter run --use-test-fonts" to enable Ahem on devices. - Changed how idle() works to be more effective in live mode. - Display the test name in live mode (unless ahem fonts are enabled). - Added a toString to TextSelectionPoint. - Style nit fixes. * Roll engine to get Ahem changes. * Update tests for dartdoc changes. * Fix flutter_tools tests
-
- 11 Apr, 2017 4 commits
-
-
Jason Simmons authored
Fixes https://github.com/flutter/flutter/issues/7715
-
Devon Carew authored
-
xster authored
Rename State.config to State.widget Rename State.didUpdateConfig to State.didUpdateWidget Renamed all State subclasses' local variables named config to something else
-
- 10 Apr, 2017 5 commits
-
-
Yegor authored
-
Yegor authored
* do not warn about out-of-date Flutter installation too often * style fix
-
Yegor authored
-
Jakob Andersen authored
Added a PluginRegistry to the new project template. The registry files will be automatically updated at build time to register the native plugins. Fixes #7814.
-
xster authored
-