- 04 Mar, 2017 1 commit
-
-
Chris Bracken authored
Covers lib/ in package:flutter.
-
- 17 Feb, 2017 2 commits
-
-
Adam Barth authored
Rename all the "2" classes related to scrolling to remove the "2". Now that the old scrolling code is gone, we don't need to use the suffix.
-
Adam Barth authored
All the clients have migrated to Scrollable2.
-
- 15 Feb, 2017 2 commits
-
-
Adam Barth authored
The replacements are ListView and SingleChildScrollView, respectively.
-
Adam Barth authored
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.
-
- 09 Feb, 2017 2 commits
-
-
Adam Barth authored
All the clients have migrated to GridView. Also, remove RenderGrid, which isn't needed by GridView.
-
Ian Hickson authored
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.
-
- 08 Feb, 2017 2 commits
-
-
Adam Barth authored
All clients have moved to PageView.
-
Adam Barth authored
Tabs are now fully driven by slivers.
-
- 07 Feb, 2017 2 commits
-
-
Adam Barth authored
Also, move the creation of the ScrollPosition to ScrollController. Finally, remove TestScrollable in favor of CustomScrollView, which is the production version of this widget.
-
Adam Barth authored
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.
-
- 04 Feb, 2017 1 commit
-
-
Adam Barth authored
This patch makes Scrollable2.ensureVisible with SingleChildScrollView. A future patch will extend the implementation to work with slivers. (Although the patch does include some of the infrastructure for that part of the implementation as well.)
-
- 03 Feb, 2017 3 commits
-
-
Adam Barth authored
This patch makes a number of changes to how you can configure a Scrollable2: - The ScrollPhysics is now responsible for creating the ScrollPosition. You can override the ScrollPhysics by supplying a `physics` argument to `Scrollable`, and the new physics you supply will be applied to the default physics inherited from the ScrollBehavior. - This patch removes the ScrollPosition/AbsoluteScrollPosition split as all clients were operating in pixels anyway and the split made the code very difficult to follow. - ScrollPosition no longer depends directly on Scrollable2State. Instead, it depends on an abstract interface that Scrollable2State implements. This change has two benefits: a) It removes the circular dependency between ScrollPosition and Scrollable2State, which lets us split the code for these classes (and several other classes that got wrapped up in that cycle) into separate libraries for easier maintenance. b) ScrollPosition is no longer bound to Scrollable2, which means you could use the behavior machinery to drive other sorts of widgets. For example, we could use it to drive Scrollabe1 if we wanted.
-
Adam Barth authored
This property is wired up to anything and it isn't used. We'll need to find a better way for clients to control the scroll offset.
-
Adam Barth authored
This widget is a start towards replacing PageableList. There are still a number of features that we'll need to add before this widget can replace PageableList.
-
- 02 Feb, 2017 2 commits
-
-
Ian Hickson authored
Also, tweak Banner a bit so you can set the color and text style. Also, cache the text painter between paints.
-
Ian Hickson authored
-
- 01 Feb, 2017 1 commit
-
-
Adam Barth authored
Instead of using mixins and subclasses, we now use a `ScrollPhysics` delegate to customize the scrolling phyics for Android and iOS. This change will make it easier to customize the scroll position for paging.
-
- 27 Jan, 2017 1 commit
-
-
Adam Barth authored
This structure makes it easier to customize the viewport used in a Scrollable. Now Scrollable2 doesn't commit to using slivers.
-
- 25 Jan, 2017 1 commit
-
-
Adam Barth authored
This patch introduces ScrollView, which is a convenience widget for using a SliverBlock. This patch also switches a number of tests from Block to ScrollView. Once we support more features of block (e.g., padding and shrinkwrapping), we'll be able to move over more clients.
-
- 24 Jan, 2017 1 commit
-
-
Adam Barth authored
This widget is a replacement for ScrollableViewport that uses the new Scrollable2 machinery. The widget is not based on Slivers but does use the new scroll behavior classes.
-
- 23 Jan, 2017 1 commit
-
-
Ian Hickson authored
...now that we have generic methods, their types need to be specified too.
-
- 21 Jan, 2017 1 commit
-
-
Ian Hickson authored
-
- 19 Nov, 2016 1 commit
-
-
Ian Hickson authored
-
- 03 Nov, 2016 1 commit
-
-
Ian Hickson authored
-
- 01 Nov, 2016 1 commit
-
-
Ian Hickson authored
...until people understand them.
-
- 24 Oct, 2016 2 commits
-
-
Ian Hickson authored
-
Ian Hickson authored
Mostly around pointing people towards Block more aggressively.
-
- 21 Oct, 2016 1 commit
-
-
Ian Hickson authored
This is loosely based on the experience of usability study participant P1.
-
- 19 Oct, 2016 1 commit
-
-
Matt Perry authored
If maxLines is 1, it's a single line Input that scrolls horizontally. Otherwise, overflowed text wraps and scrolls vertically, taking up at most `maxLines`. Also fixed scrolling behavior so that the Input scrolls ensuring the cursor is always visible. Fixes https://github.com/flutter/flutter/issues/6271
-
- 17 Oct, 2016 1 commit
-
-
Adam Barth authored
Developers need to get the size of the BuildContext sufficiently often that we should provide a convenient getter for the value. Having this getter is also an opportunity to catch common mistakes and provide useful error messages that guide developers towards better patterns. Fixes #2321
-
- 14 Oct, 2016 1 commit
-
-
Matt Perry authored
* Add a maxLines parameter for multiline Input. If maxLines is 1, it's a single line Input that scrolls horizontally. Otherwise, overflowed text wraps and scrolls vertically, taking up at most `maxLines`. Also fixed scrolling behavior so that the Input scrolls ensuring the cursor is always visible. Fixes https://github.com/flutter/flutter/issues/6271 * oops * comments * import * test and RO.update fix * constant * fix.caretRect
-
- 26 Sep, 2016 1 commit
-
-
Ian Hickson authored
This requires all AnimationController objects to be given a TickerProvider, a class that can create the Ticker. It also provides some nice mixins for people who want to have their State provide a TickerProvider. And a schedulerTickerProvider for those cases where you just want to see your battery burn. Also, we now enforce destruction order for elements.
-
- 22 Sep, 2016 1 commit
-
-
Dan Rubel authored
-
- 21 Sep, 2016 1 commit
-
-
Hans Muller authored
-
- 16 Sep, 2016 1 commit
-
-
Ian Hickson authored
See #4434.
-
- 14 Sep, 2016 3 commits
-
-
Hans Muller authored
-
Hans Muller authored
-
Hans Muller authored
* Added OverscrollIndicatorEdge et al * RefreshIndicator only clamps its scrollable edge * added a test * Updated the test * fixed lint-os * fixed a typo * Scrollable should restore its viewport dimensions when it reappears * removed an accidental commit * updated per review feedback
-
- 12 Sep, 2016 1 commit
-
-
Ian Hickson authored
This allows us to simplify the logic around inherited widgets e.g. in the Image widget.
-