Commit Graph

18842 Commits

Author SHA1 Message Date
Devon Carew
073ac691a7 Merge pull request #1329 from devoncarew/refactor_commands
refactor commands to move out re-usable functionality
2016-01-21 10:06:16 -08:00
Devon Carew
5daf58ce1e refactor commands to move out re-usable functionality 2016-01-21 09:38:46 -08:00
Adam Barth
5065339ce3 Move scroll_behavior into widgets
Previously this code was in the animation layer, which didn't make much
sense because scrolling is a widget concern.
2016-01-20 23:21:11 -08:00
Devon Carew
a14c2d219e parse out the ios simulator device name 2016-01-20 22:01:57 -08:00
Adam Barth
89320ee233 Rename Performance to Animation in a couple more places
These should be the last references to the old "performance" name.
2016-01-20 20:51:43 -08:00
Adam Barth
d59da41bfc Use parent consistently for parent animation
Some of the Animation classes that we converted from performances use
the term "master" to refer to the animation upon which they're based.
This patch changes them to use the term "parent", which is consistent
with the rest of the animation classes.
2016-01-20 20:47:15 -08:00
Eric Seidel
f9c7a8f606 Make flutter start not report erroneous failure
Was failing when starting in the iOS Simulator

@chinmaygarde
2016-01-20 17:57:28 -08:00
Adam Barth
67c4ff99e8 Fix analyzer warning 2016-01-20 17:55:24 -08:00
Adam Barth
fc8ac4ebdf Merge simulationStepper into AnimationController
Now that we've decided that Animation<double> isn't confined to the interval
0.0 to 1.0, we can expand AnimationController to cover the use cases that used
to require SimulationStepper.

This patch merges SimulationStepper into AnimationController and ports the one
stand-alone client of simulation stepper over to using AnimationController.
2016-01-20 16:42:15 -08:00
Adam Barth
3825c037e7 Merge pull request #1320 from abarth/animation_cleanup
Move ClampedSimulation into newton
2016-01-20 16:05:27 -08:00
Devon Carew
cdf7ad4d32 Merge pull request #1319 from devoncarew/refactor_build_command
refactor build command into two files
2016-01-20 16:02:27 -08:00
Adam Barth
87ab798daf Move ClampedSimulation into newton
ClampedSimulation makes more sense at the newton layer because it's dealing
entirely with newton concepts.
2016-01-20 15:58:05 -08:00
Devon Carew
70fb49fb14 refactor build command into two files 2016-01-20 15:45:34 -08:00
Adam Barth
b988a875ad Remove Performance and AnimatedValue
This patch removes Performance and AnimationValue now that we've ported the
framework over to AnimationController and Tween. This patch also cleans up the
names of the AnimationController classes now that they don't have to avoid
conflicts with the old animation API. Specifically, I've made the following
renames:

 * Animated -> Animation
 * Evaluatable -> Animatable
 * PerformanceStatus -> AnimationStatus

This patch is just renames and moving code around. There aren't any changes in
behavior.
2016-01-20 13:49:35 -08:00
Adam Barth
e459e7124a Port the remainder of the framework to AnimationController
There should be no more uses of Performance or AnimatedValue in the framework
or the examples.
2016-01-20 13:29:05 -08:00
Adam Barth
24872f6931 Port most of widgets to AnimationController
I've left transitions and enter_exit_transition out of this patch, but I've
converted the rest.
2016-01-20 13:24:43 -08:00
Adam Barth
e4940a0114 Merge pull request #1314 from abarth/port_material2
Finish porting material.dart to AnimationController
2016-01-20 10:47:37 -08:00
Adam Barth
08b27fd79d Finish porting material.dart to AnimationController
After this patch, there aren't any direct uses of Performance in material.dart.
2016-01-20 10:38:34 -08:00
Devon Carew
5ac6f9313d Merge pull request #1305 from devoncarew/device_notification
Device notification
2016-01-20 10:03:56 -08:00
Devon Carew
5ad67975e5 Merge pull request #1312 from devoncarew/tools_tweaks
name and grammar tweaks
2016-01-20 09:55:40 -08:00
Adam Barth
d25951c517 AnimatedBuilder should have a child
Providing a pre-built child is more efficient because we don't need to rebuild
the child every tick of the animation.
2016-01-20 09:10:34 -08:00
Adam Barth
715af6ebe8 Port Tooltip to AnimationController 2016-01-20 08:43:04 -08:00
Adam Barth
6cea5dc80d Switch Navigator over to using AnimationController
This patch moves Navigator and related code over to using
AnimationController.
2016-01-20 08:43:04 -08:00
Adam Barth
0b098ee2e5 Move Scaffold over to using AnimationController
Also, clean up the class hierarchy for AnimationController now that
we've renamed progress to value. That means everything in the hierarchy
now has a value, include Watchable. This patch renames Watchable to
Animated<T>, which lets us use that type almost everywhere.

I've added some ducktape to modal bottom sheets to avoid having to
refactor all of Navigator to use AnimationController. I'll remove the
ducktape in the next patch.
2016-01-20 08:43:04 -08:00
Devon Carew
87e6b9a082 name and grammar tweaks 2016-01-20 08:38:50 -08:00
Devon Carew
386b27755d Merge pull request #1310 from devoncarew/better_failure
Better failure when run from non-flutter projects
2016-01-19 21:44:52 -08:00
Devon Carew
8bb8e1d9e7 add device notifications to the daemon command 2016-01-19 21:29:20 -08:00
Devon Carew
386c351884 improve the failure mode when run from a non-flutter project
fix an issue where errors were printed twice
2016-01-19 20:56:23 -08:00
Adam Barth
fc978c1aa8 Port examples to the new animation API
These now use Animation and AnimationController instead of PerformanceView and
Performance.
2016-01-19 16:03:31 -08:00
Chinmay Garde
477530f309 Merge pull request #1249 from chinmaygarde/master
First take on `flutter start` for iOS devices
2016-01-19 14:59:05 -08:00
Devon Carew
3207805214 Merge pull request #1302 from devoncarew/adb
add a wrapper around the adb command
2016-01-19 14:45:42 -08:00
Adam Barth
1e70dc9ba1 Localize curve direction concern
The curve direction is now a concern of ACurve alone.
2016-01-19 14:33:57 -08:00
Devon Carew
e5beea64d2 add tests 2016-01-19 14:33:02 -08:00
Adam Barth
bc20871cb9 Introduce Tween and the new animation API
This patch removes state from the animation system, which was causing problems
as we were scaling the use of animated values.

Now the "tween" objects are stateless and can watch animations, which creates a
new object that holds both the tween and the animation instead of mutating the
tween every tick of the animation.

This patch ports one client as a proof-of-concept.

Fixes #215
2016-01-19 14:26:05 -08:00
Devon Carew
2727954d0e review comments 2016-01-19 13:15:58 -08:00
Devon Carew
077ee32ea5 guard against npe 2016-01-19 12:15:11 -08:00
Devon Carew
677a80c16b add a wrapper around the adb command 2016-01-19 11:31:20 -08:00
Adam Barth
548dbf0870 Update engine 2016-01-19 10:50:06 -08:00
Devon Carew
0e99d2fd41 fix two null-aware-operator issues 2016-01-19 09:32:35 -08:00
Ian Hickson
0bf6170c29 Merge pull request #1297 from Hixie/dialog-PENDING
StackParentData.toString() fix, RenderOpacity default
2016-01-18 22:17:31 -08:00
Ian Hickson
03dcd2686a Move RenderObjectWidgets down
It's confusing to have non-render-object widgets on either side of the
render object ones.
2016-01-18 21:32:01 -08:00
Ian Hickson
32cd916e00 StackParentData.toString() fix, RenderOpacity default 2016-01-18 21:14:51 -08:00
Ian Hickson
60d9ab7e7b Fix some intrinsic constraints contract violations.
RenderBlock wasn't constraining the results.
RenderPadding wasn't constraining the results (which matters
especially when the constraints can't fit the padding in the first
place).
RenderViewport wasn't constraining the results.

Add a test for the block case.

To catch this kind of thing in the future, add some asserts to
debugDoesMeetConstraints() that all four intrinsic functions return
values that are within the constraints.

RenderBlockViewport doesn't support returning intrinsics, so turn off
the "no intrinsic support" asserts (and return zero) when we're doing
this new assert.

This new assert screwed up the custom layout classes' tests, so adjust
those tests to ignore the callbacks invoked from these asserts.

Add to the _debugReportException() method a short summary of the
descendants of this node. It's important to have this information when
debugging errors like these intrinsic constraints contract violations
because often nodes just pass the values through to their child so you
have to go several steps down to find the actual problem.

Fixes https://github.com/flutter/flutter/issues/1210
2016-01-18 13:54:45 -08:00
Ian Hickson
aa701d44f6 Merge pull request #1257 from Hixie/shadows
More elaborate RenderBox example
2016-01-18 13:53:22 -08:00
Ian Hickson
73c9ebab19 Reimplement the theme transition animation by actually animating the Theme.
As part of this:
 - A lot of classes got new lerp functions, including e.g. TextStyle.
 - Theme's constructor story got overhauled. You can now configure
   everything if you really want to, and we're better about defaults.
 - Material no longer automatically animates its background color.
   (It still does for its shadow.)
 - Tabs try to get the indicator color from the theme.
 - The fields in ThemeData got reordered for sanity.
 - Theme.== and Theme.hashCode got fixed.
 - Typography got a bit of a spring cleaning.

Fixes #613.
2016-01-18 13:07:39 -08:00
Adam Barth
7019e92f38 Skip "list of devices" header from adb
Sometimes "adb devices" prints a header. We should skip over the header
instead of complaining that we don't recognize it.

Fixes #1293
2016-01-18 11:26:29 -08:00
Ian Hickson
eb53ec313b Merge pull request #1288 from Hixie/ViewConstraints-rename
Rename ViewConstraints to ViewConfiguration
2016-01-17 22:34:37 -08:00
Ian Hickson
a566afcbb1 Merge pull request #1287 from Hixie/scaffold
Rename _Child to _ScaffoldSlot for clarity.
2016-01-17 22:34:24 -08:00
Ian Hickson
62673cf67b Merge pull request #1286 from Hixie/better-analyze
Make 'flutter analyze' support analyzing arbitrary files
2016-01-17 22:34:13 -08:00
Ian Hickson
9d155bdce5 Merge pull request #1285 from Hixie/activity
Activity clean-up
2016-01-17 22:33:59 -08:00