getRandomBackground function

Container getRandomBackground(
  1. double height,
  2. double width
)

Implementation

Container getRandomBackground(double height, double width) {
  return Container(
    child: ClipRRect(
      borderRadius: BorderRadius.circular(16.0),
      child: Image.network(
        randomPic,
        width: width,
        height: height,
      ),
    ),
  );
}