google preperation 1

This commit is contained in:
2026-10-26 20:48:16 +01:00
parent 9a65ff7ad4
commit 3b50cb0fe9
47 changed files with 4969 additions and 4580 deletions
+10 -9
View File
@@ -1,6 +1,7 @@
import 'dart:io';
import 'dart:typed_data';
import 'package:flutter/material.dart';
import '../theme/app_theme.dart';
import 'package:flutter/services.dart' show rootBundle;
import 'dart:convert';
import 'package:image/image.dart' as img;
@@ -85,9 +86,9 @@ class _TargetViewScreenState extends State<TargetViewScreen> {
_backgroundColor = _getBackgroundColorForTarget(selectedTarget);
}
Color _getBackgroundColorForTarget(String targetPath) {
return TargetColors.getBackgroundColor(targetPath);
}
// One source of truth for target colors (utils/target_colors.dart)
Color _getBackgroundColorForTarget(String targetPath) =>
TargetColors.getBackgroundColor(targetPath);
Future<void> _loadBulletColor() async {
final prefs = await SharedPreferences.getInstance();
@@ -708,7 +709,7 @@ class _TargetViewScreenState extends State<TargetViewScreen> {
Container(
height: 30,
decoration: BoxDecoration(
color: Colors.grey[300],
color: Surfaces.current.card,
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(16),
topRight: Radius.circular(16),
@@ -719,10 +720,10 @@ class _TargetViewScreenState extends State<TargetViewScreen> {
fit: BoxFit.scaleDown,
child: Text(
'${count}x',
style: const TextStyle(
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 14,
color: Colors.black87,
color: Surfaces.current.textPrimary,
),
),
),
@@ -801,7 +802,7 @@ class _TargetViewScreenState extends State<TargetViewScreen> {
Container(
height: 30,
decoration: BoxDecoration(
color: Colors.grey[300],
color: Surfaces.current.card,
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(16),
topRight: Radius.circular(16),
@@ -810,10 +811,10 @@ class _TargetViewScreenState extends State<TargetViewScreen> {
alignment: Alignment.center,
child: Text(
'${index + 1}',
style: const TextStyle(
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 14,
color: Colors.black87,
color: Surfaces.current.textPrimary,
),
),
),