theme top-level property
Implementation
final Map theme = {
"pink": {
"themeColor": Color(0xFFCD3F49), // 粉红色 pink
"themeOppositeColor": Colors.white,
},
"purple": {
"themeColor": Colors.purple, // 紫色 purple
"themeOppositeColor": Colors.white,
},
"blue": {
"themeColor": Colors.blue, // 蓝色 blue
"themeOppositeColor": Colors.white,
},
"black": {
"themeColor": Color(0xFF222222), // 黑色 black,
"themeOppositeColor": Colors.white,
},
"white": {
"themeColor": Colors.white, // 白色 white,
"themeOppositeColor": Color(0xFF222222),
},
"transparent_whiteText": {
"themeColor": Colors.transparent, // 透明色 transparent,
"themeOppositeColor": Color(0xFF222222),
},
};