Implementation
RichText get reportCardContent {
String action = "";
// switch (report_screen.action) {
// case 1:
// action = "반추시간";
// break;
// case 2:
// action = "포유시간";
// break;
// case 3:
// action = "기침시간";
// break;
// case 4:
// action = "앉은시간";
// break;
// case 5:
// action = "서있는시간";
// break;
// default:
// action = "";
// break;
// }
return RichText(
text: TextSpan(
text: "$action이 ",
style: TextStyle(fontWeight: FontWeight.w500, fontSize: 15, color: Colors.black),
children: [
// report.state == 1 ? TextSpan(text: "증가", style: TextStyle(color: Colors.blue)) : TextSpan(text: "감소", style: TextStyle(color: Colors.red)),
TextSpan(text: "증가", style: TextStyle(color: Colors.blue)),
TextSpan(text: "하고 있습니다."),
],
),
);
}