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
+16 -1
View File
@@ -6,6 +6,7 @@ import 'target_screen.dart';
import '../widgets/bottom_nav.dart';
//import 'login_screen.dart';
import 'camera_screen.dart';
import 'spectator_screen.dart';
import 'package:shared_preferences/shared_preferences.dart';
import '../utils/translations.dart';
import '../utils/target_colors.dart';
@@ -114,11 +115,25 @@ class _HomeScreenState extends State<HomeScreen> {
automaticallyImplyLeading: false,
scrolledUnderElevation: 0, // For Material 3 (Flutter 3.7+)
actions: [
if (_selectedIndex == 1)
IconButton(
icon: const Icon(Icons.visibility_rounded, color: Colors.white),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => SpectatorScreen(
selectedLanguage: _selectedLanguage,
),
),
);
},
),
Padding(
padding: const EdgeInsets.only(right: 16.0),
child: Center(
child: Text(
'V1.0.2',
'V1.0.3',
style: TextStyle(
color: Colors.grey[400],
fontSize: 12,