topLightBottomDark method

dynamic topLightBottomDark(
  1. String colorTop,
  2. String colorBottom
)

Implementation

topLightBottomDark(String colorTop, String colorBottom) {
  var _colorTop = colorTop.toColor;
  var _colorBottom = colorBottom.toColor;
  return BoxDecoration(
    gradient: LinearGradient(
      begin: Alignment.topLeft,
      end: Alignment.bottomRight,
      colors: [
        Color.fromRGBO(_colorTop.red, _colorTop.green, _colorTop.blue, 1.0),
        Color.fromRGBO(
            _colorBottom.red, _colorBottom.green, _colorBottom.blue, 1.0),
      ],
      tileMode: TileMode.repeated,
    ),
  );
}