getTextStyle function
dynamic
getTextStyle(
- TagType tagType
)
Implementation
getTextStyle(TagType tagType) {
switch (tagType) {
case TagType.done:
return const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
color: Colors.green,
);
case TagType.inProgress:
return const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
color: Colors.blue,
);
case TagType.delayed:
return const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
color: Colors.red,
);
default:
return const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
color: Colors.black,
);
}
}