docs(theme): update documentation and clean up deprecated color scheme definitions
Removed outdated compatibility aliases and deprecated methods from AppColorScheme, and updated CLAUDE.md to reflect new theme system requirements with centralized color management and no hard-coded values in UI components.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:shadcn_ui/shadcn_ui.dart';
|
||||
import '../../../core/theme/app_color_scheme.dart';
|
||||
import '../../../core/theme/app_spacing.dart';
|
||||
import '../../../core/theme/app_theme.dart';
|
||||
import '../../../providers/asset_provider.dart';
|
||||
import '../../../providers/market_provider.dart';
|
||||
import '../home/home_page.dart';
|
||||
@@ -148,7 +150,7 @@ class _BottomNavBar extends StatelessWidget {
|
||||
borderRadius: BorderRadius.vertical(top: Radius.circular(AppRadius.xxl + AppSpacing.sm)),
|
||||
border: Border(
|
||||
top: BorderSide(
|
||||
color: colorScheme.outlineVariant.withOpacity(0.15),
|
||||
color: colorScheme.outlineVariant.withValues(alpha: 0.15),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -196,8 +198,8 @@ class _NavItemWidget extends StatelessWidget {
|
||||
padding: EdgeInsets.symmetric(horizontal: AppSpacing.md, vertical: AppSpacing.sm),
|
||||
decoration: isSelected
|
||||
? BoxDecoration(
|
||||
color: colorScheme.primary.withOpacity(0.1),
|
||||
borderRadius: BorderRadius.circular(AppSpacing.md),
|
||||
color: colorScheme.primary.withValues(alpha: 0.1),
|
||||
borderRadius: AppRadius.radiusMd,
|
||||
)
|
||||
: null,
|
||||
child: Column(
|
||||
@@ -211,9 +213,8 @@ class _NavItemWidget extends StatelessWidget {
|
||||
SizedBox(height: AppSpacing.xs),
|
||||
Text(
|
||||
item.label,
|
||||
style: TextStyle(
|
||||
style: AppTextStyles.bodyMedium(context).copyWith(
|
||||
color: color,
|
||||
fontSize: 12,
|
||||
fontWeight: isSelected ? FontWeight.w600 : FontWeight.normal,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user