bottom_line static method

BoxDecoration bottom_line({
  1. double radiusSize = 10,
  2. Color colorBackground = Colors.green,
  3. double widthLine = 5,
  4. Color colorLine = Colors.red,
})

Implementation

static BoxDecoration bottom_line( {
  double radiusSize = 10 ,
  Color colorBackground = Colors.green,
  double widthLine = 5 ,
  Color colorLine = Colors.red,
}) {


  //radius
  var objRadius = Radius.circular(radiusSize);
  var radius = BorderRadius.only( bottomLeft: objRadius, bottomRight:  objRadius  );

  //shadow
  var s1 = BoxShadow(
      color: colorLine,
      blurRadius: radiusSize,
      offset: Offset(0,widthLine),
      blurStyle: BlurStyle.inner
  );
  List<BoxShadow> listShadow = [];
  listShadow.add(s1);

  //box
  var box = BoxDecoration(
      boxShadow:  listShadow,
      borderRadius: radius ,
      color: colorBackground
  );
  return box;
}