dressingSuggestion property
String
get
dressingSuggestion
获取穿衣建议
Implementation
String get dressingSuggestion {
if (temperature >= 28) {
return '天气炎热,建议穿着轻薄透气的衣物';
} else if (temperature >= 23) {
return '天气温暖舒适,适合短袖或薄外套';
} else if (temperature >= 18) {
return '温度适中,建议穿长袖衬衫或薄毛衣';
} else if (temperature >= 10) {
return '天气微凉,建议加件外套或薄夹克';
} else if (temperature >= 0) {
return '天气寒冷,需要穿厚外套保暖';
} else {
return '严寒天气,建议穿羽绒服等保暖衣物';
}
}