update for preview_screen and saving

This commit is contained in:
2026-03-07 09:33:38 +01:00
parent 2ea44fab64
commit d253a9c4a3
6 changed files with 221 additions and 247 deletions
-43
View File
@@ -1,7 +1,6 @@
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'stream_screen.dart'; // Import the camera stream screen
import 'spectator_screen.dart';
import '../utils/translations.dart';
import '../utils/target_colors.dart';
@@ -143,48 +142,6 @@ class _TargetScreenState extends State<TargetScreen> {
},
),
),
const SizedBox(height: 16),
// Spectate button (spans full width, half height)
GestureDetector(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => SpectatorScreen(
selectedLanguage: _selectedLanguage,
),
),
);
},
child: Container(
height: 60,
decoration: BoxDecoration(
color: Colors.grey[900],
borderRadius: BorderRadius.circular(16),
),
padding: const EdgeInsets.all(16),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
Icons.visibility_rounded,
color: Colors.white,
size: 28,
),
const SizedBox(width: 12),
Text(
_t('Spectate'),
textAlign: TextAlign.center,
style: const TextStyle(
color: Colors.white,
fontSize: 18,
fontWeight: FontWeight.w600,
),
),
],
),
),
),
],
),
),