appLogo method
App logo widget with customizable height and width and radius
Implementation
Widget appLogo({
required double height,
required double width,
required double radius,
}) {
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(radius),
color: primaryColor,
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.5),
blurRadius: 6,
),
],
),
child: ClipRRect(
borderRadius: BorderRadius.circular(radius),
child: Image.asset(
"assets/images/logo.png",
width: width,
height: height,
fit: BoxFit.cover,
),
),
);
}