4786 Commits

Author SHA1 Message Date
Chinmay Garde
16074e1eb6 Document StatisticsOverlay.rasterizerThreshold 2015-10-07 11:47:30 -07:00
Chinmay Garde
8a87f23216 Allow updating the rasterizer tracing threshold from Dart 2015-10-07 11:22:51 -07:00
Chinmay Garde
d8046818a4 Merge pull request #1517 from chinmaygarde/master
Allow capturing SKPicture traces when the rasterizer spends more than a set number of frame intervals to render a frame
2015-10-06 21:19:10 -07:00
Adam Barth
d23d25e872 Merge pull request #1513 from mdakin/checkbox_fixes
Make checkbox widget to fit more closely to  material design standard…
2015-10-06 19:29:38 -07:00
Chinmay Garde
6d7a56b7ed Disable instrumentation when rendering to a trace file 2015-10-06 17:29:58 -07:00
Chinmay Garde
b95b5292b8 Setup infrastructure to capture SKP traces when the frame interval exceeds certain thresholds 2015-10-06 17:03:10 -07:00
Mehmet Akin
30e2cf6e76 Make checkbox widget to fit more closely to material design standard. Make changes to remove animation artefacts. 2015-10-07 01:01:54 +02:00
Chinmay Garde
aa81cbad90 Bump down the opacity of frame markers on instrumentation 2015-10-06 15:11:22 -07:00
Chinmay Garde
c61aeb196c Merge pull request #1511 from chinmaygarde/master
Add markers for each frame interval while rendering statistics and scale the graph
2015-10-06 13:36:27 -07:00
Chinmay Garde
d012337718 Add markers for each frame interval while rendering statistics and scale the graph 2015-10-06 12:35:48 -07:00
Hans Muller
f6f4235022 Merge pull request #1509 from HansMuller/remove_popup_menu_margin
Remove PopupMenu margin

The margins make using showMenu's menuPosition argument difficult and they're not really needed.

I also made a few small gratuitous changes in navigator.dart.
2015-10-06 11:03:23 -07:00
Hans Muller
6f1d79ed18 Remove PopupMenu margin
The margins make using showMenu's menuPosition argument difficult and they're not really needed.

I also made a few small gratuitous changes in navigator.dart.
2015-10-06 10:55:31 -07:00
Adam Barth
1a3a35e23c Merge pull request #1507 from abarth/image_decoding
NetworkImage occasionally does not grab the image
2015-10-06 10:51:21 -07:00
Viktor Lidholt
6c78e664e1 Merge pull request #1508 from vlidholt/master
Improvements to sprite physics
2015-10-06 10:44:47 -07:00
Viktor Lidholt
8863bacbc2 Forwards physics body properties to box2d in sprite physics 2015-10-06 10:39:26 -07:00
Adam Barth
3905b95985 NetworkImage occasionally does not grab the image
I haven't been able to reproduce this bug consistently, but my theory is that
the ImageDecoder was being garbage collected before it called its completion
callback. This patch prevents that by keeping a reference to the image decoder
while the callback is in flight.

Fixes #801
2015-10-06 10:37:55 -07:00
Adam Barth
398400a3bc Merge pull request #1503 from abarth/simplify_scaffold
Simplify Scaffold
2015-10-06 10:09:35 -07:00
Adam Barth
7d5412eb60 Merge pull request #1504 from abarth/tab_shadow
ToolBar with a TabBar shouldn't have a shadow
2015-10-06 10:08:11 -07:00
Adam Barth
6601b5dfa9 Simplify Scaffold
Rather than using a custom render object, we can just use a Stack.
2015-10-06 10:06:17 -07:00
Viktor Lidholt
64fd2b192d Adds forwarding of properties to box2d in sprite physics 2015-10-06 09:59:16 -07:00
Viktor Lidholt
eb2709eafe Merge pull request #1506 from vlidholt/master
Fixes to demo game
2015-10-06 09:57:21 -07:00
Adam Barth
ed041a2971 Merge pull request #1501 from abarth/initial_page
PageableList should take initialPage instead of initialScrollOffset
2015-10-06 09:51:35 -07:00
Adam Barth
35662d03bd Rev pub package 2015-10-06 09:51:00 -07:00
Adam Barth
87960ec1c2 Rev pub package 2015-10-06 09:45:20 -07:00
Adam Barth
1b70ffadda Make MimicableState public again
This state object has a public API.
2015-10-06 09:33:33 -07:00
Viktor Lidholt
bf4342fa9a Adds default text style 2015-10-06 09:28:05 -07:00
Adam Barth
8e1583af38 ToolBar with a TabBar shouldn't have a shadow
This patch makes the level of the ToolBar configurable. I've also cleaned up
the Tab code slightly.

For some reason, there's still a hairline between the ToolBar and the TabBar.
We might need to rethink how we draw the background a bit here.

Fixes #1454
2015-10-05 23:41:14 -07:00
Adam Barth
ab3035037e Merge pull request #1502 from abarth/private_state
Mark most State subclasses private
2015-10-05 22:27:28 -07:00
Adam Barth
3ccef40ca2 Mark most State subclasses private
In the vast majority of cases, folks should be interacting with the Widget
rather than its State.

Fixes #267
2015-10-05 21:54:33 -07:00
Adam Barth
06e49c0942 PageableList should take initialPage instead of initialScrollOffset
Fixes #900
2015-10-05 21:36:23 -07:00
Adam Barth
1710c20d0d Merge pull request #1499 from abarth/rm_animated_component
Delete AnimatedComponent
2015-10-05 21:32:28 -07:00
Adam Barth
d9c44f2e45 Delete AnimatedComponent
This class has no clients.
2015-10-05 17:35:51 -07:00
Ian Hickson
6f82b1c903 Merge pull request #1496 from Hixie/focus
Fix Focus
2015-10-05 17:32:52 -07:00
Adam Barth
27f1359728 Merge pull request #1484 from abarth/snackbar_route
Use Navigator to drive SnackBar
2015-10-05 17:32:47 -07:00
Adam Barth
57002a4ab5 Merge pull request #1497 from abarth/create_performance_earlier
Create the Performance for a Route earlier
2015-10-05 17:32:41 -07:00
Adam Barth
5a1cf0b791 Create the Performance for a Route earlier
Instead of waiting until build(), we now create the performance for a route in
its constructor.
2015-10-05 17:20:08 -07:00
Adam Barth
a5907c6f12 Use Navigator to drive SnackBar
Now SnackBar is an ephemeral route that uses a Placeholder to put itself into
the Scaffold.

Fixes #673
2015-10-05 17:12:50 -07:00
Hixie
9f2429550c Fix Focus
Focus.at() and company should be on Focus, not FocusState.

_notifyDescendants() was using the wrong runtimeType.

Let InheritedWidget update the descendants during build.

When you setState() during build, assert that you're not
markNeedsBuild()ing someone who isn't a descendant.

Typo in Widget.toString().
2015-10-05 16:41:50 -07:00
Viktor Lidholt
4599f809dc Makes physics bodies fixture elements settable 2015-10-05 16:13:32 -07:00
Ian Hickson
74f85c7ae5 Merge pull request #1490 from Hixie/navigator-ensure-pop
Handle a route being dismissed before being popped
2015-10-05 13:59:59 -07:00
Ian Hickson
7be4dc4d63 Merge pull request #1489 from Hixie/cleanup
Add more debugging information to Widgets.
2015-10-05 13:59:56 -07:00
Ian Hickson
fa37693a0a Merge pull request #1488 from Hixie/RouteArguments
Simplify the usage of Navigator's routes argument
2015-10-05 13:59:45 -07:00
Hixie
3467f32a1f Simplify the usage of Navigator's routes argument
(These are changes cherry-picked from in-flight branches since they are
more independent and could be helpful even without those changes.)

- Change RouteBuilder's signature to take a single argument in which the
  other fields are placed, so that we can keep iterating on those
  arguments without having to break compatibility each time. Also, this
  makes defining route builders much simpler (only one argument to
  ignore rather than a variable number).

- Expose the next performance to RouteBuilders, since sometimes the
  route itself might not be where it's used.

- Allow BuildContext to be used to walk children, just like it can for
  ancestors

- Allow BuildContext to be used to get the Widget of the current
  BuildContext

- Allow StatefulComponentElement to be referenced with a type
  specialisation so that you don't have to cast when you know what the
  type you're dealing with actually is.
2015-10-05 13:59:30 -07:00
Viktor Lidholt
ad130b3ef9 Merge pull request #1492 from vlidholt/master
Handle removal of sprite physics bodies during the physics simulation
2015-10-05 13:51:55 -07:00
Viktor Lidholt
d97a07c94c Handle removal of sprite physics bodies during the physics simulation 2015-10-05 13:47:51 -07:00
Hixie
01887db498 Handle a route being dismissed before being popped
Ensure that if a route's performance is dismissed before the route is
popped, that we pop the route.
2015-10-05 13:38:07 -07:00
Hixie
940d896456 Add more debugging information to Widgets.
Also, fix comment mentioning syncConstructorArguments.
2015-10-05 13:18:06 -07:00
Adam Barth
575a0dea5d Merge pull request #1487 from abarth/merge_curve_into_interval
Give Interval a Curve to apply between start and end
2015-10-05 12:43:44 -07:00
Adam Barth
80d1218487 Give Interval a Curve to apply between start and end
This patch simplifies AnimationTiming and all the AnimatedValue base classes.
Also, make PopupMenu a stateless component because it has no state.

Fixes #1168
2015-10-05 12:10:48 -07:00
Viktor Lidholt
74f8e53209 Merge pull request #1486 from vlidholt/master
Prevents sprite update methods to be called before the sprite box has…
2015-10-05 11:58:09 -07:00