Commit Graph

29153 Commits

Author SHA1 Message Date
Adam Barth
87e6a5cc12 Add more dartdoc for basic widgets 2015-12-10 14:58:57 -08:00
Jim Beveridge
f92cd47651 Merge pull request #853 from jimbeveridge/pagetest
Added rotation test for new PageableList code.
2015-12-10 12:57:28 -08:00
Hans Muller
54f2d4cb94 Merge pull request #878 from HansMuller/pageable_list_tabs
TabBarView is-a PageableList, doesn't need itemExtent

Base TabBarView on PageableList so that itemExtent and its SizeObserver aren't needed.

TabBarView scrolling is still TBD.
2015-12-10 12:34:32 -08:00
Hans Muller
c4f52177cc demo updates 2015-12-10 12:25:59 -08:00
Adam Barth
ffad464c96 Merge pull request #877 from abarth/better_asserts
Improve asserts when performLayout missing
2015-12-10 12:23:36 -08:00
Hans Muller
55f6593017 tabs scroll duration is 300ms 2015-12-10 12:20:29 -08:00
Hans Muller
9651db22df TabBarView is-a PageableList, doesn't need itemExtent 2015-12-10 12:20:29 -08:00
Adam Barth
2edb6807b8 Improve asserts when performLayout missing
Fixes #566
2015-12-10 12:15:07 -08:00
Adam Barth
4fa9e57185 Merge pull request #872 from abarth/build_errors
Improve error messages when build fails
2015-12-10 12:00:30 -08:00
Adam Barth
2f973faeaa Merge pull request #871 from abarth/recognize_offline
Recognize offline status in adb
2015-12-10 11:27:50 -08:00
Adam Barth
8eb9763569 Improve error messages when build fails
Instead of failing with a cryptic error message about app.flx, we now fail with
an explicit message about the compiler.

Releated to #865
2015-12-10 11:25:19 -08:00
Jim Beveridge
8bb09dbcf8 Added rotation test for new PageableList code. 2015-12-10 11:19:01 -08:00
Ian Hickson
335f583564 Merge pull request #866 from Hixie/debugDoingPaint
Remove debugDoingPaint setter.
2015-12-10 11:17:09 -08:00
Adam Barth
fd68f08b7c Recognize offline status in adb
Fixes #858
2015-12-10 11:16:40 -08:00
Adam Barth
f619c5cd4e Merge pull request #847 from abarth/enum_docs
Add more dartdoc
2015-12-10 11:04:11 -08:00
Hixie
3c4442cecb Remove debugDoingPaint setter.
debugDoingPaint is an internal flag and really shouldn't be globally settable.
2015-12-10 10:42:35 -08:00
Hans Muller
13baf51e2c Merge pull request #864 from HansMuller/zero_items
Support an empty PageableList

Corrected support for PagebleList when zero items or no items are specified.

Added some final qualifiers in pageable_list.dart
2015-12-10 10:23:11 -08:00
Adam Barth
0885926e29 Add more dartdoc
These docs cover some undocumented enums and some of the basic layout widgets.
2015-12-10 10:15:57 -08:00
Hans Muller
fcfcfd56d2 Support an empty PageableList 2015-12-10 10:11:54 -08:00
Adam Barth
a9f0044e29 Merge pull request #854 from floitschG/nitpicking
Minor modifs.
2015-12-10 00:20:01 -08:00
Ian Hickson
d8a3ed3efc Use hashValues instead of hard-coded hashCode getters 2015-12-09 22:10:33 -08:00
Ian Hickson
43d9766806 Merge pull request #856 from Hixie/onPopRoute
Remove last traces of onEvent.
2015-12-09 21:59:38 -08:00
Ian Hickson
928c6290e0 Remove last traces of onEvent. 2015-12-09 21:07:06 -08:00
Florian Loitsch
b5aba60147 Minor modifs. 2015-12-09 17:07:51 -08:00
Hans Muller
5ddbc03b80 Merge pull request #850 from HansMuller/reset_scroll_behavior
Fix PageableList demo

PageableList's scrollBehavior depends on its itemsWrap property.

Also: deleted some commented out code that I'd forgotten to delete.
2015-12-09 16:32:43 -08:00
Hans Muller
03e893927f Fix PageableList demo 2015-12-09 16:19:53 -08:00
krisgiesing
37f685b4ad Merge pull request #843 from krisgiesing/activity_service
Use explicit service name for activity service
2015-12-09 15:18:46 -08:00
Adam Barth
ac0aed5ae7 Merge pull request #846 from abarth/text_decoration
Update to the new TextDecoration API
2015-12-09 15:17:14 -08:00
Adam Barth
ab89d2e499 Update to the new TextDecoration API
Now with fewer lists.
2015-12-09 15:11:34 -08:00
Adam Barth
dbf6149a51 Merge pull request #848 from abarth/active_color
Let clients of Checkbox, Radio, Slider, and Switch customize the activeColor
2015-12-09 15:11:21 -08:00
Adam Barth
5f29d95018 Let clients of Checkbox, Radio, Slider, and Switch customize the activeColor
We might want to let folks customize the inactive color too, but customizing
the active color is a good place to start.
2015-12-09 14:49:32 -08:00
Hans Muller
3b3d59834e Merge pull request #820 from HansMuller/pageable_list
Revised PageableList et al

An itemExtent-computing SizeObserver is no longer needed to use PageableList. The PageableList just uses its own size as the itemExtent.

Added the itemsSnapAlignment property to PageableList which enables snapping scrolls to an adjacent item (the default), or any item boundary no not at all.

PageableList scrollOffsets now vary from 0.0 to itemCount instead of 0.0 to itemExtent * itemCount. Using logical coordinates instead of pixel coordinates means that the scroll position is insensitive to changes in the PageablList's size.

Added HomogenousPageViewport which is used by PageableList. HomogenousPageViewport scrollOffsets are defined as for PageableList.

Factored the (substantial) common parts of HomogenousViewport HomogenousPageViewport into a file private _ViewportBase class.

Removed PageableWidgetList. PageableList now just extends Scrollable. Moved PageableList into its own file.

Removed the pixel dependencies from ScrollBehavior. ScrollBehavior.createFlingSimulation() no longer sets the simulation's tolerance. The caller must do this instead.

Scrollable now uses pixelToScrollOffset() to convert from input gesture positions and velocities to scrollOffsets.

Fixes #710
2015-12-09 14:16:36 -08:00
Hans Muller
c1d42a2fde Revised PageableList 2015-12-09 14:10:14 -08:00
Kris Giesing
70ea4b2cc7 Use explicit service name for activity service 2015-12-09 13:15:54 -08:00
Adam Barth
4f22f3ecde Merge pull request #838 from abarth/cleanup_global_scope
Cleanup the global scope a bit:
2015-12-09 12:44:27 -08:00
Adam Barth
13f9e91f63 Cleanup the global scope a bit:
- Remove unused FocusChanged typedef.
- Remove unused centerOfAttentionHeroTag.
- Modernize static functions for interacting with Scrollable by moving them
  into the Scrollable class.
2015-12-09 11:12:12 -08:00
Hans Muller
b42ac4e6ab Merge pull request #824 from HansMuller/save_tabs_selection
Make the StockHome TabBar selection persistent

Fixes #671
2015-12-09 09:57:36 -08:00
Adam Barth
f58c3d2bc5 Merge pull request #836 from abarth/update_docs
Update documentation based on comments in previous patch
2015-12-09 09:49:19 -08:00
Adam Barth
5d6d258533 Update documentation based on comments in previous patch 2015-12-09 09:48:22 -08:00
Hans Muller
4eeddab959 Make the StockHome TabBar selection persistent 2015-12-09 09:17:40 -08:00
Adam Barth
8be3a4fd7a Merge pull request #832 from abarth/widget_docs
Add some more dartdoc to widgets
2015-12-09 00:03:33 -08:00
Adam Barth
36c387318a Merge pull request #831 from abarth/scroll_tolerance
Improve tolerance for ending scroll animations
2015-12-09 00:03:07 -08:00
Adam Barth
95fc98108f Improve tolerance for ending scroll animations
We had the units wrong on the tolerances. Previously we multiplied by the
device pixel ratio, which meant we got larger tolerances as we got more
resolution. Also, simplify logic in Newton for applying the tolerances.

Fixes #828
2015-12-08 23:54:43 -08:00
Adam Barth
e55858411f Add some more dartdoc to widgets 2015-12-08 23:42:34 -08:00
Adam Barth
11da9b02ab Merge pull request #830 from Hixie/BoxConstraints
Catch un-normalized BoxConstraints
2015-12-08 21:52:31 -08:00
Ian Hickson
1a049c14e5 Catch un-normalized BoxConstraints
Add BoxConstraints.isNormalized feature.

Use this feature in asserts in all the intrinsic dimension methods, in
various relevant BoxConstraints methods, and in layout().

Wrap the _DebugSize logic in BoxConstraints.constrain() in an assert
block to avoid a branch in release mode.

Remove the logic in BoxConstraints.isSatisfiedBy() that dealt with
non-normalized values.

Add BoxConstraints.normalize().

Make RenderCustomOneChildLayoutBox.performLayout() only set
parentUsesSize on the child if the constraints aren't tight.
2015-12-08 21:35:39 -08:00
Adam Barth
23ab08ad14 Merge pull request #816 from flutter/testing_updates
Update testing instructions per abarths' feedback
2015-12-08 20:12:20 -08:00
Adam Barth
d1e907f3fa Merge pull request #826 from abarth/gesture_dartdoc
Add some dartdoc for GestureDetector
2015-12-08 19:54:54 -08:00
Adam Barth
25da2cf09c Add some dartdoc for GestureDetector
... just a start.
2015-12-08 19:49:02 -08:00
Eric Seidel
2f4864efbb Merge pull request #825 from eseidelGoogle/locale_test
Add a test to stocks for changing the locale
2015-12-08 16:34:53 -08:00