3702 Commits

Author SHA1 Message Date
Ian Hickson
63c2ac9c4e AnimatedPositioned 2016-01-10 11:35:20 -08:00
Ian Hickson
f37c29dddd Move AnimatedContainer to a new file so AnimatedPositioned can live with it. 2016-01-10 11:14:54 -08:00
Ian Hickson
948f3db270 Refactor AnimatedContainer to be reusable.
This will allow AnimatedPositioned to reuse all the same logic.
2016-01-10 11:14:46 -08:00
Adam Barth
682243efef Merge pull request #1156 from abarth/edge_swipe
Drawer edge swipe convers entire screen
2016-01-10 10:50:11 -08:00
Ian Hickson
4d696e62bf Merge pull request #1165 from Hixie/stock-settings
Refactor the Stocks app's settings
2016-01-10 09:27:01 -08:00
Ian Hickson
34cfb6082a Refactor the Stocks app's settings
This will make it much easier to add more settings.
2016-01-10 00:36:01 -08:00
Ian Hickson
71c2ccbf66 Merge pull request #1163 from Hixie/fix-animated-container
Fix crazy assertion.
2016-01-09 14:53:19 -08:00
Ian Hickson
f07a0c9873 Fix crazy assertion.
Not sure what I was doing when I wrote this assertion, but I'm pretty
sure it's wrong. I'm guessing the change here is what I actually meant
to write.
2016-01-09 13:30:51 -08:00
Ian Hickson
306a364fb5 Merge pull request #1158 from Hixie/padding-debug
Add more debugPaintSizeEnabled construction lines.
2016-01-08 23:43:34 -08:00
Ian Hickson
20a01b425e Add more debugPaintSizeEnabled construction lines.
- padding is shown in blue with a darker blue around the child
- spacing (empty size boxes or padding) is shown in gray
- alignment from a RenderPositionedBox is shown with yellow arrows
2016-01-08 23:13:20 -08:00
Adam Barth
1ef3f82e0f Drawer edge swipe convers entire screen
When I tightened up the layout constraints for the Drawer in the
Scaffold, I ended up making the edge swipe detector cover the entire
screen.  This patch fixes that issue by putting the gesture detector for
the edge swipe just around the container with the proper width. We now
use a global key to maintain the state across hierarchy changes.
2016-01-08 19:40:04 -08:00
Ian Hickson
fb66bf11b7 Merge pull request #1149 from Hixie/material-grid
Material baseline grid
2016-01-08 13:31:09 -08:00
Collin Jackson
632addf692 Merge pull request #1079 from collinjackson/firebase
Proof of concept for Firebase support in Flutter framework
2016-01-08 12:40:40 -08:00
Collin Jackson
8ac0641363 Add Firebase package to Flutter framework 2016-01-08 11:24:05 -08:00
Ian Hickson
d9d3114d14 Material baseline grid
See https://www.google.com/design/spec/layout/metrics-keylines.html#
2016-01-08 11:18:15 -08:00
Ian Hickson
99112425e2 Merge pull request #1143 from Hixie/GridPaper
GridPaper updates
2016-01-08 11:03:23 -08:00
Hans Muller
8899fe5ab3 Merge pull request #1142 from HansMuller/tabs_typo
Fixed a tabs scrolling typo
2016-01-08 10:36:49 -08:00
Hans Muller
d71afc3445 Fixed a typo 2016-01-08 10:29:10 -08:00
Ian Hickson
d502d2376c GridPaper updates
Change how GridPaper works so that it's easier to plug in anywhere.
It now takes a child that it will paint the grid over.
It defaults to semi-transparent grid-paper-blue.
The line spacing is also more configurable now.
2016-01-08 10:27:43 -08:00
Adam Barth
d8fd537ce3 Merge pull request #1136 from abarth/optimize_scaffold
Optimize repainting in Scaffold
2016-01-08 09:06:35 -08:00
Ian Hickson
17ef9488ff Transition callers from 'concat' to 'transform'
See: https://github.com/flutter/flutter/issues/1080
2016-01-08 08:58:31 -08:00
Hans Muller
606887a12c Merge pull request #1127 from HansMuller/fix_tabs
Fix tab fling scrolling when the last tab is selected
2016-01-08 07:58:48 -08:00
Adam Barth
ee88a685f8 Optimize repainting in Scaffold
Previously, we triggered a layout (and hence a repaint) when sliding the
draw because we gave the draw loose constraints. The drawer uses an
Align to move itself to the proper side of the screen, so it can have
tight constraints, which makes it a layout boundary.

Also, don't trigger a layout just because the Scaffold rebuilds. There
isn't any state in the scaffold custom layout, so it doesn't need to
repaint just because we created a new instance of the delegate.

Finally, add the debugging infrastructure I used to find these issues.
2016-01-08 01:57:30 -08:00
Adam Barth
39ad22c8bd Merge pull request #1124 from sethladd/gen-docs-for-sprites
generate docs for sprites
2016-01-07 23:26:34 -08:00
Ian Hickson
60ef3836a5 Merge pull request #1133 from Hixie/TabBarSelectionState.of
Reimplement TabBarSelectionState.of() using new methods
2016-01-07 23:12:10 -08:00
Ian Hickson
892cc272a6 Reimplement TabBarSelectionState.of() using new methods 2016-01-07 22:09:36 -08:00
Hans Muller
5966f67627 fix #1126 2016-01-07 16:31:30 -08:00
Seth Ladd
ef4ea9b776 generate docs for sprites 2016-01-07 15:55:41 -08:00
Adam Barth
51d066473f Merge pull request #1122 from abarth/fix_tabs
Tabs don't display items other than 0 and 1
2016-01-07 14:22:22 -08:00
Adam Barth
5e2badad40 Tabs don't display items other than 0 and 1
The TabBarView wants to remap page indices during tab transitions, which
I broke when I refactored TabBarView.

Fixes #1119
2016-01-07 13:04:31 -08:00
Adam Barth
1cee346ac9 Merge pull request #1118 from abarth/limit_image_cache
Limit the size of the image cache
2016-01-07 12:44:27 -08:00
Adam Barth
52a7479dd1 Limit the size of the image cache
Fixed #1009
2016-01-07 12:07:17 -08:00
Adam Barth
4e9762784a Merge pull request #1116 from abarth/upgrade_with_no_upstream
Handle trying to upgrade Flutter with no upstream
2016-01-07 11:25:55 -08:00
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
2303188614 Handle trying to upgrade Flutter with no upstream
Fixes #1084
2016-01-07 10:57:48 -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