• liyuqian's avatar
    Support clipBehavior changes in hot reload (#31761) · 7cab6d5e
    liyuqian authored
    ## Description
    
    Make `_RenderCustomClip`'s `clipBehavior` non-final so we can update it during `updateRenderObject`. This will support `clipBehavior` changes in hot reload.
    
    ## Related Issues
    
    Fixes #30863
    
    ## Tests
    
    I added the following tests:
    
    * ClipRect updates clipBehavior in updateRenderObject
    * ClipRRect updates clipBehavior in updateRenderObject
    * ClipOval updates clipBehavior in updateRenderObject
    * ClipPath updates clipBehavior in updateRenderObject
    * PhysicalModel updates clipBehavior in updateRenderObject
    * PhysicalShape updates clipBehavior in updateRenderObject
    7cab6d5e
proxy_box.dart 157 KB