This commit is contained in:
Developer
2026-04-03 03:26:06 +08:00
parent 3063deb34c
commit cba04235c8
49 changed files with 3955 additions and 1421 deletions

View File

@@ -30,7 +30,7 @@ class _CarePageState extends State<CarePage> {
backgroundColor: isDark ? const Color(0xFF121212) : Colors.white,
appBar: AppBar(
title: Text(
'关怀',
'关怀 Beta',
style: TextStyle(
color: isDark ? Colors.white : primaryColor,
fontWeight: FontWeight.bold,
@@ -183,27 +183,31 @@ class _CarePageState extends State<CarePage> {
),
),
const SizedBox(height: 16),
Row(
children: [
Expanded(
child: _buildUserTypeButton(
'儿童',
_careController.userType == '儿童',
isDark,
primaryColor,
Obx(() {
final themeController = Get.find<ThemeController>();
final currentPrimaryColor = themeController.currentThemeColor;
return Row(
children: [
Expanded(
child: _buildUserTypeButton(
'儿童',
_careController.userType == '儿童',
isDark,
currentPrimaryColor,
),
),
),
const SizedBox(width: 16),
Expanded(
child: _buildUserTypeButton(
'学生',
_careController.userType == '学生',
isDark,
primaryColor,
const SizedBox(width: 16),
Expanded(
child: _buildUserTypeButton(
'学生',
_careController.userType == '学生',
isDark,
currentPrimaryColor,
),
),
),
],
),
],
);
}),
const SizedBox(height: 16),
Container(
width: double.infinity,