关怀模式
This commit is contained in:
@@ -19,6 +19,7 @@ class LearnUsPage extends StatelessWidget {
|
||||
|
||||
return Obx(() {
|
||||
final isDark = themeController.isDarkMode;
|
||||
final primaryColor = themeController.currentThemeColor;
|
||||
return Scaffold(
|
||||
backgroundColor: isDark
|
||||
? const Color(0xFF1A1A1A)
|
||||
@@ -26,16 +27,13 @@ class LearnUsPage extends StatelessWidget {
|
||||
appBar: AppBar(
|
||||
title: Text(
|
||||
'了解我们',
|
||||
style: TextStyle(
|
||||
color: AppConstants.primaryColor,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
style: TextStyle(color: primaryColor, fontWeight: FontWeight.bold),
|
||||
),
|
||||
backgroundColor: isDark ? const Color(0xFF2A2A2A) : Colors.white,
|
||||
elevation: 0,
|
||||
centerTitle: true,
|
||||
leading: IconButton(
|
||||
icon: Icon(Icons.arrow_back, color: AppConstants.primaryColor),
|
||||
icon: Icon(Icons.arrow_back, color: primaryColor),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
),
|
||||
),
|
||||
@@ -62,14 +60,16 @@ class LearnUsPage extends StatelessWidget {
|
||||
}
|
||||
|
||||
Widget _buildHeaderCard() {
|
||||
final themeController = Get.find<ThemeController>();
|
||||
final primaryColor = themeController.currentThemeColor;
|
||||
return Container(
|
||||
padding: const EdgeInsets.all(24),
|
||||
decoration: BoxDecoration(
|
||||
gradient: const LinearGradient(
|
||||
gradient: LinearGradient(
|
||||
colors: [
|
||||
Color.fromARGB(255, 143, 73, 228),
|
||||
Color(0xFF6200EE),
|
||||
Color(0xFF3700B3),
|
||||
primaryColor.withAlpha(200),
|
||||
primaryColor,
|
||||
primaryColor.withAlpha(150),
|
||||
],
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
@@ -77,7 +77,7 @@ class LearnUsPage extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: AppConstants.primaryColor.withValues(alpha: 0.3),
|
||||
color: primaryColor.withAlpha(30),
|
||||
blurRadius: 12,
|
||||
offset: const Offset(0, 4),
|
||||
),
|
||||
@@ -155,6 +155,8 @@ class LearnUsPage extends StatelessWidget {
|
||||
}
|
||||
|
||||
Widget _buildOfficialSiteCard(bool isDark) {
|
||||
final themeController = Get.find<ThemeController>();
|
||||
final primaryColor = themeController.currentThemeColor;
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
color: isDark ? const Color(0xFF2A2A2A) : Colors.white,
|
||||
@@ -162,8 +164,8 @@ class LearnUsPage extends StatelessWidget {
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: isDark
|
||||
? Colors.black.withValues(alpha: 0.3)
|
||||
: Colors.black.withValues(alpha: 0.05),
|
||||
? Colors.black.withAlpha(30)
|
||||
: Colors.black.withAlpha(5),
|
||||
blurRadius: 10,
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
@@ -179,14 +181,10 @@ class LearnUsPage extends StatelessWidget {
|
||||
Container(
|
||||
padding: const EdgeInsets.all(8),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.blue.withValues(alpha: 0.1),
|
||||
color: primaryColor.withAlpha(10),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: Icon(
|
||||
Icons.language,
|
||||
color: Colors.blue[700],
|
||||
size: 20,
|
||||
),
|
||||
child: Icon(Icons.language, color: primaryColor, size: 20),
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
Text(
|
||||
@@ -222,25 +220,18 @@ class LearnUsPage extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
border: Border.all(
|
||||
color: isDark
|
||||
? Colors.grey[700]!.withValues(alpha: 0.2)
|
||||
: Colors.grey.withValues(alpha: 0.2),
|
||||
? Colors.grey[700]!.withAlpha(20)
|
||||
: Colors.grey.withAlpha(20),
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
Icons.link,
|
||||
size: 16,
|
||||
color: AppConstants.primaryColor,
|
||||
),
|
||||
Icon(Icons.link, size: 16, color: primaryColor),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'https://poe.vogov.cn/app.html',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: AppConstants.primaryColor,
|
||||
),
|
||||
style: TextStyle(fontSize: 14, color: primaryColor),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -255,6 +246,8 @@ class LearnUsPage extends StatelessWidget {
|
||||
}
|
||||
|
||||
Widget _buildQQGroupCard(BuildContext context, bool isDark) {
|
||||
final themeController = Get.find<ThemeController>();
|
||||
final primaryColor = themeController.currentThemeColor;
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
color: isDark ? const Color(0xFF2A2A2A) : Colors.white,
|
||||
@@ -262,8 +255,8 @@ class LearnUsPage extends StatelessWidget {
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: isDark
|
||||
? Colors.black.withValues(alpha: 0.3)
|
||||
: Colors.black.withValues(alpha: 0.05),
|
||||
? Colors.black.withAlpha(30)
|
||||
: Colors.black.withAlpha(5),
|
||||
blurRadius: 10,
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
@@ -279,10 +272,10 @@ class LearnUsPage extends StatelessWidget {
|
||||
Container(
|
||||
padding: const EdgeInsets.all(8),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.blue.withValues(alpha: 0.1),
|
||||
color: primaryColor.withAlpha(10),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: Icon(Icons.group, color: Colors.blue[700], size: 20),
|
||||
child: Icon(Icons.group, color: primaryColor, size: 20),
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
Text(
|
||||
@@ -319,25 +312,19 @@ class LearnUsPage extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
color: isDark ? const Color(0xFF3A3A3A) : Colors.grey[50],
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
border: Border.all(
|
||||
color: AppConstants.primaryColor.withValues(alpha: 0.3),
|
||||
),
|
||||
border: Border.all(color: primaryColor.withAlpha(30)),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(
|
||||
Icons.content_copy,
|
||||
size: 16,
|
||||
color: AppConstants.primaryColor,
|
||||
),
|
||||
Icon(Icons.content_copy, size: 16, color: primaryColor),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
'271129018',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppConstants.primaryColor,
|
||||
color: primaryColor,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -361,6 +348,8 @@ class LearnUsPage extends StatelessWidget {
|
||||
}
|
||||
|
||||
void _copyQQGroupNumber(BuildContext context) {
|
||||
final themeController = Get.find<ThemeController>();
|
||||
final primaryColor = themeController.currentThemeColor;
|
||||
Clipboard.setData(const ClipboardData(text: '271129018'));
|
||||
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
@@ -372,7 +361,7 @@ class LearnUsPage extends StatelessWidget {
|
||||
Text('QQ群号已复制到剪贴板'),
|
||||
],
|
||||
),
|
||||
backgroundColor: AppConstants.primaryColor,
|
||||
backgroundColor: primaryColor,
|
||||
behavior: SnackBarBehavior.floating,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
|
||||
duration: const Duration(seconds: 2),
|
||||
@@ -381,6 +370,8 @@ class LearnUsPage extends StatelessWidget {
|
||||
}
|
||||
|
||||
Widget _buildDeveloperCard(BuildContext context, bool isDark) {
|
||||
final themeController = Get.find<ThemeController>();
|
||||
final primaryColor = themeController.currentThemeColor;
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
color: isDark ? const Color(0xFF2A2A2A) : Colors.white,
|
||||
@@ -388,8 +379,8 @@ class LearnUsPage extends StatelessWidget {
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: isDark
|
||||
? Colors.black.withValues(alpha: 0.3)
|
||||
: Colors.black.withValues(alpha: 0.05),
|
||||
? Colors.black.withAlpha(30)
|
||||
: Colors.black.withAlpha(5),
|
||||
blurRadius: 10,
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
@@ -405,14 +396,10 @@ class LearnUsPage extends StatelessWidget {
|
||||
Container(
|
||||
padding: const EdgeInsets.all(8),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.green.withValues(alpha: 0.1),
|
||||
color: primaryColor.withAlpha(10),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: Icon(
|
||||
Icons.business,
|
||||
color: Colors.green[700],
|
||||
size: 20,
|
||||
),
|
||||
child: Icon(Icons.business, color: primaryColor, size: 20),
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
Text(
|
||||
@@ -437,8 +424,8 @@ class LearnUsPage extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
colors: [
|
||||
AppConstants.primaryColor.withValues(alpha: 0.1),
|
||||
AppConstants.primaryColor.withValues(alpha: 0.05),
|
||||
primaryColor.withAlpha(10),
|
||||
primaryColor.withAlpha(5),
|
||||
],
|
||||
),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
@@ -666,7 +653,7 @@ class LearnUsPage extends StatelessWidget {
|
||||
'尽毕生所学,取天下之诗集,只为逗她一笑',
|
||||
isDark,
|
||||
),
|
||||
_buildTeamMember('🎨', 'UI/UX/Testing', 'Ayk', '....', isDark),
|
||||
_buildTeamMember('🎨', 'UI/UX/Testing', 'Ayk', '姥头乐也疯狂', isDark),
|
||||
_buildTeamMember('⚙️', '后端', '伯乐不相马', '真的吗,还是做不到吗?', isDark),
|
||||
_buildTeamMember('🔧', '技术支持', '闲言app', '闲言app原班人马打造', isDark),
|
||||
],
|
||||
@@ -681,6 +668,8 @@ class LearnUsPage extends StatelessWidget {
|
||||
String signature,
|
||||
bool isDark,
|
||||
) {
|
||||
final themeController = Get.find<ThemeController>();
|
||||
final primaryColor = themeController.currentThemeColor;
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
|
||||
child: Row(
|
||||
@@ -718,15 +707,12 @@ class LearnUsPage extends StatelessWidget {
|
||||
vertical: 2,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: AppConstants.primaryColor.withValues(alpha: 0.1),
|
||||
color: primaryColor.withAlpha(10),
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
child: Text(
|
||||
name,
|
||||
style: TextStyle(
|
||||
fontSize: 11,
|
||||
color: AppConstants.primaryColor,
|
||||
),
|
||||
style: TextStyle(fontSize: 11, color: primaryColor),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -814,7 +800,7 @@ class LearnUsPage extends StatelessWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
'滇ICP备2022000863号-13',
|
||||
'滇ICP备2022000863号-15A',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: isDark ? Colors.grey[300] : Colors.grey[700],
|
||||
|
||||
Reference in New Issue
Block a user