Hans Muller
e09c5cfc66
Add SizedBox.fromSize() constructor ( #8144 )
2017-02-15 11:55:59 -08:00
Adam Barth
464a8e7cde
Formally deprecate Block and ScrollableViewport ( #8166 )
...
The replacements are ListView and SingleChildScrollView, respectively.
2017-02-14 21:03:55 -08:00
Ian Hickson
ae9bd5ea92
Fix the depth of scroll notifications ( #8156 )
...
Fixes https://github.com/flutter/flutter/issues/8017
2017-02-14 19:01:17 -08:00
Adam Barth
cdc0f15f27
SingleChildScrollView can assert in LayoutBuilder ( #8162 )
...
We can't read our size in the offset setter because we might be in the middle
of layout. This issue also occured with the sliver-based viewport.
2017-02-14 18:49:11 -08:00
Ian Hickson
8ecaff2906
Positioned.fromRelativeRect ( #8123 )
...
Since RelativeRect's whole purpose in life is to make work with Stack
easier, it's silly that you can't directly use it with Positioned.
Also, tests for RelativeRect.
And fixes for the bugs that found...
2017-02-14 14:34:33 -08:00
Adam Barth
14743566ca
Migrate Dropdown to ScrollConfiguration2 ( #8135 )
...
Also use the word "dropdown" consistently over "drop down".
2017-02-14 14:06:59 -08:00
Adam Barth
36f6405179
Remove OverscrollIndicator ( #8134 )
...
This feature is wired in differently in the new scrolling world.
2017-02-14 10:58:33 -08:00
Adam Barth
c2eb73498d
Formally deprecate VirtualViewport ( #8136 )
...
This mechanism has been replaced by slivers.
2017-02-14 10:24:50 -08:00
Adam Barth
fd30f63161
Replace Scrollbar with Scrollbar2 ( #8133 )
2017-02-14 08:55:16 -08:00
Hans Muller
ef004ae97d
New Heroes ( #8112 )
2017-02-14 08:20:16 -08:00
Adam Barth
a816611de1
Port remaining ScrollableViewport tests to SingleChildScrollView ( #8129 )
...
Also, rename ScrollableMetrics to ScrollMetrics, which follows the
naming convention for most of the other classes (e.g., ScrollPosition,
ScrollPhysics).
Finally, fix a bug whereby SingleChildScrollView could not have a
GlobalKey, because, write test, find bug.
2017-02-13 23:41:27 -08:00
Adam Barth
9df8b7211b
Deprecate old list-based scrolling widgets ( #8120 )
...
- MaterialList
- ScrollableList
- ScrollableLazyList
- LazyBlock
All of these widgets can be replaced by ListView now.
2017-02-13 17:45:29 -08:00
Ian Hickson
c67575703c
Improve testing of the RefreshIndicator widget. ( #8111 )
2017-02-13 16:31:20 -08:00
Adam Barth
73518545e8
Port state_setting_in_scrollables_test to Sliver-based scrolling ( #8116 )
...
Also fixes a bug when trying to update the offset of a viewport in a layout
builder.
Fixes #8054
2017-02-13 16:25:26 -08:00
Adam Barth
2a6b6ac1eb
Add some debugging aids ( #8108 )
...
I've been using these locally, but they're likely to be useful to other people
as well.
2017-02-13 15:35:48 -08:00
Adam Barth
c40b92b910
Material should unconditionally repaint on LayoutChangedNotification ( #8107 )
...
When a ListView scrolls, it generates a LayoutChangedNotification, which was
causing Material to repaint unconditionally. That's not necessary if there are
no ink effects that need to be moved. This patch skips the repaint in that
case.
Fixes #7937
2017-02-13 15:10:05 -08:00
Phil Quitslund
39f7d58b74
Escalate missing_required_param hints to warnings ( #8087 ). ( #8096 )
...
Fixes : #8087 .
2017-02-13 14:56:56 -08:00
Dan Rubel
ea74e07689
move flutter user analysis options file ( #8091 )
...
* move flutter user analysis options file
* add comments referencing each of the analysis options files
2017-02-13 16:39:35 -05:00
Adam Barth
07045c20a3
Fix cross-axis padding on reversed ListViews ( #8077 )
...
Previously the "left" padding was applied on the right when hit testing
a reversed vertical list view.
2017-02-12 12:31:00 -08:00
Adam Barth
7cde72fea2
Make remember_scroll_position_test.dart pass ( #8074 )
...
We've decided not to store the scroll position in PageStorage because
routes now maintainState by default.
Fixes #8051
2017-02-11 13:13:01 -08:00
Adam Barth
2bb94ec98a
Remove most remaining ScrollableList clients ( #8048 )
2017-02-09 23:41:14 -08:00
Ian Hickson
8d2dcc3c9a
Trivial improvements to the Drawer docs. ( #8043 )
...
Having the drawer docs lead with "this is a drawer" wasn't very
helpful when scanning.
qv. study P6.
2017-02-09 22:09:15 -08:00
Alexandre Ardhuin
00cbdb3800
prefer const constructor ( #8031 )
2017-02-09 15:18:49 -08:00
Alexandre Ardhuin
60f5cbbad2
no const contructor for GlobalKey ( #8038 )
2017-02-09 15:17:45 -08:00
Mehmet Fidanboylu
ca2c54bac2
Support changing the dismissable threshold ( #8007 )
...
* Support changing the dismissable threshold for any direction for dismissable widget.
* Fixing review comments.
2017-02-09 09:46:43 -08:00
Adam Barth
3ca921610c
Remove ScrollableGrid ( #8020 )
...
All the clients have migrated to GridView. Also, remove RenderGrid,
which isn't needed by GridView.
2017-02-08 22:08:56 -08:00
Adam Barth
311e77ab7c
Fix main stocks screen ( #8008 )
...
We weren't triggering a relayout when the number of children changed.
Fixes #8001
2017-02-08 20:40:07 -08:00
Ian Hickson
83a4cf269f
Port AppBar to Scrollable2 ( #7996 )
...
Move the back button and drawer opening logic into the app bar.
Move the tap-status-bar-to-scroll-to-top logic to using
ScrollControllers. Provide a PrimaryScrollController and a `primary`
flag on scroll views.
Make it possible to track when a route becomes or stops being poppable.
2017-02-08 18:16:19 -08:00
David Yang
8838a8fbfa
Allow for customization of hintText style in InputField ( #7942 )
...
* Allow for customization of hintText in InputField
* Adding tests.
2017-02-08 17:50:53 -08:00
Adam Barth
1ec625ffad
Remove PageableList ( #7997 )
...
All clients have moved to PageView.
2017-02-08 15:50:30 -08:00
Ian Hickson
761cf15c2b
Fix the SliverPadding debugPaint ( #7989 )
...
...for the case where there's no right or bottom padding.
2017-02-08 15:22:20 -08:00
Adam Barth
4e95701541
Switch TabBarView to PageView ( #7982 )
...
Tabs are now fully driven by slivers.
2017-02-08 14:55:18 -08:00
Adam Barth
2116f00b5f
Switch TabBar to sliver-based scrolling ( #7964 )
2017-02-08 10:34:15 -08:00
Alexandre Ardhuin
28defe5053
use const constructor ( #7968 )
2017-02-08 10:33:31 -08:00
Adam Barth
d29a94c379
Deploy Scrollable2.ensureVisible ( #7951 )
...
Also, switch Stepper over to using sliver-based scrolling.
2017-02-07 22:18:25 -08:00
Adam Barth
2eb4f2c37a
Add PageController ( #7948 )
...
This patch improves PageView to the point where we can use it in the date
picker. Specifically, you now get onPageChanged notifications and you can
control which page is visible using a PageController.
2017-02-07 15:51:41 -08:00
Adam Barth
6ddd0bb4b8
Make ensureVisible work with sliver-based viewports ( #7920 )
...
There appears to be an issue with children before the center widget.
I've filled a bug about that issue and will follow up in a later patch.
2017-02-07 15:22:18 -08:00
Hans Muller
c08bac8335
Form needs to clean up its scopedWillPopCallback ( #7936 )
2017-02-07 14:49:15 -08:00
Hans Muller
80956517e6
Additional TabController, DefaultTabController docs ( #7930 )
2017-02-07 14:32:03 -08:00
Adam Barth
06f879b57e
Add ScrollController.initialScrollOffset ( #7916 )
...
Also, move the creation of the ScrollPosition to ScrollController.
Finally, remove TestScrollable in favor of CustomScrollView, which is the
production version of this widget.
2017-02-06 22:15:36 -08:00
Adam Barth
7f2dc47094
Add ScrollController ( #7910 )
...
If you pass a ScrollController to a Scrollable2, you can use the controller to
read and write the scroll offset without having to find the Scrollable2State
object.
2017-02-06 17:09:00 -08:00
Adam Barth
2e9986614d
Use sliver-based scrolling in more places ( #7893 )
...
In particular, we now use ListView in the about dialog.
2017-02-06 16:13:48 -08:00
Adam Barth
c32fa70d9d
Add missing @required ( #7904 )
...
These arguments are actually required because we assert that they're not null.
2017-02-06 14:50:26 -08:00
Ian Hickson
e46f6e76b3
Provide more const constructors for keys. ( #7907 )
2017-02-06 14:43:11 -08:00
Adam Barth
57ee52636b
Remove old-style grid widgets ( #7898 )
...
These widget don't have any clients anymore. Consider using GridView instead.
2017-02-06 10:30:49 -08:00
Ian Hickson
b6aec82e1b
AppBar -> PersistentHeader ( #7899 )
2017-02-06 10:29:26 -08:00
Jacob Richman
53fc96da9e
Small Flutter strong mode cleanup fixes. ( #7825 )
...
* Small Flutter strong mode cleanup fixes.
These are cases where strong mode down cast composite errors
generally indicated cases that would performance or correctness
issues if Flutter code was run in a strong mode VM.
* Fix Command API so that it is always in terms of Map<String,String>.
* Fix typedef
2017-02-06 08:55:09 -08:00
Adam Barth
079db95b80
Switch DatePicker to SliverGrid ( #7890 )
...
After this patch, the old grid code is not used in the framework.
2017-02-05 22:01:16 -08:00
Adam Barth
31e2a500f7
Use sliver-based scrolling in more places ( #7892 )
...
This patch uses sliver-based two more gallery demos, the stocks example,
in the date picker, and in markdown.
2017-02-05 21:39:24 -08:00
Adam Barth
0bcecef5de
Convert ShrineHome to use CustomScrollView ( #7887 )
...
This patch converts the Shrine home page to using a sliver-based grid.
This required using a CustomScrollView to mix the block at the top with
the grid below.
2017-02-04 16:43:02 -08:00