Merge pull request #1592 from HansMuller/scrollbar

Added Painter, ScrollingListPainter, MaterialScrollbarPainter

Enabled displaying a scrollbar in ScrollingLists. The scrollbar is painted as an "overlay", i.e. it's painted on top of the scrolling list's visible children.

Added an abstract Painter base class that encapsulates a paint method and the renderer that it's attached to. RenderBlockViewport and HomogenousViewport now support an overlayPainter property. If specified, RenderBlockViewport attaches itself to the overlayPainter when it's attached to the rendering tree. RenderBlockViewport now calls overlayPainter.paint() after it has painted its children.

Added an abstract ScrollingListPainter class that exposes ScrollingList's state that might be needed for painting. Like its scroll direction and scrollOffset. The ScrollingListPainter is notified when a scroll starts and ends.

Defined a Material-specific ScrollingListPainter that renders a scrollbar. The scrollbar thumb is faded in/out when the scroll starts/ends.

Added onScrollStart and onScrollEnd listeners to Scrollable.
tree: a2b98ef122b51a990a4192db34febdbabedbcdf9
  1. base/
  2. build/
  3. examples/
  4. mojo/
  5. services/
  6. skia/
  7. sky/
  8. skysprites/
  9. testing/
  10. third_party/
  11. tools/
  12. travis/
  13. ui/
  14. url/
  15. .clang-format
  16. .gitattributes
  17. .gitignore
  18. .gn
  19. .travis.yml
  20. AUTHORS
  21. BUILD.gn
  22. CONTRIBUTING.md
  23. DEPS
  24. LICENSE
  25. README.md
README.md

Flutter

Build Status

Flutter is a new way to build high-performance, cross-platform mobile apps. Flutter is optimized for today‘s, and tomorrow’s, mobile devices. We are focused on low-latency input and high frame rates on Android and iOS.

Community

Join us on IRC at #flutter on Freenode or join our mailing list, flutter-dev@googlegroups.com.