关怀模式
This commit is contained in:
@@ -24,7 +24,7 @@ class _BeginnerPageState extends State<BeginnerPage>
|
||||
'title': '首页功能',
|
||||
'icon': Icons.home,
|
||||
'emoji': '🏠',
|
||||
'color': AppConstants.primaryColor,
|
||||
'color': Colors.blue,
|
||||
'features': [
|
||||
'精美卡片展示',
|
||||
'智能推荐:根据时间和情景推荐合适的诗词',
|
||||
@@ -271,6 +271,7 @@ class _BeginnerPageState extends State<BeginnerPage>
|
||||
Widget build(BuildContext context) {
|
||||
return Obx(() {
|
||||
final isDark = _themeController.isDarkMode;
|
||||
final primaryColor = _themeController.currentThemeColor;
|
||||
return Scaffold(
|
||||
backgroundColor: isDark ? const Color(0xFF1A1A1A) : Colors.grey[50],
|
||||
body: Stack(
|
||||
@@ -286,13 +287,13 @@ class _BeginnerPageState extends State<BeginnerPage>
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 17,
|
||||
color: AppConstants.primaryColor,
|
||||
color: primaryColor,
|
||||
),
|
||||
),
|
||||
backgroundColor: isDark
|
||||
? const Color(0xFF2A2A2A)
|
||||
: Colors.white,
|
||||
foregroundColor: AppConstants.primaryColor,
|
||||
foregroundColor: primaryColor,
|
||||
elevation: 0,
|
||||
centerTitle: true,
|
||||
floating: true,
|
||||
@@ -301,7 +302,7 @@ class _BeginnerPageState extends State<BeginnerPage>
|
||||
actions: [
|
||||
IconButton(
|
||||
icon: const Icon(Icons.help_outline),
|
||||
color: AppConstants.primaryColor,
|
||||
color: primaryColor,
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
@@ -497,7 +498,7 @@ class _BeginnerPageState extends State<BeginnerPage>
|
||||
Icon(
|
||||
Icons.visibility_outlined,
|
||||
size: 16,
|
||||
color: AppConstants.primaryColor,
|
||||
color: _themeController.currentThemeColor,
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
Text(
|
||||
@@ -505,7 +506,7 @@ class _BeginnerPageState extends State<BeginnerPage>
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppConstants.primaryColor,
|
||||
color: _themeController.currentThemeColor,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -532,13 +533,13 @@ class _BeginnerPageState extends State<BeginnerPage>
|
||||
width: 32,
|
||||
height: 32,
|
||||
decoration: BoxDecoration(
|
||||
color: AppConstants.primaryColor.withValues(alpha: 0.1),
|
||||
color: _themeController.currentThemeColor.withAlpha(10),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: Icon(
|
||||
Icons.book,
|
||||
size: 18,
|
||||
color: AppConstants.primaryColor,
|
||||
color: _themeController.currentThemeColor,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
@@ -689,7 +690,7 @@ class _BeginnerPageState extends State<BeginnerPage>
|
||||
width: 48,
|
||||
height: 48,
|
||||
decoration: BoxDecoration(
|
||||
color: AppConstants.primaryColor.withValues(alpha: 0.2),
|
||||
color: _themeController.currentThemeColor.withAlpha(20),
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
),
|
||||
child: const Center(
|
||||
@@ -760,14 +761,14 @@ class _BeginnerPageState extends State<BeginnerPage>
|
||||
color: isDark ? const Color(0xFF2A2A2A) : Colors.white,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(
|
||||
color: AppConstants.primaryColor.withValues(alpha: 0.3),
|
||||
color: _themeController.currentThemeColor.withAlpha(30),
|
||||
),
|
||||
),
|
||||
child: Text(
|
||||
text,
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
color: AppConstants.primaryColor,
|
||||
color: _themeController.currentThemeColor,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
@@ -812,7 +813,7 @@ class _BeginnerPageState extends State<BeginnerPage>
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppConstants.primaryColor,
|
||||
color: _themeController.currentThemeColor,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 2),
|
||||
@@ -873,12 +874,12 @@ class _BeginnerPageState extends State<BeginnerPage>
|
||||
width: 8,
|
||||
height: 40,
|
||||
decoration: BoxDecoration(
|
||||
color: AppConstants.primaryColor,
|
||||
color: _themeController.currentThemeColor,
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: AppConstants.primaryColor.withValues(
|
||||
alpha: 0.3,
|
||||
color: _themeController.currentThemeColor.withAlpha(
|
||||
30,
|
||||
),
|
||||
blurRadius: 8,
|
||||
offset: const Offset(0, 2),
|
||||
@@ -895,11 +896,11 @@ class _BeginnerPageState extends State<BeginnerPage>
|
||||
duration: const Duration(milliseconds: 200),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||
decoration: BoxDecoration(
|
||||
color: AppConstants.primaryColor,
|
||||
color: _themeController.currentThemeColor,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: AppConstants.primaryColor.withValues(alpha: 0.2),
|
||||
color: _themeController.currentThemeColor.withAlpha(20),
|
||||
blurRadius: 4,
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user