• Hans Muller's avatar
    Added Painter, ScrollingListPainter, MaterialScrollbarPainter · 921d4320
    Hans Muller authored
    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 which 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.
    921d4320
Name
Last commit
Last update
..
address_book Loading commit data...
fitness Loading commit data...
game Loading commit data...
hello_world Loading commit data...
mine_digger Loading commit data...
raw Loading commit data...
rendering Loading commit data...
stocks Loading commit data...
widgets Loading commit data...
BUILD.gn Loading commit data...
README.md Loading commit data...