refactor: ハードコード色をAppColorsセマンティックカラーに置換

- pending_analysis_banner: Colors.orange.* → appColors.warning(グラデーション・影・バッジ)
- activity_stats: Colors.orange → appColors.warning(残回数少ない警告色・テキスト)
- scan_screen: Colors.grey → appColors.textTertiary(蔵元/産地テキスト)
- sake_no_match_state: Colors.grey[400/600] → appColors.textTertiary(空状態アイコン・テキスト)
- camera_screen: Colors.greenAccent → appColors.success(解析開始ボタン)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ponshu Developer 2026-04-19 08:18:48 +09:00
parent e7bb4e494c
commit 2e770ff98d
5 changed files with 15 additions and 10 deletions

View File

@ -596,7 +596,7 @@ class _CameraScreenState extends ConsumerState<CameraScreen> with SingleTickerPr
IconButton( IconButton(
icon: Badge( icon: Badge(
label: Text('${capturedImages.length}'), label: Text('${capturedImages.length}'),
child: const Icon(LucideIcons.playCircle, color: Colors.greenAccent, size: 40), child: Icon(LucideIcons.playCircle, color: appColors.success, size: 40),
), ),
onPressed: analyzeImages, onPressed: analyzeImages,
tooltip: '解析を開始', tooltip: '解析を開始',

View File

@ -395,7 +395,7 @@ class _DigitalSakeCardDialog extends StatelessWidget {
const SizedBox(height: 8), const SizedBox(height: 8),
Text( Text(
'$brewery / $prefecture', '$brewery / $prefecture',
style: const TextStyle(fontSize: 14, color: Colors.grey), style: TextStyle(fontSize: 14, color: appColors.textTertiary),
), ),
const SizedBox(height: 20), const SizedBox(height: 20),

View File

@ -37,7 +37,7 @@ class ActivityStats extends ConsumerWidget {
final apiColor = isExhausted final apiColor = isExhausted
? appColors.error ? appColors.error
: isLow : isLow
? Colors.orange ? appColors.warning
: appColors.brandPrimary; : appColors.brandPrimary;
// Bento Grid: 2 // Bento Grid: 2
@ -192,7 +192,7 @@ class ActivityStats extends ConsumerWidget {
const SizedBox(height: 6), const SizedBox(height: 6),
Text( Text(
'残り$remaining回です', '残り$remaining回です',
style: const TextStyle(fontSize: 10, color: Colors.orange), style: TextStyle(fontSize: 10, color: appColors.warning),
), ),
], ],
], ],

View File

@ -2,19 +2,21 @@ import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../../providers/filter_providers.dart'; import '../../providers/filter_providers.dart';
import 'package:lucide_icons/lucide_icons.dart'; import 'package:lucide_icons/lucide_icons.dart';
import '../../theme/app_colors.dart';
class SakeNoMatchState extends ConsumerWidget { class SakeNoMatchState extends ConsumerWidget {
const SakeNoMatchState({super.key}); const SakeNoMatchState({super.key});
@override @override
Widget build(BuildContext context, WidgetRef ref) { Widget build(BuildContext context, WidgetRef ref) {
final appColors = Theme.of(context).extension<AppColors>()!;
return Center( return Center(
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Icon(LucideIcons.filterX, size: 48, color: Colors.grey[400]), Icon(LucideIcons.filterX, size: 48, color: appColors.textTertiary),
const SizedBox(height: 16), const SizedBox(height: 16),
Text('条件に一致するお酒が見つかりません', style: TextStyle(color: Colors.grey[600])), Text('条件に一致するお酒が見つかりません', style: TextStyle(color: appColors.textTertiary)),
TextButton( TextButton(
child: const Text('フィルタを解除'), child: const Text('フィルタを解除'),
onPressed: () { onPressed: () {

View File

@ -3,6 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:lucide_icons/lucide_icons.dart'; import 'package:lucide_icons/lucide_icons.dart';
import '../services/draft_service.dart'; import '../services/draft_service.dart';
import '../screens/pending_analysis_screen.dart'; import '../screens/pending_analysis_screen.dart';
import '../theme/app_colors.dart';
/// Draft /// Draft
/// ///
@ -24,19 +25,21 @@ class PendingAnalysisBanner extends ConsumerWidget {
return const SizedBox.shrink(); return const SizedBox.shrink();
} }
final appColors = Theme.of(context).extension<AppColors>()!;
return Container( return Container(
margin: const EdgeInsets.all(12), margin: const EdgeInsets.all(12),
decoration: BoxDecoration( decoration: BoxDecoration(
gradient: LinearGradient( gradient: LinearGradient(
colors: [ colors: [
Colors.orange.shade600, appColors.warning,
Colors.orange.shade400, appColors.warning.withValues(alpha: 0.85),
], ],
), ),
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
color: Colors.orange.withValues(alpha: 0.3), color: appColors.warning.withValues(alpha: 0.3),
blurRadius: 8, blurRadius: 8,
offset: const Offset(0, 2), offset: const Offset(0, 2),
), ),
@ -98,7 +101,7 @@ class PendingAnalysisBanner extends ConsumerWidget {
child: Text( child: Text(
'$pendingCount件', '$pendingCount件',
style: TextStyle( style: TextStyle(
color: Colors.orange.shade700, color: appColors.warning,
fontSize: 14, fontSize: 14,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),