For gradient export it uses `HorizontalGradient` which doesn't exits in latest version. Can be replaced with `brush = Brush.horizontalGradient`