3368 Commits

Author SHA1 Message Date
Adam Barth
dfcc0c71ba Merge pull request #1110 from abarth/widgets_back
Move default back behavior to FlutterWidgetBinding
2016-01-07 10:59:03 -08:00
Adam Barth
c44f0a57e8 Merge pull request #1114 from abarth/rm_block_direction
Remove BlockDirection in favor of ScrollDirection
2016-01-07 10:47:11 -08:00
Ian Hickson
95092bb41f Merge pull request #1109 from Hixie/scrollable-of
Fix Scrollable.of()
2016-01-07 10:45:56 -08:00
Adam Barth
e3668470c7 Merge pull request #1113 from abarth/handle_port_error
`flutter start` crashes when port 8181 is in use
2016-01-07 10:12:31 -08:00
Adam Barth
76dd6228b4 Remove BlockDirection in favor of ScrollDirection
We'll probably renaming ScrollDirection to Axis in a future patch.

Fixes #151
2016-01-07 10:11:39 -08:00
Adam Barth
3615827f0e flutter start crashes when port 8181 is in use
Catch the error and log a warning.

Fixes #1050
2016-01-07 09:56:44 -08:00
Hans Muller
06b566bdea Merge pull request #1106 from HansMuller/tab_view_demo
TabBarView material gallery demo
2016-01-07 09:27:23 -08:00
Adam Barth
e3d587ea52 Move default back behavior to FlutterWidgetBinding
Previously MaterialApp was responsible for ending the activity when the
back stack was empty. However, this behavior is more general than
material. This patch moves the behavior to FlutterWidgetBinding, which
has a global view of all the binding observers.

Fixes #1086
2016-01-07 09:24:51 -08:00
Hans Muller
1b11336ee6 Page Selector gallery demo 2016-01-07 08:27:13 -08:00
Ian Hickson
ea3864b1e4 Fix Scrollable.of()
Make ancestorStateOfType() and ancestorRenderObjectOfType() support
subclassing.

Fixes https://github.com/flutter/flutter/issues/1087
2016-01-06 23:12:37 -08:00
Ian Hickson
19fb068d83 Merge pull request #1108 from Hixie/canFlex-error
Rationalise all our exception catching and reporting code
2016-01-06 22:03:38 -08:00
Ian Hickson
13d6cc3273 Rationalise all our exception catching and reporting code
- make them all have the same style
- make them all include the stack trace last
- make them all stop printing if their callback is set (if
  appropriate, they don't yet all have callbacks)
2016-01-06 21:49:23 -08:00
Ian Hickson
07ed3fbf38 Merge pull request #1107 from Hixie/debugDoesLayoutWithCallback
Remove unreferenced getter "debugDoesLayoutWithCallback".
2016-01-06 19:42:51 -08:00
Ian Hickson
94833b24bf Remove unreferenced getter "debugDoesLayoutWithCallback".
I think I wanted to use this at some point but ended up going a
different direction. Instead, object.dart has a private field that
serves a similar purpose.
2016-01-06 19:14:45 -08:00
Adam Barth
f17f1ba1e5 Merge pull request #1102 from abarth/animated_container
AnimatedContainer has an issue with one config value change and not another
2016-01-06 18:04:19 -08:00
Eric Seidel
d8edf1c27b Merge pull request #1104 from flutter/revert-1103-listen_exit
Revert "Make `flutter listen` exit nicely when missing dependencies"
2016-01-06 17:17:28 -08:00
Eric Seidel
330c08199e Revert "Make flutter listen exit nicely when missing dependencies" 2016-01-06 17:17:16 -08:00
Eric Seidel
43cd6a0946 Merge pull request #1103 from eseidelGoogle/listen_exit
Make `flutter listen` exit nicely when missing dependencies
2016-01-06 17:09:56 -08:00
Adam Barth
79c797a115 AnimatedContainer has an issue with one config value change and not another
If we're already at the target value, we fail to configure the variable. If
another variable animates, we re-animate the other variable.

Fixes #958
2016-01-06 17:09:39 -08:00
Eric Seidel
3a2aa89064 Make flutter listen exit nicely when missing dependencies
Previously it died with a confusing exception.

@chinmaygarde
2016-01-06 17:07:36 -08:00
Adam Barth
8694fada8f Merge pull request #1101 from abarth/lockdown_virtual_viewport
Enable more asserts when building with virtual viewports
2016-01-06 16:13:46 -08:00
Adam Barth
0033a8fcdf Enable more asserts when building with virtual viewports 2016-01-06 16:03:26 -08:00
Adam Barth
d46f0cebb5 Merge pull request #1098 from abarth/pageable_list2
Switch PageableList over to using RenderList
2016-01-06 16:02:34 -08:00
Adam Barth
e64d93a520 Switch PageableList over to using RenderList
This patch moves PageableList off HomogeneousViewport and onto RenderList and
friends, making it match the new ScrollableList.
2016-01-06 15:28:01 -08:00
Chinmay Garde
e1b16729bf Merge pull request #1093 from chinmaygarde/master
Download the Xcode artifacts for the current engine revision
2016-01-06 13:40:35 -08:00
Devon Carew
854f9f717d Merge pull request #1090 from devoncarew/log_stderr
have flutter logs log stderr
2016-01-06 13:39:11 -08:00
Chinmay Garde
f5f9440a2d Download the Xcode artifacts for the current engine revision 2016-01-06 13:38:43 -08:00
Eric Seidel
d7d4a46d36 Merge pull request #1091 from eseidelGoogle/device_time
Teach `flutter trace stop` to use time on the device.
2016-01-06 13:38:39 -08:00
Eric Seidel
0d783718ba Teach flutter trace stop to use time on the device.
This is yet another hack on top of adb log handling.
This is fragile, but w/o this if you device time is out
of sync, you can't trace.

@abarth
2016-01-06 13:29:32 -08:00
Devon Carew
ed215fb842 have flutter logs log stderr 2016-01-06 13:29:24 -08:00
Adam Barth
a271eb5612 Merge pull request #1081 from abarth/ship_scrollable_list2
Replace ScrollableList with ScrollableList2
2016-01-06 11:26:16 -08:00
Adam Barth
627c1ffb5c Replace ScrollableList with ScrollableList2
ScrollableList2 is complete and subsumes all the use cases for the original
ScrollableList.
2016-01-06 11:16:57 -08:00
Hans Muller
fa15fc2d04 Merge pull request #1077 from HansMuller/selection_type
Convert TabBar to TabBar<T> and TabBarSelection to TabBarSelection<T>

The TabBarSelection constructor no longer has the odd maxIndex parameter and the selection is initialized by value rather than the index of the selected tab.

TabBar has a Map labels parameter instead of List.
2016-01-06 11:01:34 -08:00
Hans Muller
6494cd1f35 Make TabBarSelection a parameterized type 2016-01-06 10:54:16 -08:00
Adam Barth
81b7067544 Merge pull request #1082 from abarth/scrollable_crash
Fix assert in Stocks app
2016-01-06 10:51:56 -08:00
Adam Barth
d2a1389ed0 Fix assert in Stocks app
When paging a scrollable list, we were trying to read the render object's size
at a time when we're not allowed to read it. Instead, encode the information
into the repaint limit, which is more correct (and faster) anyway.
2016-01-06 10:44:19 -08:00
Adam Barth
c4faad115d Merge pull request #1074 from abarth/scrollable_list_features
Complete features of ScrollableList2
2016-01-05 16:35:18 -08:00
Adam Barth
b1f9138f52 Switch clients of ScrollableList to ScrollableList2
This patch also changed ScrollableList2 to use an Iterable instead of an
List for its children. This change lets clients map their underlying
data lazily. If the clients actually have a concrete list, we skip the
extra copy and grab the child list directly.
2016-01-05 16:21:00 -08:00
Adam Barth
37106ea603 Complete features of ScrollableList2
This patch implements the remaining missing features of ScrollableList2.
It should now be nearly a drop-in replacement for ScrollableList. The
next patch will switch callers over to the new machinery.
2016-01-05 14:29:12 -08:00
Devon Carew
f72c8f6db7 Merge pull request #1076 from devoncarew/clear_logs
clear logs on app launch
2016-01-05 13:34:03 -08:00
Devon Carew
782f505fb8 clear logs on app launch 2016-01-05 11:02:49 -08:00
Adam Barth
ad170378cf Merge pull request #1073 from abarth/rm_scrolldirection_both
Remove ScrollDirection.both
2016-01-04 17:01:36 -08:00
Jason Simmons
b4591274c9 Merge pull request #1072 from jason-simmons/apk_keystore
Add flags for signing an APK with a custom keystore
2016-01-04 16:50:54 -08:00
Adam Barth
7aa575b0d4 Remove ScrollDirection.both
Almost none of the clients of ScrollDirection can handle scrolling in both
directions.

Fixes #151
2016-01-04 16:46:40 -08:00
Adam Barth
24fadf49fc Merge pull request #1070 from abarth/scrollable_list2
Introduce ScrollableList2
2016-01-04 16:44:44 -08:00
Adam Barth
99bca282c9 Introduce ScrollableList2
ScrollableList2 uses the same pattern as ScrollableGrid, which requires the
client to allocate widgets for every list item but doesn't inflate them unless
they're actually needed for the view. It improves on the original
ScrollableList by not requiring a rebuild of the whole visible portion of the
list when scrolling. In fact, small scrolls can often be handled entirely by
repainting.
2016-01-04 16:34:39 -08:00
Ian Hickson
c8ac09a56d Merge pull request #1042 from Hixie/wordSpacing
Hook up wordSpacing and inline height.
2016-01-04 15:38:56 -08:00
Ian Hickson
dcd34f472c Merge pull request #1071 from flutter/rev
rev engine
2016-01-04 15:22:09 -08:00
Jason Simmons
3a37c36cea Add flags for signing an APK with a custom keystore
Fixes #1010
2016-01-04 13:59:01 -08:00
Ian Hickson
1156bd254f rev engine 2016-01-04 13:53:23 -08:00