• Ian Hickson's avatar
    Make BoxDecoration replaceable. · 2afa87df
    Ian Hickson authored
    Factor out a reusable interface called Decoration from BoxDecoration.
    
    Make all the consumers of BoxDecoration and the erstwhile BoxPainter
    into consumers of Decoration.
    
    Make a BoxPainter be something you get from a Decoration, rather than
    something to which you pass a BoxDecoration.
    
    Rename Shape to BoxShape now that it's documented specifically as
    applying to boxes.
    
    Move EdgeDims to its own file.
    
    Move FractionalOffset up so that it's with the other helper classes in
    its file rather than alone at the end.
    
    Minor change to RenderClipOval's hit testing to avoid taking an
    unnecessary square root.
    
    Rename BoxDecorationPosition to DecorationPosition since
    RenderDecoratedBox now takes any Decoration.
    
    Implement hit testing for rounded rects.
    
    Rename AnimatedBoxDecorationValue to AnimatedDecorationValue, and make
    it support lerping across any Decoration (by deferring to the objects
    involved).
    2afa87df
circle_avatar.dart 1.15 KB