studentDetailTile method
Implementation
Expanded studentDetailTile({required IconData icon,
required Color iconColor,
double? iconSize,
required String title,
double? titleSize,
Color? titleColor,
required String value,
Color? valueColor,
double? valueSize}) {
return Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Icon(
icon,
color: iconColor,
size: NumberConst.REGULAR_FONT_SIZE,
),
SizedBox(
width: 2.w,
),
GNMediumTextWidget(
title: title,
fontsize: NumberConst.REGULAR_FONT_SIZE,
fontcolor: titleColor ?? iconColor,
)
],
),
SizedBox(
height: 0.5.h,
),
GNBoldTextWidget(
title: value == "null" || value == null || value == "" ? StringConst.DASH : value,
fontcolor: valueColor,
fontsize: valueSize,
)
],
),
);
}