3323 Commits

Author SHA1 Message Date
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
Ian Hickson
1156bd254f rev engine 2016-01-04 13:53:23 -08:00
Adam Barth
888dc770c8 Merge pull request #1063 from abarth/scrollable_grid
Add support for scrollable grids
2016-01-04 12:13:33 -08:00
Adam Barth
6106fa9d6d Add support for scrollable grids
We now support (vertically) scrollable grids with viewporting. If the
scroll doesn't reveal any new rows, we execute the scroll with a repaint
(i.e., no layout). If the scroll reveals a new row, we trigger a layout
to change the set of materialized children in the viewport.
2016-01-04 11:23:42 -08:00
Ian Hickson
35b18c3def Merge pull request #1062 from Hixie/better-asserts
Change how we provide additional information for asserts in the Widget framework.
2016-01-03 23:16:58 -08:00
Ian Hickson
b1bd8017b4 Change how we provide additional information for asserts in the Widget framework.
Fixes #1058.
2016-01-03 21:22:34 -08:00
Adam Barth
7bf3cb4102 Merge pull request #1061 from abarth/generalize_grid_layout
Generalize grid layout
2016-01-02 14:36:35 -08:00
Adam Barth
46a178dce6 Generalize grid layout
This patch make grid layout much more flexible. The behavior is factored
out into a GridDelegate that's modeled after the custom layout
delegates. The patch includes a MaxTileWidthGridDelegate that implements
the old behavior and a FixedColumnCountGridDelegate that implements a
grid layout with a fixed number of columns.

Fixes #1048
2016-01-02 14:30:45 -08:00
Adam Barth
a5925149d6 Merge pull request #1059 from abarth/moar_gitignore
flutter init should gitignore .atom
2016-01-01 22:03:59 -08:00
Adam Barth
e40912b1e0 Merge pull request #1060 from abarth/box_offset
RenderBox should use Offset for child offset
2016-01-01 22:03:41 -08:00
Adam Barth
e9ac6d308d RenderBox should use Offset for child offset
Previously we used Position, which makes it harder to accumulate offsets
when walking the render tree.
2016-01-01 20:11:38 -08:00
Adam Barth
eecb8012af flutter init should gitignore .atom
We now create a .atom folder to hold settings for the Atom project. We
should gitignore that folder our project template.
2016-01-01 19:44:39 -08:00
Adam Barth
31bc220d3b Merge pull request #1057 from abarth/fix_assert
ScrollbarPainter exception when scrolling MaterialList
2016-01-01 19:39:59 -08:00
Adam Barth
9484370042 ScrollbarPainter exception when scrolling MaterialList
When assigning a new overlayPainter, we were detaching the old overlay
painter even if the render object itself wasn't attached. Now we only
twiddle the attach/detach state of the overlay painter when we're
attached ourselves.

Fixes #1047
2016-01-01 19:33:03 -08:00
Adam Barth
636fa1ab15 Merge pull request #1056 from abarth/list_item_padding
Ink well in ListItem doesn't fill MaterialList
2016-01-01 16:36:21 -08:00
Adam Barth
ab614847f7 Ink well in ListItem doesn't fill MaterialList
We need to put the padding on the inside of the list item.

Fixes #1055
2016-01-01 16:17:01 -08:00
Devon Carew
04d542b16f Merge pull request #1045 from devoncarew/min_api_level
update the min api level in the generated android manifest
2015-12-30 23:13:15 -08:00
Devon Carew
fc0b18c7f1 update the min api level in the generated android manifest; use constants for the android version name 2015-12-30 21:37:39 -08:00
Ian Hickson
29ab6efd1d Merge pull request #1044 from Hixie/better-errors
Improve diagnostics around misuse of ParentDataWidgets.
2015-12-30 17:02:00 -08:00
Ian Hickson
7df2dfcaf7 Improve diagnostics around misuse of ParentDataWidgets.
Fixes https://github.com/flutter/flutter/issues/572
2015-12-30 16:23:15 -08:00
Devon Carew
24cdc2ccf0 Merge pull request #1041 from devoncarew/docs
tweak the doc/index.html page
2015-12-30 13:14:25 -08:00
Devon Carew
8cc229b5c8 add code style 2015-12-30 13:13:54 -08:00
Ian Hickson
4588524ca7 Hook up wordSpacing and inline height.
Also, trivial improvements to the baseline example that I made while
unsuccessfully trying to reproduce a baseline bug.
2015-12-30 12:05:44 -08:00
Ian Hickson
1d3e7515e7 Merge pull request #1037 from Hixie/listen
Refactor listen in terms of start.
2015-12-28 19:43:27 -08:00
Ian Hickson
4fe10dbf7e Refactor listen in terms of start.
Fixes #1034, at least for start and listen.
2015-12-28 17:57:47 -08:00
Ian Hickson
73102aec7c Merge pull request #1031 from Hixie/input
Various Input and Focus fixes
2015-12-28 15:12:16 -08:00
Ian Hickson
3e6dc7eff1 Merge pull request #1030 from Hixie/travis-on-non-travis
Allow travis/test.sh to be run locally (not on travis)
2015-12-28 15:07:39 -08:00
Ian Hickson
b1dae4c4cc Various Input and Focus fixes
Require a Key on Input.

Simplify the API for Focus.at() and Focus.moveTo().
Fixes #236.
This will require an e-mail to flutter-dev.

Make Input grab focus onTap not onPointerDown.
Fixes #189.

Complain when you use Focus.at() with two different GlobalKeys that
are both in the tree at the same time.
Fixes #181.

Add dartdocs for Focus.moveTo() and Focus.moveScopeTo().
2015-12-28 15:05:51 -08:00
Ian Hickson
7d83903e75 Allow travis/test.sh to be run locally (not on travis)
This helps people check that all the tests will pass before they send a PR.
2015-12-28 11:34:37 -08:00
Ian Hickson
c812628806 Merge pull request #1024 from Hixie/transform
Catch dismissable while it's animating.
2015-12-26 11:54:18 -08:00
Ian Hickson
a141fa75d6 Merge pull request #1026 from eseidel/patch-1
Add documentation for GridPaper
2015-12-25 19:02:45 -08:00
Eric Seidel
37142842e0 Add documentation for GridPaper
I'm not actually sure what this is useful for, but I took a stab at it.

@Hixie
2015-12-25 17:16:33 -08:00
Ian Hickson
5d9d521707 Catch dismissable while it's animating.
Fixes #173.
2015-12-24 23:13:55 -08:00
Ian Hickson
4f672dc049 Merge pull request #1020 from Hixie/transform
RenderFractionalTranslation and Dismissable
2015-12-24 11:08:09 -08:00
Ian Hickson
9bad312af2 RenderFractionalTranslation
- Add RenderFractionalTranslation, a render box that does a
  translation based on a FractionalOffset.

- Make FractionalOffset more like Offset
  - dx/dy instead of x/y
  - add /, ~/, %
  - add .zero

- Add alongOffset and alongSize to FractionalOffset so that you can
  easily apply FractionalOffset to Offsets and Sizes. (Better name
  suggestions welcome.)

- Add transformHitTests boolean to RenderTransform (also on
  RenderFractionalTranslation), and to classes based on it.

- Remove the fade from Dismissable. We can add it back using the
  builder-with-child pattern like Draggable if we need it. See #1003
  for tha feature request.

- Rename a bunch of variables in dismissable.dart.

- Change the test for dismissable to not handle leftwards dismisses
  one pixel different from rightwards dismisses, and cleaned up the
  resulting effect on the test (mostly making sure we had the right
  number of pumps, with comments explaining what each one was).

Fixes #174.
2015-12-24 11:04:25 -08:00
Hans Muller
a9ddbb4eca Merge pull request #1007 from HansMuller/revise_tabbar_selection
Make TabBarSelection a widget

TabBarSelection is now expected to be an ancestor of its TabBar and TabBarView.
2015-12-22 14:24:30 -08:00
Hans Muller
6178fdff8a TabBarSelection is now expected to be an ancestor of its TabBar and TabBarView. 2015-12-22 14:12:26 -08:00
Hans Muller
3f32201c66 checkpoint 2015-12-21 16:29:43 -08:00
Devon Carew
95b5091571 Merge pull request #1012 from devoncarew/nsm_hints
remove noSuchMethod hints
2015-12-21 15:15:29 -08:00
Devon Carew
ff74ba812d remove noSuchMethod hints 2015-12-21 14:57:20 -08:00
Devon Carew
7970df5907 Merge pull request #1008 from devoncarew/fix_analysis_errors
fix analysis errors and warnings in the stocks example
2015-12-21 14:03:35 -08:00
Devon Carew
6e324ef92d fix analysis errors and warnings in the stocks example 2015-12-21 13:39:28 -08:00
Seth Ladd
2bc0a05959 Merge pull request #1000 from flutter/sethladd-patch-1
Add a doc comment for Performance's repeat()
2015-12-21 12:51:34 -08:00
Seth Ladd
93053c062d Merge pull request #1001 from flutter/sethladd-patch-2
Link Curve to Curves in doc comments
2015-12-21 12:51:18 -08:00
Ian Hickson
e48efdca15 Merge pull request #982 from Hixie/fewer-bit-updates
Less tree walking for compositing bits updates.
2015-12-21 11:33:11 -08:00
Seth Ladd
c6fc6d2aa0 Link Curve to Curves in doc comments 2015-12-20 11:45:21 -08:00
Seth Ladd
96ae6d65ef Add a doc comment for Performance's repeat()
How's this?
2015-12-20 11:33:10 -08:00