stage2
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
analyzer:
|
||||||
|
exclude:
|
||||||
|
- build/**
|
||||||
|
- android/**
|
||||||
|
- ios/**
|
||||||
|
- linux/**
|
||||||
|
include: package:flutter_lints/flutter.yaml
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
||||||
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
|
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
|
||||||
@@ -8,6 +9,8 @@
|
|||||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
|
||||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
||||||
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>
|
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>
|
||||||
|
<!-- Added by the camera plugin; the app only takes photos (enableAudio: false) -->
|
||||||
|
<uses-permission android:name="android.permission.RECORD_AUDIO" tools:node="remove"/>
|
||||||
|
|
||||||
|
|
||||||
<application
|
<application
|
||||||
@@ -21,8 +24,6 @@
|
|||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
uses-cleartext-traffic="true"
|
|
||||||
android:usesCleartextTraffic="true"
|
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:launchMode="singleTop"
|
android:launchMode="singleTop"
|
||||||
android:taskAffinity=""
|
android:taskAffinity=""
|
||||||
|
|||||||
@@ -12,6 +12,32 @@ subprojects {
|
|||||||
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
|
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
|
||||||
project.layout.buildDirectory.value(newSubprojectBuildDir)
|
project.layout.buildDirectory.value(newSubprojectBuildDir)
|
||||||
}
|
}
|
||||||
|
// Plugins such as tflite_flutter set a Java target but no Kotlin target, so on a
|
||||||
|
// newer JDK Kotlin picks a default that fails Gradle's JVM target validation.
|
||||||
|
// Keep each module's Kotlin target in line with its own Java target.
|
||||||
|
subprojects {
|
||||||
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
|
||||||
|
val javaTaskName = name.replace("Kotlin", "JavaWithJavac")
|
||||||
|
val projectTasks = project.tasks
|
||||||
|
compilerOptions.jvmTarget.set(
|
||||||
|
project.provider {
|
||||||
|
(projectTasks.findByName(javaTaskName) as? JavaCompile)
|
||||||
|
?.targetCompatibility
|
||||||
|
?.let { org.jetbrains.kotlin.gradle.dsl.JvmTarget.fromTarget(it) }
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Older plugins such as tflite_flutter pin a low compileSdk, which fails the AAR
|
||||||
|
// metadata check against current AndroidX. compileSdk only affects which APIs a
|
||||||
|
// module compiles against, not runtime behavior, so raise it for those modules.
|
||||||
|
subprojects {
|
||||||
|
afterEvaluate {
|
||||||
|
extensions.findByType<com.android.build.gradle.LibraryExtension>()?.let { android ->
|
||||||
|
if ((android.compileSdk ?: 0) < 36) android.compileSdk = 36
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
subprojects {
|
subprojects {
|
||||||
project.evaluationDependsOn(":app")
|
project.evaluationDependsOn(":app")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
|
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
android.enableJetifier=true
|
android.enableJetifier=true
|
||||||
|
# This builtInKotlin flag was added automatically by Flutter migrator
|
||||||
|
android.builtInKotlin=false
|
||||||
|
# This newDsl flag was added automatically by Flutter migrator
|
||||||
|
android.newDsl=false
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
|
|||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-all.zip
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ pluginManagement {
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
|
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
|
||||||
id("com.android.application") version "8.7.0" apply false
|
id("com.android.application") version "8.13.0" apply false
|
||||||
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
|
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
include(":app")
|
include(":app")
|
||||||
|
|||||||
+114
-29
@@ -1,6 +1,7 @@
|
|||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:intl/intl.dart';
|
import 'package:intl/intl.dart';
|
||||||
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
import '../services/app_settings.dart';
|
import '../services/app_settings.dart';
|
||||||
import '../services/target_repository.dart';
|
import '../services/target_repository.dart';
|
||||||
import '../theme/app_theme.dart';
|
import '../theme/app_theme.dart';
|
||||||
@@ -44,7 +45,60 @@ class _BookScreenState extends State<BookScreen> with WidgetsBindingObserver {
|
|||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
WidgetsBinding.instance.addObserver(this);
|
WidgetsBinding.instance.addObserver(this);
|
||||||
_load();
|
_restoreSettings().then((_) => _load());
|
||||||
|
}
|
||||||
|
|
||||||
|
// The view settings survive leaving the screen and restarting the app.
|
||||||
|
// Which month the graph is scrolled to is not a setting: it opens on the latest.
|
||||||
|
static const _prefix = 'book.';
|
||||||
|
|
||||||
|
Future<void> _restoreSettings() async {
|
||||||
|
final p = await SharedPreferences.getInstance();
|
||||||
|
T pick<T extends Enum>(List<T> values, String key, T fallback) {
|
||||||
|
final i = p.getInt(_prefix + key);
|
||||||
|
return i != null && i >= 0 && i < values.length ? values[i] : fallback;
|
||||||
|
}
|
||||||
|
|
||||||
|
final start = p.getInt('${_prefix}customStart');
|
||||||
|
final end = p.getInt('${_prefix}customEnd');
|
||||||
|
if (!mounted) return;
|
||||||
|
setState(() {
|
||||||
|
_filter = pick(_Filter.values, 'filter', _filter);
|
||||||
|
_period = pick(_Period.values, 'period', _period);
|
||||||
|
_shots = p.getInt('${_prefix}shots');
|
||||||
|
_sortByScore = p.getBool('${_prefix}sortByScore') ?? _sortByScore;
|
||||||
|
_chartByYear = p.getBool('${_prefix}chartByYear') ?? _chartByYear;
|
||||||
|
if (start != null && end != null) {
|
||||||
|
_custom = DateTimeRange(
|
||||||
|
start: DateTime.fromMillisecondsSinceEpoch(start),
|
||||||
|
end: DateTime.fromMillisecondsSinceEpoch(end));
|
||||||
|
}
|
||||||
|
// A custom period without its range can't be shown
|
||||||
|
if (_period == _Period.custom && _custom == null) _period = _Period.year;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> _saveSettings() async {
|
||||||
|
final p = await SharedPreferences.getInstance();
|
||||||
|
await p.setInt('${_prefix}filter', _filter.index);
|
||||||
|
await p.setInt('${_prefix}period', _period.index);
|
||||||
|
if (_shots == null) {
|
||||||
|
await p.remove('${_prefix}shots');
|
||||||
|
} else {
|
||||||
|
await p.setInt('${_prefix}shots', _shots!);
|
||||||
|
}
|
||||||
|
await p.setBool('${_prefix}sortByScore', _sortByScore);
|
||||||
|
await p.setBool('${_prefix}chartByYear', _chartByYear);
|
||||||
|
if (_custom != null) {
|
||||||
|
await p.setInt('${_prefix}customStart', _custom!.start.millisecondsSinceEpoch);
|
||||||
|
await p.setInt('${_prefix}customEnd', _custom!.end.millisecondsSinceEpoch);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// setState for a view setting, then remember it
|
||||||
|
void _change(VoidCallback update) {
|
||||||
|
setState(update);
|
||||||
|
_saveSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -124,7 +178,7 @@ class _BookScreenState extends State<BookScreen> with WidgetsBindingObserver {
|
|||||||
if (picked == null) return;
|
if (picked == null) return;
|
||||||
_custom = picked;
|
_custom = picked;
|
||||||
}
|
}
|
||||||
setState(() {
|
_change(() {
|
||||||
_period = p;
|
_period = p;
|
||||||
_shots = null;
|
_shots = null;
|
||||||
});
|
});
|
||||||
@@ -260,7 +314,7 @@ class _BookScreenState extends State<BookScreen> with WidgetsBindingObserver {
|
|||||||
BarTab(s.t('Tournaments'), Icons.emoji_events_rounded),
|
BarTab(s.t('Tournaments'), Icons.emoji_events_rounded),
|
||||||
],
|
],
|
||||||
selected: _filter.index,
|
selected: _filter.index,
|
||||||
onSelect: (i) => setState(() {
|
onSelect: (i) => _change(() {
|
||||||
_filter = _Filter.values[i];
|
_filter = _Filter.values[i];
|
||||||
_shots = null;
|
_shots = null;
|
||||||
_chartAt = null;
|
_chartAt = null;
|
||||||
@@ -293,7 +347,7 @@ class _BookScreenState extends State<BookScreen> with WidgetsBindingObserver {
|
|||||||
selected: n == selected,
|
selected: n == selected,
|
||||||
empty: !formats.contains(n),
|
empty: !formats.contains(n),
|
||||||
onTap: formats.contains(n)
|
onTap: formats.contains(n)
|
||||||
? () => setState(() => _shots = n)
|
? () => _change(() => _shots = n)
|
||||||
: null),
|
: null),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -533,7 +587,7 @@ class _BookScreenState extends State<BookScreen> with WidgetsBindingObserver {
|
|||||||
labels: [s.t('Month'), s.t('Year')],
|
labels: [s.t('Month'), s.t('Year')],
|
||||||
selected: _chartByYear ? 1 : 0,
|
selected: _chartByYear ? 1 : 0,
|
||||||
color: s.bulletColor,
|
color: s.bulletColor,
|
||||||
onSelect: (i) => setState(() {
|
onSelect: (i) => _change(() {
|
||||||
_chartByYear = i == 1;
|
_chartByYear = i == 1;
|
||||||
_chartAt = at;
|
_chartAt = at;
|
||||||
}),
|
}),
|
||||||
@@ -624,14 +678,15 @@ class _BookScreenState extends State<BookScreen> with WidgetsBindingObserver {
|
|||||||
icon: Icon(
|
icon: Icon(
|
||||||
_sortByScore ? Icons.leaderboard_rounded : Icons.event_rounded,
|
_sortByScore ? Icons.leaderboard_rounded : Icons.event_rounded,
|
||||||
color: surf.textSecondary),
|
color: surf.textSecondary),
|
||||||
onPressed: () => setState(() => _sortByScore = !_sortByScore),
|
onPressed: () => _change(() => _sortByScore = !_sortByScore),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Date block left; average per shot right, with how far it is from [average].
|
// Date block left; points (Skupek) and average per shot right, the average
|
||||||
|
// with how far it is from [average].
|
||||||
// Tap shows this session's targets on one target; long press opens details.
|
// Tap shows this session's targets on one target; long press opens details.
|
||||||
Widget _sessionCard(Session session, double? average) {
|
Widget _sessionCard(Session session, double? average) {
|
||||||
final s = AppSettings.instance;
|
final s = AppSettings.instance;
|
||||||
@@ -683,7 +738,7 @@ class _BookScreenState extends State<BookScreen> with WidgetsBindingObserver {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 3),
|
const SizedBox(height: 3),
|
||||||
Text(
|
Text(
|
||||||
'${targetCount(session.targets.length)} · ${s.t('Total').toLowerCase()} ${session.totalScore}',
|
targetCount(session.targets.length),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12, color: surf.textSecondary),
|
fontSize: 12, color: surf.textSecondary),
|
||||||
),
|
),
|
||||||
@@ -691,27 +746,14 @@ class _BookScreenState extends State<BookScreen> with WidgetsBindingObserver {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
_CardFigure(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 10),
|
label: s.t('Sum'), value: '${session.totalScore}'),
|
||||||
child: Column(
|
const SizedBox(width: 14),
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
_CardFigure(
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
label: s.t('Average'),
|
||||||
children: [
|
value: avg?.toStringAsFixed(2) ?? '–',
|
||||||
Text(
|
note: delta == null ? null : _signed(delta),
|
||||||
avg?.toStringAsFixed(2) ?? '–',
|
noteColor: delta == null ? null : _deltaColor(delta),
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 20,
|
|
||||||
fontWeight: FontWeight.w800,
|
|
||||||
color: surf.textPrimary),
|
|
||||||
),
|
|
||||||
if (delta != null)
|
|
||||||
Text(_signed(delta),
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 12,
|
|
||||||
fontWeight: FontWeight.w700,
|
|
||||||
color: _deltaColor(delta))),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
tooltip: s.t('Details'),
|
tooltip: s.t('Details'),
|
||||||
@@ -1015,6 +1057,49 @@ class _Toggle extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// One figure on a history card: small uppercase label over a bold number,
|
||||||
|
/// with an optional coloured note underneath.
|
||||||
|
class _CardFigure extends StatelessWidget {
|
||||||
|
final String label;
|
||||||
|
final String value;
|
||||||
|
final String? note;
|
||||||
|
final Color? noteColor;
|
||||||
|
|
||||||
|
const _CardFigure(
|
||||||
|
{required this.label, required this.value, this.note, this.noteColor});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
final surf = Surfaces.current;
|
||||||
|
return Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(vertical: 10),
|
||||||
|
child: Column(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
|
children: [
|
||||||
|
Text(label.toUpperCase(),
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 9,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
letterSpacing: 1,
|
||||||
|
color: surf.textSecondary)),
|
||||||
|
Text(value,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 20,
|
||||||
|
fontWeight: FontWeight.w800,
|
||||||
|
color: surf.textPrimary)),
|
||||||
|
if (note != null)
|
||||||
|
Text(note!,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 12,
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
color: noteColor)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Small pill on the dark bar: white when selected, outlined otherwise.
|
/// Small pill on the dark bar: white when selected, outlined otherwise.
|
||||||
class _BarPill extends StatelessWidget {
|
class _BarPill extends StatelessWidget {
|
||||||
final String label;
|
final String label;
|
||||||
|
|||||||
@@ -490,8 +490,9 @@ class _CalendarScreenState extends State<CalendarScreen> {
|
|||||||
|
|
||||||
String _timeText(CalendarEvent event) {
|
String _timeText(CalendarEvent event) {
|
||||||
final startTime = event.startTime;
|
final startTime = event.startTime;
|
||||||
if (event.isAllDay || startTime == null || event.endTime == null)
|
if (event.isAllDay || startTime == null || event.endTime == null) {
|
||||||
return _t('All day');
|
return _t('All day');
|
||||||
|
}
|
||||||
return '${DateFormat('HH:mm').format(startTime.toLocal())} – ${DateFormat('HH:mm').format(event.endTime!.toLocal())}';
|
return '${DateFormat('HH:mm').format(startTime.toLocal())} – ${DateFormat('HH:mm').format(event.endTime!.toLocal())}';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ class _CameraScreenState extends State<CameraScreen> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print('Error taking picture: $e');
|
debugPrint('Error taking picture: $e');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+17
-232
@@ -12,89 +12,6 @@ import 'dart:math';
|
|||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
import '../utils/translations.dart';
|
import '../utils/translations.dart';
|
||||||
|
|
||||||
// DEBUG: Set to true to show scoring rings visualization
|
|
||||||
const bool _DEBUG_SHOW_SCORING_RINGS = false;
|
|
||||||
|
|
||||||
class ScoringRingsPainter extends CustomPainter {
|
|
||||||
final Offset center;
|
|
||||||
final double scaleX;
|
|
||||||
final double scaleY;
|
|
||||||
final double targetScaleFactorX;
|
|
||||||
final double targetScaleFactorY;
|
|
||||||
|
|
||||||
ScoringRingsPainter({
|
|
||||||
required this.center,
|
|
||||||
required this.scaleX,
|
|
||||||
required this.scaleY,
|
|
||||||
required this.targetScaleFactorX,
|
|
||||||
required this.targetScaleFactorY,
|
|
||||||
});
|
|
||||||
|
|
||||||
@override
|
|
||||||
void paint(Canvas canvas, Size size) {
|
|
||||||
// Colors for each ring (10 to 1)
|
|
||||||
final List<Color> ringColors = [
|
|
||||||
Colors.red, // 10
|
|
||||||
Colors.orange, // 9
|
|
||||||
Colors.yellow, // 8
|
|
||||||
Colors.lime, // 7
|
|
||||||
Colors.green, // 6
|
|
||||||
Colors.cyan, // 5
|
|
||||||
Colors.blue, // 4
|
|
||||||
Colors.indigo, // 3
|
|
||||||
Colors.purple, // 2
|
|
||||||
Colors.pink, // 1
|
|
||||||
];
|
|
||||||
|
|
||||||
// Scoring rings distances from center (in default 1200x1200 space)
|
|
||||||
// Must match the rings in _generatePositionForScore
|
|
||||||
final List<double> rings = [14, 68, 123, 177, 232, 286, 342, 397, 455, 510];
|
|
||||||
|
|
||||||
// The canvas is already positioned at the image location
|
|
||||||
// Center should be scaled by target scale factors first (default 1200x1200 to actual target size)
|
|
||||||
// then by display scale factors (target image to screen)
|
|
||||||
final scaledCenter = Offset(
|
|
||||||
center.dx * targetScaleFactorX,
|
|
||||||
center.dy * targetScaleFactorY,
|
|
||||||
);
|
|
||||||
final displayCenter = Offset(
|
|
||||||
scaledCenter.dx * scaleX,
|
|
||||||
scaledCenter.dy * scaleY,
|
|
||||||
);
|
|
||||||
|
|
||||||
// Draw each scoring ring with a different color
|
|
||||||
for (int i = 0; i < rings.length; i++) {
|
|
||||||
final paint = Paint()
|
|
||||||
..color = ringColors[i].withValues(alpha: 0.5)
|
|
||||||
..style = PaintingStyle.stroke
|
|
||||||
..strokeWidth = 2;
|
|
||||||
|
|
||||||
final ringRadius = rings[i];
|
|
||||||
// Scale by target scale factors (default 1200x1200 to actual target size)
|
|
||||||
// then by display scale factors (target image to screen)
|
|
||||||
final scaledRadiusX = ringRadius * targetScaleFactorX * scaleX;
|
|
||||||
final scaledRadiusY = ringRadius * targetScaleFactorY * scaleY;
|
|
||||||
final scaledRadius = (scaledRadiusX + scaledRadiusY) / 2;
|
|
||||||
canvas.drawCircle(displayCenter, scaledRadius, paint);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Draw center point
|
|
||||||
final centerPaint = Paint()
|
|
||||||
..color = Colors.red
|
|
||||||
..style = PaintingStyle.fill;
|
|
||||||
canvas.drawCircle(displayCenter, 4, centerPaint);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool shouldRepaint(ScoringRingsPainter oldDelegate) {
|
|
||||||
return center != oldDelegate.center ||
|
|
||||||
scaleX != oldDelegate.scaleX ||
|
|
||||||
scaleY != oldDelegate.scaleY ||
|
|
||||||
targetScaleFactorX != oldDelegate.targetScaleFactorX ||
|
|
||||||
targetScaleFactorY != oldDelegate.targetScaleFactorY;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class PreviewScreen extends StatefulWidget {
|
class PreviewScreen extends StatefulWidget {
|
||||||
final String imagePath;
|
final String imagePath;
|
||||||
final List<DetectionResult> detections;
|
final List<DetectionResult> detections;
|
||||||
@@ -122,7 +39,6 @@ class _PreviewScreenState extends State<PreviewScreen> {
|
|||||||
img.Image? _realImageDecoded;
|
img.Image? _realImageDecoded;
|
||||||
img.Image? _targetImageDecoded;
|
img.Image? _targetImageDecoded;
|
||||||
Future<img.Image?>? _targetImageFuture;
|
Future<img.Image?>? _targetImageFuture;
|
||||||
Offset? _targetImageCenterForScoring;
|
|
||||||
|
|
||||||
Uint8List? _cachedTargetImage;
|
Uint8List? _cachedTargetImage;
|
||||||
Uint8List? _cachedRealImage;
|
Uint8List? _cachedRealImage;
|
||||||
@@ -136,8 +52,6 @@ class _PreviewScreenState extends State<PreviewScreen> {
|
|||||||
double _scaleFactorX = 1.0;
|
double _scaleFactorX = 1.0;
|
||||||
double _scaleFactorY = 1.0;
|
double _scaleFactorY = 1.0;
|
||||||
img.Image? _defaultTargetDecoded; // Default target for reference dimensions
|
img.Image? _defaultTargetDecoded; // Default target for reference dimensions
|
||||||
Offset?
|
|
||||||
_scaledTargetCenterForScoring; // Scaled center for scoring with display target
|
|
||||||
|
|
||||||
int? _highlightedBulletIndex;
|
int? _highlightedBulletIndex;
|
||||||
|
|
||||||
@@ -193,7 +107,7 @@ class _PreviewScreenState extends State<PreviewScreen> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print("Error loading current folder info: $e");
|
debugPrint("Error loading current folder info: $e");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -258,19 +172,11 @@ class _PreviewScreenState extends State<PreviewScreen> {
|
|||||||
if (_defaultTargetDecoded == null || _targetImageDecoded == null) {
|
if (_defaultTargetDecoded == null || _targetImageDecoded == null) {
|
||||||
_scaleFactorX = 1.0;
|
_scaleFactorX = 1.0;
|
||||||
_scaleFactorY = 1.0;
|
_scaleFactorY = 1.0;
|
||||||
_scaledTargetCenterForScoring = null;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_scaleFactorX = _targetImageDecoded!.width / _defaultTargetDecoded!.width;
|
_scaleFactorX = _targetImageDecoded!.width / _defaultTargetDecoded!.width;
|
||||||
_scaleFactorY = _targetImageDecoded!.height / _defaultTargetDecoded!.height;
|
_scaleFactorY = _targetImageDecoded!.height / _defaultTargetDecoded!.height;
|
||||||
|
|
||||||
// Scale the center point for scoring
|
|
||||||
if (_targetImageCenterForScoring != null) {
|
|
||||||
_scaledTargetCenterForScoring = Offset(
|
|
||||||
_targetImageCenterForScoring!.dx * _scaleFactorX,
|
|
||||||
_targetImageCenterForScoring!.dy * _scaleFactorY,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
debugPrint(
|
debugPrint(
|
||||||
"📏 Scale factors calculated: X=$_scaleFactorX, Y=$_scaleFactorY");
|
"📏 Scale factors calculated: X=$_scaleFactorX, Y=$_scaleFactorY");
|
||||||
}
|
}
|
||||||
@@ -366,15 +272,7 @@ class _PreviewScreenState extends State<PreviewScreen> {
|
|||||||
Future<img.Image?> _loadAndDecodeTargetImage() async {
|
Future<img.Image?> _loadAndDecodeTargetImage() async {
|
||||||
final byteData = await rootBundle.load(targetAssetPath);
|
final byteData = await rootBundle.load(targetAssetPath);
|
||||||
final bytes = byteData.buffer.asUint8List();
|
final bytes = byteData.buffer.asUint8List();
|
||||||
final tempDir = await getTemporaryDirectory();
|
return img.decodeImage(bytes);
|
||||||
final targetFile = File('${tempDir.path}/target.png');
|
|
||||||
await targetFile.writeAsBytes(bytes);
|
|
||||||
final decoded = img.decodeImage(bytes);
|
|
||||||
if (decoded != null) {
|
|
||||||
_targetImageCenterForScoring =
|
|
||||||
Offset(decoded.width / 2, decoded.height / 2 - 1);
|
|
||||||
}
|
|
||||||
return decoded;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _runDetectionAndMapping() async {
|
Future<void> _runDetectionAndMapping() async {
|
||||||
@@ -468,109 +366,6 @@ class _PreviewScreenState extends State<PreviewScreen> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void _manualScoreEntry() {
|
|
||||||
final missingCount = widget.bulletCount - _mappedBullets.length;
|
|
||||||
final controllers =
|
|
||||||
List.generate(missingCount, (_) => TextEditingController());
|
|
||||||
|
|
||||||
showDialog(
|
|
||||||
context: context,
|
|
||||||
builder: (context) {
|
|
||||||
return Dialog(
|
|
||||||
backgroundColor: Colors.grey[900],
|
|
||||||
shape:
|
|
||||||
RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
|
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.all(24.0),
|
|
||||||
child: Column(
|
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
_t('Enter Missing Bullet Scores'),
|
|
||||||
style: const TextStyle(
|
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 20,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.center,
|
|
||||||
),
|
|
||||||
const SizedBox(height: 20),
|
|
||||||
ConstrainedBox(
|
|
||||||
constraints: const BoxConstraints(maxHeight: 300),
|
|
||||||
child: SingleChildScrollView(
|
|
||||||
child: Column(
|
|
||||||
children: List.generate(missingCount, (index) {
|
|
||||||
return Padding(
|
|
||||||
padding: const EdgeInsets.symmetric(vertical: 6),
|
|
||||||
child: TextField(
|
|
||||||
controller: controllers[index],
|
|
||||||
keyboardType: TextInputType.number,
|
|
||||||
style: const TextStyle(color: Colors.white),
|
|
||||||
decoration: InputDecoration(
|
|
||||||
labelText:
|
|
||||||
'${_t('Bullet Score')} ${_mappedBullets.length + index + 1}',
|
|
||||||
labelStyle:
|
|
||||||
const TextStyle(color: Colors.white54),
|
|
||||||
filled: true,
|
|
||||||
fillColor: Colors.grey[800],
|
|
||||||
enabledBorder: OutlineInputBorder(
|
|
||||||
borderRadius: BorderRadius.circular(12),
|
|
||||||
borderSide: BorderSide.none,
|
|
||||||
),
|
|
||||||
focusedBorder: OutlineInputBorder(
|
|
||||||
borderRadius: BorderRadius.circular(12),
|
|
||||||
borderSide: BorderSide(color: _bulletColor),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(height: 16),
|
|
||||||
SizedBox(
|
|
||||||
width: double.infinity,
|
|
||||||
child: ElevatedButton(
|
|
||||||
onPressed: () {
|
|
||||||
final scores = controllers
|
|
||||||
.map((c) => int.tryParse(c.text.trim()) ?? 0)
|
|
||||||
.toList();
|
|
||||||
|
|
||||||
setState(() {
|
|
||||||
for (final score in scores) {
|
|
||||||
final offset = _generatePositionForScore(score);
|
|
||||||
// Scale position from default coordinate system to display target size
|
|
||||||
final scaledOffset = Offset(
|
|
||||||
offset.dx * _scaleFactorX,
|
|
||||||
offset.dy * _scaleFactorY,
|
|
||||||
);
|
|
||||||
_mappedBullets.add(scaledOffset);
|
|
||||||
_manualBulletScores.add(score);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
Navigator.pop(context);
|
|
||||||
},
|
|
||||||
style: ElevatedButton.styleFrom(
|
|
||||||
backgroundColor: _bulletColor,
|
|
||||||
foregroundColor: Colors.white,
|
|
||||||
padding: const EdgeInsets.symmetric(vertical: 14),
|
|
||||||
shape: RoundedRectangleBorder(
|
|
||||||
borderRadius: BorderRadius.circular(12),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
child: Text(_t('Add Bullets')),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
void _showMissingBulletDialog(int bulletNum) {
|
void _showMissingBulletDialog(int bulletNum) {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
@@ -761,7 +556,7 @@ class _PreviewScreenState extends State<PreviewScreen> {
|
|||||||
|
|
||||||
await _performSave(lastFolder, false);
|
await _performSave(lastFolder, false);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print("Error saving to last folder: $e");
|
debugPrint("Error saving to last folder: $e");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -788,7 +583,7 @@ class _PreviewScreenState extends State<PreviewScreen> {
|
|||||||
|
|
||||||
await _performSave(selectedFolder, isTournament);
|
await _performSave(selectedFolder, isTournament);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print("Error saving target data: $e");
|
debugPrint("Error saving target data: $e");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -839,15 +634,17 @@ class _PreviewScreenState extends State<PreviewScreen> {
|
|||||||
await jsonFile.writeAsString(jsonEncode(targetData));
|
await jsonFile.writeAsString(jsonEncode(targetData));
|
||||||
|
|
||||||
// Close preview and signal refresh
|
// Close preview and signal refresh
|
||||||
|
if (!mounted) return;
|
||||||
Navigator.pop(context, true);
|
Navigator.pop(context, true);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print("Error performing save: $e");
|
debugPrint("Error performing save: $e");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildEditController() {
|
Widget _buildEditController() {
|
||||||
if (!_isEditMode || _selectedBulletIndexInEdit == null)
|
if (!_isEditMode || _selectedBulletIndexInEdit == null) {
|
||||||
return const SizedBox.shrink();
|
return const SizedBox.shrink();
|
||||||
|
}
|
||||||
|
|
||||||
return Positioned(
|
return Positioned(
|
||||||
bottom: 20,
|
bottom: 20,
|
||||||
@@ -986,6 +783,7 @@ class _PreviewScreenState extends State<PreviewScreen> {
|
|||||||
final String nextTraining = '$trainingWord $trainingCount';
|
final String nextTraining = '$trainingWord $trainingCount';
|
||||||
final String nextTournament = '$tournamentWord $tournamentCount';
|
final String nextTournament = '$tournamentWord $tournamentCount';
|
||||||
|
|
||||||
|
if (!mounted) return null;
|
||||||
return showDialog<String>(
|
return showDialog<String>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
@@ -1164,8 +962,11 @@ class _PreviewScreenState extends State<PreviewScreen> {
|
|||||||
int get _totalScore {
|
int get _totalScore {
|
||||||
// Score is based on the default target coordinate system (1200x1200)
|
// Score is based on the default target coordinate system (1200x1200)
|
||||||
// since bullets were mapped to that system and then scaled for display
|
// since bullets were mapped to that system and then scaled for display
|
||||||
|
// Manual bullets are appended after the detected ones and scored below,
|
||||||
|
// so take only the detected ones here (at most the remaining shot slots).
|
||||||
|
final detected = _mappedBullets.length - _manualBulletScores.length;
|
||||||
final autoScore = _mappedBullets
|
final autoScore = _mappedBullets
|
||||||
.take(widget.bulletCount - _manualBulletScores.length)
|
.take(min(detected, widget.bulletCount - _manualBulletScores.length))
|
||||||
.map((b) {
|
.map((b) {
|
||||||
// Scale bullet back to default coordinate system for scoring
|
// Scale bullet back to default coordinate system for scoring
|
||||||
final defaultTargetBullet = Offset(
|
final defaultTargetBullet = Offset(
|
||||||
@@ -1358,24 +1159,7 @@ class _PreviewScreenState extends State<PreviewScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}).toList(),
|
}),
|
||||||
// DEBUG: Show scoring rings in both modes to verify alignment
|
|
||||||
if (_DEBUG_SHOW_SCORING_RINGS)
|
|
||||||
Positioned(
|
|
||||||
left: offsetX,
|
|
||||||
top: offsetY,
|
|
||||||
width: displayWidth,
|
|
||||||
height: displayHeight,
|
|
||||||
child: CustomPaint(
|
|
||||||
painter: ScoringRingsPainter(
|
|
||||||
center: fixedRingTargetCenter,
|
|
||||||
scaleX: scaleX,
|
|
||||||
scaleY: scaleY,
|
|
||||||
targetScaleFactorX: _scaleFactorX,
|
|
||||||
targetScaleFactorY: _scaleFactorY,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
if (_mode == PreviewMode.mappedTarget)
|
if (_mode == PreviewMode.mappedTarget)
|
||||||
..._mappedBullets
|
..._mappedBullets
|
||||||
.asMap()
|
.asMap()
|
||||||
@@ -1434,14 +1218,15 @@ class _PreviewScreenState extends State<PreviewScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}).toList(),
|
}),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 24),
|
const SizedBox(height: 24),
|
||||||
if (_mappedBullets.isNotEmpty)
|
// Shown even with no detections, so missed shots can be scored by hand
|
||||||
|
if (widget.bulletCount > 0)
|
||||||
Column(
|
Column(
|
||||||
children: [
|
children: [
|
||||||
// Score buttons for detected and missing bullets
|
// Score buttons for detected and missing bullets
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class SpectatorScreen extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _SpectatorScreenState extends State<SpectatorScreen> {
|
class _SpectatorScreenState extends State<SpectatorScreen> {
|
||||||
List<bool> _selectedCameras = List.generate(6, (_) => true); // All selected by default
|
final List<bool> _selectedCameras = List.generate(6, (_) => true); // All selected by default
|
||||||
List<bool> _enabledCameras = List.generate(6, (_) => false); // Which cameras have IPs configured
|
List<bool> _enabledCameras = List.generate(6, (_) => false); // Which cameras have IPs configured
|
||||||
List<Map<String, dynamic>> _cameras = [];
|
List<Map<String, dynamic>> _cameras = [];
|
||||||
Color _bulletColor = Colors.blue; // default/fallback bullet color
|
Color _bulletColor = Colors.blue; // default/fallback bullet color
|
||||||
|
|||||||
@@ -1,15 +1,8 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'package:flutter/foundation.dart' show compute, Uint8List;
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
import 'package:screenshot/screenshot.dart';
|
|
||||||
import 'dart:io';
|
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_mjpeg/flutter_mjpeg.dart';
|
import 'package:flutter_mjpeg/flutter_mjpeg.dart';
|
||||||
import 'package:path_provider/path_provider.dart';
|
|
||||||
import 'package:image/image.dart' as img;
|
|
||||||
import 'yolo_detector.dart';
|
|
||||||
import 'preview_screen.dart';
|
|
||||||
import 'package:wakelock_plus/wakelock_plus.dart';
|
import 'package:wakelock_plus/wakelock_plus.dart';
|
||||||
import '../utils/translations.dart';
|
import '../utils/translations.dart';
|
||||||
import '../services/app_settings.dart';
|
import '../services/app_settings.dart';
|
||||||
@@ -18,17 +11,6 @@ import '../widgets/help_sheet.dart';
|
|||||||
import '../widgets/image_settings.dart';
|
import '../widgets/image_settings.dart';
|
||||||
import '../services/wifi_binding.dart';
|
import '../services/wifi_binding.dart';
|
||||||
|
|
||||||
// Top-level: runs in background isolate via compute().
|
|
||||||
// Crops the capture to a square; filters are already baked into the screenshot.
|
|
||||||
Uint8List _processStreamImage(Uint8List bytes) {
|
|
||||||
final decoded = img.decodeImage(bytes)!;
|
|
||||||
final w = decoded.width, h = decoded.height;
|
|
||||||
final size = w < h ? w : h;
|
|
||||||
final cropped = img.copyCrop(decoded,
|
|
||||||
x: (w - size) ~/ 2, y: (h - size) ~/ 2, width: size, height: size);
|
|
||||||
return Uint8List.fromList(img.encodeJpg(cropped));
|
|
||||||
}
|
|
||||||
|
|
||||||
class CameraStreamScreen extends StatefulWidget {
|
class CameraStreamScreen extends StatefulWidget {
|
||||||
final int cameraIndex; // shooting position 1–6
|
final int cameraIndex; // shooting position 1–6
|
||||||
final String? ip; // chosen camera; falls back to the saved IP of the position
|
final String? ip; // chosen camera; falls back to the saved IP of the position
|
||||||
@@ -51,19 +33,12 @@ class _CameraStreamScreenState extends State<CameraStreamScreen>
|
|||||||
with TickerProviderStateMixin {
|
with TickerProviderStateMixin {
|
||||||
String? _streamUrl;
|
String? _streamUrl;
|
||||||
bool _isError = false;
|
bool _isError = false;
|
||||||
bool _isCapturing = false;
|
|
||||||
final ScreenshotController _screenshotController = ScreenshotController();
|
|
||||||
final TransformationController _transformationController =
|
final TransformationController _transformationController =
|
||||||
TransformationController();
|
TransformationController();
|
||||||
ImageAdjustments _image = const ImageAdjustments();
|
ImageAdjustments _image = const ImageAdjustments();
|
||||||
|
|
||||||
late YOLODetector _yoloDetector;
|
|
||||||
int _numberOfBullets = 5;
|
int _numberOfBullets = 5;
|
||||||
|
|
||||||
late AnimationController _zoomAnimController;
|
|
||||||
Animation<Matrix4>? _zoomAnimation;
|
|
||||||
Matrix4? _originalMatrix;
|
|
||||||
|
|
||||||
Color _bulletColor = Colors.blue;
|
Color _bulletColor = Colors.blue;
|
||||||
String _selectedLanguage = 'English';
|
String _selectedLanguage = 'English';
|
||||||
|
|
||||||
@@ -177,18 +152,11 @@ class _CameraStreamScreenState extends State<CameraStreamScreen>
|
|||||||
_wifiReady = WifiBinding.acquire();
|
_wifiReady = WifiBinding.acquire();
|
||||||
_loadAllPrefs();
|
_loadAllPrefs();
|
||||||
|
|
||||||
YOLODetector.create().then((detector) => _yoloDetector = detector);
|
|
||||||
|
|
||||||
_setSystemBarStyle();
|
_setSystemBarStyle();
|
||||||
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
|
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
|
||||||
|
|
||||||
_keepScreenAwake();
|
_keepScreenAwake();
|
||||||
|
|
||||||
_zoomAnimController = AnimationController(
|
|
||||||
vsync: this,
|
|
||||||
duration: const Duration(milliseconds: 200),
|
|
||||||
);
|
|
||||||
|
|
||||||
_shootProgressController = AnimationController(vsync: this);
|
_shootProgressController = AnimationController(vsync: this);
|
||||||
_reloadProgressController = AnimationController(vsync: this);
|
_reloadProgressController = AnimationController(vsync: this);
|
||||||
_waitProgressController = AnimationController(vsync: this);
|
_waitProgressController = AnimationController(vsync: this);
|
||||||
@@ -280,108 +248,6 @@ class _CameraStreamScreenState extends State<CameraStreamScreen>
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _captureAndPreviewImage() async {
|
|
||||||
if (_streamUrl == null || _isCapturing) return;
|
|
||||||
|
|
||||||
setState(() => _isCapturing = true);
|
|
||||||
_originalMatrix = _transformationController.value;
|
|
||||||
|
|
||||||
try {
|
|
||||||
final targetMatrix = Matrix4.identity()..scale(1.0);
|
|
||||||
final isZoomedIn = !_matrixEquals(_originalMatrix!, targetMatrix);
|
|
||||||
|
|
||||||
if (isZoomedIn) {
|
|
||||||
_zoomAnimController.reset();
|
|
||||||
_zoomAnimation = Matrix4Tween(
|
|
||||||
begin: _originalMatrix,
|
|
||||||
end: targetMatrix,
|
|
||||||
).animate(CurvedAnimation(
|
|
||||||
parent: _zoomAnimController,
|
|
||||||
curve: Curves.easeOut,
|
|
||||||
));
|
|
||||||
|
|
||||||
void updateZoom() {
|
|
||||||
_transformationController.value = _zoomAnimation!.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
_zoomAnimController.addListener(updateZoom);
|
|
||||||
await _zoomAnimController.forward();
|
|
||||||
_zoomAnimController.removeListener(updateZoom);
|
|
||||||
}
|
|
||||||
|
|
||||||
await Future.delayed(const Duration(milliseconds: 100));
|
|
||||||
final imageBytes = await _screenshotController.capture();
|
|
||||||
if (imageBytes == null || imageBytes.isEmpty) return;
|
|
||||||
|
|
||||||
final dir = await getApplicationDocumentsDirectory();
|
|
||||||
final path = '${dir.path}/ip_capture_temp.jpg';
|
|
||||||
|
|
||||||
final processedBytes = await compute(_processStreamImage, imageBytes);
|
|
||||||
final file = File(path)..writeAsBytesSync(processedBytes);
|
|
||||||
|
|
||||||
// Detect objects in the image using YOLO
|
|
||||||
final detections = await _yoloDetector.detect(file);
|
|
||||||
|
|
||||||
if (!mounted) return;
|
|
||||||
|
|
||||||
// Navigate to the preview screen
|
|
||||||
Navigator.push(
|
|
||||||
context,
|
|
||||||
MaterialPageRoute(
|
|
||||||
builder: (_) => PreviewScreen(
|
|
||||||
imagePath: file.path,
|
|
||||||
detections: detections,
|
|
||||||
bulletCount: _numberOfBullets,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
} catch (e) {
|
|
||||||
debugPrint("❌ Capture error: $e");
|
|
||||||
if (mounted) {
|
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
|
||||||
SnackBar(content: Text("Capture failed: $e")),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
_zoomAnimController.reset();
|
|
||||||
_zoomAnimation = Matrix4Tween(
|
|
||||||
begin: _transformationController.value,
|
|
||||||
end: _originalMatrix!,
|
|
||||||
).animate(CurvedAnimation(
|
|
||||||
parent: _zoomAnimController,
|
|
||||||
curve: Curves.easeIn,
|
|
||||||
));
|
|
||||||
|
|
||||||
void restoreZoom() {
|
|
||||||
_transformationController.value = _zoomAnimation!.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
_zoomAnimController.addListener(restoreZoom);
|
|
||||||
await _zoomAnimController.forward();
|
|
||||||
_zoomAnimController.removeListener(restoreZoom);
|
|
||||||
|
|
||||||
setState(() => _isCapturing = false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
img.Image invertImage(img.Image source) {
|
|
||||||
final result = img.Image.from(source);
|
|
||||||
for (int y = 0; y < result.height; y++) {
|
|
||||||
for (int x = 0; x < result.width; x++) {
|
|
||||||
final pixel = result.getPixel(x, y);
|
|
||||||
result.setPixelRgb(x, y, 255 - pixel.r, 255 - pixel.g, 255 - pixel.b);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool _matrixEquals(Matrix4 a, Matrix4 b) {
|
|
||||||
for (int i = 0; i < 16; i++) {
|
|
||||||
if ((a.storage[i] - b.storage[i]).abs() > 0.001) return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void _showImageSettingsDialog() {
|
void _showImageSettingsDialog() {
|
||||||
showImageSettingsSheet(
|
showImageSettingsSheet(
|
||||||
context,
|
context,
|
||||||
@@ -462,8 +328,6 @@ class _CameraStreamScreenState extends State<CameraStreamScreen>
|
|||||||
_reloadProgressController.dispose();
|
_reloadProgressController.dispose();
|
||||||
_waitProgressController.dispose();
|
_waitProgressController.dispose();
|
||||||
_flashController.dispose();
|
_flashController.dispose();
|
||||||
_zoomAnimController.dispose();
|
|
||||||
_yoloDetector.close();
|
|
||||||
WifiBinding.release();
|
WifiBinding.release();
|
||||||
_restoreScreenSettings();
|
_restoreScreenSettings();
|
||||||
_setSystemBarStyle();
|
_setSystemBarStyle();
|
||||||
@@ -873,8 +737,9 @@ class _CameraStreamScreenState extends State<CameraStreamScreen>
|
|||||||
|
|
||||||
// Manual counter dots — shown at top when timer not running
|
// Manual counter dots — shown at top when timer not running
|
||||||
Widget _buildManualDotsOverlay() {
|
Widget _buildManualDotsOverlay() {
|
||||||
if (!_showManualCounter || _numberOfBullets <= 1)
|
if (!_showManualCounter || _numberOfBullets <= 1) {
|
||||||
return const SizedBox.shrink();
|
return const SizedBox.shrink();
|
||||||
|
}
|
||||||
return Positioned(
|
return Positioned(
|
||||||
top: 8,
|
top: 8,
|
||||||
left: 0,
|
left: 0,
|
||||||
@@ -1291,9 +1156,7 @@ class _CameraStreamScreenState extends State<CameraStreamScreen>
|
|||||||
backgroundColor: Colors.black,
|
backgroundColor: Colors.black,
|
||||||
body: Stack(
|
body: Stack(
|
||||||
children: [
|
children: [
|
||||||
Screenshot(
|
LayoutBuilder(
|
||||||
controller: _screenshotController,
|
|
||||||
child: LayoutBuilder(
|
|
||||||
builder: (context, constraints) {
|
builder: (context, constraints) {
|
||||||
return Center(
|
return Center(
|
||||||
child: (_isError || _streamUrl == null)
|
child: (_isError || _streamUrl == null)
|
||||||
@@ -1341,25 +1204,7 @@ class _CameraStreamScreenState extends State<CameraStreamScreen>
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
|
||||||
|
|
||||||
if (_isCapturing)
|
|
||||||
Positioned.fill(
|
|
||||||
child: Container(
|
|
||||||
color: Colors.black.withValues(alpha: 0.4),
|
|
||||||
child: Column(
|
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
const CircularProgressIndicator(color: Colors.white),
|
|
||||||
const SizedBox(height: 16),
|
|
||||||
Text(
|
|
||||||
_t("Processing image..."),
|
|
||||||
style: const TextStyle(color: Colors.white, fontSize: 16),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
_buildManualDotsOverlay(),
|
_buildManualDotsOverlay(),
|
||||||
_buildCountdownOverlay(),
|
_buildCountdownOverlay(),
|
||||||
// Phase-change flash overlay
|
// Phase-change flash overlay
|
||||||
@@ -1476,8 +1321,9 @@ class _CameraStreamScreenState extends State<CameraStreamScreen>
|
|||||||
onTap: () async {
|
onTap: () async {
|
||||||
setState(() {
|
setState(() {
|
||||||
_manualCounterEnabled = !_manualCounterEnabled;
|
_manualCounterEnabled = !_manualCounterEnabled;
|
||||||
if (_manualCounterEnabled)
|
if (_manualCounterEnabled) {
|
||||||
_manualShotsLeft = _numberOfBullets;
|
_manualShotsLeft = _numberOfBullets;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
final prefs = await SharedPreferences.getInstance();
|
final prefs = await SharedPreferences.getInstance();
|
||||||
await prefs.setBool(
|
await prefs.setBool(
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class TargetViewScreen extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _TargetViewScreenState extends State<TargetViewScreen> {
|
class _TargetViewScreenState extends State<TargetViewScreen> {
|
||||||
int _currentIndex = 0;
|
final int _currentIndex = 0;
|
||||||
List<Offset> _bullets = [];
|
List<Offset> _bullets = [];
|
||||||
List<Offset> _scaledBullets = []; // Bullets scaled to display target size
|
List<Offset> _scaledBullets = []; // Bullets scaled to display target size
|
||||||
int _totalScore = 0;
|
int _totalScore = 0;
|
||||||
@@ -144,7 +144,7 @@ class _TargetViewScreenState extends State<TargetViewScreen> {
|
|||||||
img.Image? defaultTargetDecoded = img.decodeImage(defaultBytes);
|
img.Image? defaultTargetDecoded = img.decodeImage(defaultBytes);
|
||||||
|
|
||||||
if (defaultTargetDecoded == null) {
|
if (defaultTargetDecoded == null) {
|
||||||
print("Failed to decode default target image.");
|
debugPrint("Failed to decode default target image.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -160,7 +160,7 @@ class _TargetViewScreenState extends State<TargetViewScreen> {
|
|||||||
_targetImageDecoded = img.decodeImage(displayBytes);
|
_targetImageDecoded = img.decodeImage(displayBytes);
|
||||||
|
|
||||||
if (_targetImageDecoded == null) {
|
if (_targetImageDecoded == null) {
|
||||||
print("Failed to decode display target image.");
|
debugPrint("Failed to decode display target image.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,7 +275,7 @@ class _TargetViewScreenState extends State<TargetViewScreen> {
|
|||||||
|
|
||||||
setState(() {});
|
setState(() {});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print("Error loading JSON or image: $e");
|
debugPrint("Error loading JSON or image: $e");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -293,13 +293,15 @@ class _TargetViewScreenState extends State<TargetViewScreen> {
|
|||||||
try {
|
try {
|
||||||
final file = File(_targetFilePath);
|
final file = File(_targetFilePath);
|
||||||
await file.delete();
|
await file.delete();
|
||||||
|
widget.refreshFolders();
|
||||||
|
if (!mounted) return;
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
const SnackBar(content: Text('Target deleted')),
|
const SnackBar(content: Text('Target deleted')),
|
||||||
);
|
);
|
||||||
widget.refreshFolders();
|
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print("Error deleting target: $e");
|
debugPrint("Error deleting target: $e");
|
||||||
|
if (!mounted) return;
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
const SnackBar(content: Text('Failed to delete target')),
|
const SnackBar(content: Text('Failed to delete target')),
|
||||||
);
|
);
|
||||||
@@ -311,18 +313,38 @@ class _TargetViewScreenState extends State<TargetViewScreen> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: _backgroundColor,
|
backgroundColor: _backgroundColor,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Row(
|
// Score on top, where it is read first; the date sits in the bottom bar
|
||||||
|
// Same look as the SKUPAJ total on the preview screen
|
||||||
|
title: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
const Icon(Icons.calendar_today, size: 20, color: Colors.white),
|
Text(
|
||||||
const SizedBox(width: 8),
|
_t('Total score').replaceAll(':', '').toUpperCase(),
|
||||||
Text(_date, style: const TextStyle(color: Colors.white)),
|
style: const TextStyle(
|
||||||
|
fontSize: 11,
|
||||||
|
letterSpacing: 1.5,
|
||||||
|
color: Colors.white54,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
"$_totalScore",
|
||||||
|
style: const TextStyle(
|
||||||
|
fontSize: 26,
|
||||||
|
height: 1.1,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
backgroundColor: Colors.grey[900],
|
backgroundColor: Colors.grey[900],
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
iconTheme: const IconThemeData(color: Colors.white),
|
iconTheme: const IconThemeData(color: Colors.white),
|
||||||
actions: [
|
actions: [
|
||||||
|
// The combined view shows a whole session; deleting would remove an
|
||||||
|
// arbitrary one of its targets. Sessions are deleted from the Book list.
|
||||||
|
if (!widget.isCombinedView)
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.delete),
|
icon: const Icon(Icons.delete),
|
||||||
color: Colors.red,
|
color: Colors.red,
|
||||||
@@ -487,7 +509,7 @@ class _TargetViewScreenState extends State<TargetViewScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}).toList(),
|
}),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -517,36 +539,23 @@ class _TargetViewScreenState extends State<TargetViewScreen> {
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
// Total score
|
// Date
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
const Icon(Icons.track_changes,
|
const Icon(Icons.calendar_today,
|
||||||
size: 20, color: Colors.white),
|
size: 20, color: Colors.white),
|
||||||
const SizedBox(width: 12),
|
const SizedBox(width: 12),
|
||||||
Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
Text(
|
Text(
|
||||||
_t('Total score'),
|
// Saved targets store dd/MM/yyyy; show it the Slovenian way
|
||||||
|
_date.replaceAll('/', '.'),
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 11,
|
fontSize: 16,
|
||||||
color: Colors.white54,
|
fontWeight: FontWeight.w600,
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Text(
|
|
||||||
"$_totalScore",
|
|
||||||
style: const TextStyle(
|
|
||||||
fontSize: 18,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
|
||||||
),
|
|
||||||
// Chart toggle button
|
// Chart toggle button
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|||||||
@@ -43,9 +43,6 @@ class YOLODetector {
|
|||||||
final inputShape = inputTensor.shape;
|
final inputShape = inputTensor.shape;
|
||||||
inputHeight = inputShape[1];
|
inputHeight = inputShape[1];
|
||||||
inputWidth = inputShape[2];
|
inputWidth = inputShape[2];
|
||||||
|
|
||||||
print("📐 Model input shape: $inputShape");
|
|
||||||
print("📦 Model input type: ${inputTensor.type}");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<List<DetectionResult>> detect(File imageFile) async {
|
Future<List<DetectionResult>> detect(File imageFile) async {
|
||||||
@@ -66,8 +63,6 @@ class YOLODetector {
|
|||||||
final numDetections = outputShape[1];
|
final numDetections = outputShape[1];
|
||||||
final outputBuffer = List.generate(1, (_) =>
|
final outputBuffer = List.generate(1, (_) =>
|
||||||
List.generate(numDetections, (_) => List.filled(6, 0.0)));
|
List.generate(numDetections, (_) => List.filled(6, 0.0)));
|
||||||
|
|
||||||
print("🚀 Running inference...");
|
|
||||||
_interpreter.run(inputBuffer, outputBuffer);
|
_interpreter.run(inputBuffer, outputBuffer);
|
||||||
|
|
||||||
final rawDetections = outputBuffer[0];
|
final rawDetections = outputBuffer[0];
|
||||||
@@ -102,8 +97,6 @@ class YOLODetector {
|
|||||||
classId,
|
classId,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
print("🎯 Detections found: ${results.length}");
|
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -105,9 +105,9 @@ class ShooterStats {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reads and edits the saved targets under <documents>/saved_images/<session>/.
|
/// Reads and edits the saved targets under `<documents>/saved_images/<session>/`.
|
||||||
///
|
///
|
||||||
/// Score and shots of every target are cached in <documents>/target_index.json,
|
/// Score and shots of every target are cached in `<documents>/target_index.json`,
|
||||||
/// keyed by the file's path with its size and last change, so loading reads one
|
/// keyed by the file's path with its size and last change, so loading reads one
|
||||||
/// file instead of every target. A new, edited or renamed target no longer
|
/// file instead of every target. A new, edited or renamed target no longer
|
||||||
/// matches its entry and is read again; entries of deleted files are dropped.
|
/// matches its entry and is read again; entries of deleted files are dropped.
|
||||||
|
|||||||
+8
-372
@@ -23,26 +23,12 @@ class AppTranslations {
|
|||||||
'English': 'Appearance',
|
'English': 'Appearance',
|
||||||
'Slovenian': 'Videz',
|
'Slovenian': 'Videz',
|
||||||
},
|
},
|
||||||
'Appearance Settings': {
|
|
||||||
'English': 'Appearance Settings',
|
|
||||||
'Slovenian': 'Nastavitve videza',
|
|
||||||
},
|
|
||||||
'Bullet': {
|
'Bullet': {
|
||||||
'English': 'Bullet',
|
'English': 'Bullet',
|
||||||
'Slovenian': 'Zadetek',
|
'Slovenian': 'Zadetek',
|
||||||
},
|
},
|
||||||
|
|
||||||
// Bullet color
|
|
||||||
'Select Bullet Color': {
|
|
||||||
'English': 'Select Bullet Color',
|
|
||||||
'Slovenian': 'Izberi barvo zadetka',
|
|
||||||
},
|
|
||||||
|
|
||||||
// Target selection
|
// Target selection
|
||||||
'Select Target': {
|
|
||||||
'English': 'Select Target',
|
|
||||||
'Slovenian': 'Izberi tarčo',
|
|
||||||
},
|
|
||||||
'Default Target': {
|
'Default Target': {
|
||||||
'English': 'Default Target',
|
'English': 'Default Target',
|
||||||
'Slovenian': 'Privzeta tarča',
|
'Slovenian': 'Privzeta tarča',
|
||||||
@@ -193,10 +179,6 @@ class AppTranslations {
|
|||||||
'English': 'Camera',
|
'English': 'Camera',
|
||||||
'Slovenian': 'Kamera',
|
'Slovenian': 'Kamera',
|
||||||
},
|
},
|
||||||
'Enter Camera IP': {
|
|
||||||
'English': 'Enter Camera IP',
|
|
||||||
'Slovenian': 'Vnesi IP kamere',
|
|
||||||
},
|
|
||||||
'Save': {
|
'Save': {
|
||||||
'English': 'Save',
|
'English': 'Save',
|
||||||
'Slovenian': 'Shrani',
|
'Slovenian': 'Shrani',
|
||||||
@@ -309,10 +291,6 @@ class AppTranslations {
|
|||||||
'English': 'in {n} days',
|
'English': 'in {n} days',
|
||||||
'Slovenian': 'čez {n} dni',
|
'Slovenian': 'čez {n} dni',
|
||||||
},
|
},
|
||||||
'NOW': {
|
|
||||||
'English': 'NOW',
|
|
||||||
'Slovenian': 'ZDAJ',
|
|
||||||
},
|
|
||||||
'Untitled Event': {
|
'Untitled Event': {
|
||||||
'English': 'Untitled Event',
|
'English': 'Untitled Event',
|
||||||
'Slovenian': 'Brez naslova',
|
'Slovenian': 'Brez naslova',
|
||||||
@@ -321,36 +299,16 @@ class AppTranslations {
|
|||||||
'English': 'All day',
|
'English': 'All day',
|
||||||
'Slovenian': 'Cel dan',
|
'Slovenian': 'Cel dan',
|
||||||
},
|
},
|
||||||
'Event Card Styles Preview': {
|
|
||||||
'English': 'Event Card Styles Preview',
|
|
||||||
'Slovenian': 'Predogled stilov dogodkov',
|
|
||||||
},
|
|
||||||
'Example Event Preview': {
|
|
||||||
'English': 'Example Event Preview',
|
|
||||||
'Slovenian': 'Primer dogodka',
|
|
||||||
},
|
|
||||||
'DEŽURSTVO': {
|
|
||||||
'English': 'DUTY',
|
|
||||||
'Slovenian': 'DEŽURSTVO',
|
|
||||||
},
|
|
||||||
'DUTY': {
|
'DUTY': {
|
||||||
'English': 'DUTY',
|
'English': 'DUTY',
|
||||||
'Slovenian': 'DEŽURSTVO',
|
'Slovenian': 'DEŽURSTVO',
|
||||||
},
|
},
|
||||||
|
|
||||||
// Preview Screen
|
// Preview Screen
|
||||||
'Enter Missing Bullet Scores': {
|
|
||||||
'English': 'Enter Missing Bullet Scores',
|
|
||||||
'Slovenian': 'Vnesi manjkajoče ocene zadetkov',
|
|
||||||
},
|
|
||||||
'Bullet Score': {
|
'Bullet Score': {
|
||||||
'English': 'Bullet Score',
|
'English': 'Bullet Score',
|
||||||
'Slovenian': 'Ocena zadetka',
|
'Slovenian': 'Ocena zadetka',
|
||||||
},
|
},
|
||||||
'Add Bullets': {
|
|
||||||
'English': 'Add Bullets',
|
|
||||||
'Slovenian': 'Dodaj zadetke',
|
|
||||||
},
|
|
||||||
'Save Target Data': {
|
'Save Target Data': {
|
||||||
'English': 'Save Target Data',
|
'English': 'Save Target Data',
|
||||||
'Slovenian': 'Shrani podatke tarče',
|
'Slovenian': 'Shrani podatke tarče',
|
||||||
@@ -385,30 +343,6 @@ class AppTranslations {
|
|||||||
'English': 'Folder Settings',
|
'English': 'Folder Settings',
|
||||||
'Slovenian': 'Nastavitve mape',
|
'Slovenian': 'Nastavitve mape',
|
||||||
},
|
},
|
||||||
'Enter new folder name': {
|
|
||||||
'English': 'Enter new folder name',
|
|
||||||
'Slovenian': 'Vnesi novo ime mape',
|
|
||||||
},
|
|
||||||
'Tournament Mode 🏆': {
|
|
||||||
'English': 'Tournament Mode 🏆',
|
|
||||||
'Slovenian': 'Tekmovalni način 🏆',
|
|
||||||
},
|
|
||||||
'Tournament Mode': {
|
|
||||||
'English': 'Tournament Mode',
|
|
||||||
'Slovenian': 'Tekmovalni način',
|
|
||||||
},
|
|
||||||
'Mark as Tournament 🏆': {
|
|
||||||
'English': 'Mark as Tournament 🏆',
|
|
||||||
'Slovenian': 'Označi kot tekmovanje 🏆',
|
|
||||||
},
|
|
||||||
'Mark as Tournament': {
|
|
||||||
'English': 'Mark as Tournament',
|
|
||||||
'Slovenian': 'Označi kot tekmovanje',
|
|
||||||
},
|
|
||||||
'Apply': {
|
|
||||||
'English': 'Apply',
|
|
||||||
'Slovenian': 'Uporabi',
|
|
||||||
},
|
|
||||||
'Confirm Deletion': {
|
'Confirm Deletion': {
|
||||||
'English': 'Confirm Deletion',
|
'English': 'Confirm Deletion',
|
||||||
'Slovenian': 'Potrdi brisanje',
|
'Slovenian': 'Potrdi brisanje',
|
||||||
@@ -429,30 +363,10 @@ class AppTranslations {
|
|||||||
'English': 'Close',
|
'English': 'Close',
|
||||||
'Slovenian': 'Zapri',
|
'Slovenian': 'Zapri',
|
||||||
},
|
},
|
||||||
'Showing: 📂 All folders': {
|
|
||||||
'English': 'Showing: 📂 All folders',
|
|
||||||
'Slovenian': 'Prikaz: 📂 Vse mape',
|
|
||||||
},
|
|
||||||
'Showing: 🏆 Tournament folders': {
|
|
||||||
'English': 'Showing: 🏆 Tournament folders',
|
|
||||||
'Slovenian': 'Prikaz: 🏆 Tekmovalne mape',
|
|
||||||
},
|
|
||||||
'Showing: 🎯 Training folders': {
|
|
||||||
'English': 'Showing: 🎯 Training folders',
|
|
||||||
'Slovenian': 'Prikaz: 🎯 Treningske mape',
|
|
||||||
},
|
|
||||||
'No saved target data found': {
|
'No saved target data found': {
|
||||||
'English': 'No saved target data found',
|
'English': 'No saved target data found',
|
||||||
'Slovenian': 'Ni shranjenih podatkov tarče',
|
'Slovenian': 'Ni shranjenih podatkov tarče',
|
||||||
},
|
},
|
||||||
'Filter Folders': {
|
|
||||||
'English': 'Filter Folders',
|
|
||||||
'Slovenian': 'Filtriraj mape',
|
|
||||||
},
|
|
||||||
'📂 All folders': {
|
|
||||||
'English': '📂 All folders',
|
|
||||||
'Slovenian': '📂 Vse mape',
|
|
||||||
},
|
|
||||||
'🏆 Tournament': {
|
'🏆 Tournament': {
|
||||||
'English': '🏆 Tournament',
|
'English': '🏆 Tournament',
|
||||||
'Slovenian': '🏆 Tekmovanje',
|
'Slovenian': '🏆 Tekmovanje',
|
||||||
@@ -461,18 +375,6 @@ class AppTranslations {
|
|||||||
'English': '🎯 Training',
|
'English': '🎯 Training',
|
||||||
'Slovenian': '🎯 Trening',
|
'Slovenian': '🎯 Trening',
|
||||||
},
|
},
|
||||||
'Sort By': {
|
|
||||||
'English': 'Sort By',
|
|
||||||
'Slovenian': 'Razvrsti po',
|
|
||||||
},
|
|
||||||
'📅 Sort by Date': {
|
|
||||||
'English': '📅 Sort by Date',
|
|
||||||
'Slovenian': '📅 Razvrsti po datumu',
|
|
||||||
},
|
|
||||||
'🏆 Sort by Score': {
|
|
||||||
'English': '🏆 Sort by Score',
|
|
||||||
'Slovenian': '🏆 Razvrsti po oceni',
|
|
||||||
},
|
|
||||||
|
|
||||||
// Navigation Menu
|
// Navigation Menu
|
||||||
'Book': {
|
'Book': {
|
||||||
@@ -511,16 +413,8 @@ class AppTranslations {
|
|||||||
'English': 'Total score',
|
'English': 'Total score',
|
||||||
'Slovenian': 'Rezultat:',
|
'Slovenian': 'Rezultat:',
|
||||||
},
|
},
|
||||||
'Total score:': {
|
|
||||||
'English': 'Total score:',
|
|
||||||
'Slovenian': 'Skupni seštevek:',
|
|
||||||
},
|
|
||||||
|
|
||||||
// Stream Screen (Camera View)
|
// Stream Screen (Camera View)
|
||||||
'Choose a Filter': {
|
|
||||||
'English': 'Choose a Filter',
|
|
||||||
'Slovenian': 'Izberi filter',
|
|
||||||
},
|
|
||||||
'None': {
|
'None': {
|
||||||
'English': 'None',
|
'English': 'None',
|
||||||
'Slovenian': 'Brez',
|
'Slovenian': 'Brez',
|
||||||
@@ -533,102 +427,16 @@ class AppTranslations {
|
|||||||
'English': 'Invert',
|
'English': 'Invert',
|
||||||
'Slovenian': 'Inverz',
|
'Slovenian': 'Inverz',
|
||||||
},
|
},
|
||||||
'Processing image...': {
|
|
||||||
'English': 'Processing image...',
|
|
||||||
'Slovenian': 'Obdelava slike...',
|
|
||||||
},
|
|
||||||
'Unable to load camera stream': {
|
'Unable to load camera stream': {
|
||||||
'English': 'Unable to load camera stream',
|
'English': 'Unable to load camera stream',
|
||||||
'Slovenian': 'Ni mogoče naložiti kamere',
|
'Slovenian': 'Ni mogoče naložiti kamere',
|
||||||
},
|
},
|
||||||
|
|
||||||
// Mode Selection
|
|
||||||
'Select Detection Mode': {
|
|
||||||
'English': 'Select Detection Mode',
|
|
||||||
'Slovenian': 'Izberi način zaznavanja',
|
|
||||||
},
|
|
||||||
'Capture & Shoot': {
|
|
||||||
'English': 'Capture & Shoot',
|
|
||||||
'Slovenian': 'Zajemi in streljaj',
|
|
||||||
},
|
|
||||||
'Take single photo and detect bullets': {
|
|
||||||
'English': 'Take single photo and detect bullets',
|
|
||||||
'Slovenian': 'Zajemi fotografijo in zazna zadetke',
|
|
||||||
},
|
|
||||||
'Live Detection': {
|
|
||||||
'English': 'Live Detection',
|
|
||||||
'Slovenian': 'Živa zaznava',
|
|
||||||
},
|
|
||||||
'Continuous monitoring with real-time scoring': {
|
|
||||||
'English': 'Continuous monitoring with real-time scoring',
|
|
||||||
'Slovenian': 'Neprekinjeno spremljanje z ocenjevanjem v živo',
|
|
||||||
},
|
|
||||||
|
|
||||||
// Live Detection Screen
|
// Live Detection Screen
|
||||||
'Capture Baseline': {
|
|
||||||
'English': 'Capture Baseline',
|
|
||||||
'Slovenian': 'Zajemi osnovno sliko',
|
|
||||||
},
|
|
||||||
'Position target and capture empty baseline': {
|
|
||||||
'English': 'Position target and capture empty baseline',
|
|
||||||
'Slovenian': 'Postavi tarčo in zajemi prazno osnovno sliko',
|
|
||||||
},
|
|
||||||
'Start Detection': {
|
|
||||||
'English': 'Start Detection',
|
|
||||||
'Slovenian': 'Začni zaznavanje',
|
|
||||||
},
|
|
||||||
'Stop Detection': {
|
|
||||||
'English': 'Stop Detection',
|
|
||||||
'Slovenian': 'Ustavi zaznavanje',
|
|
||||||
},
|
|
||||||
'Bullets Detected': {
|
|
||||||
'English': 'Bullets Detected',
|
|
||||||
'Slovenian': 'Zaznani zadetki',
|
|
||||||
},
|
|
||||||
'Current Score': {
|
|
||||||
'English': 'Current Score',
|
|
||||||
'Slovenian': 'Trenutna ocena',
|
|
||||||
},
|
|
||||||
'Monitoring...': {
|
|
||||||
'English': 'Monitoring...',
|
|
||||||
'Slovenian': 'Spremljanje...',
|
|
||||||
},
|
|
||||||
'Save & Exit': {
|
|
||||||
'English': 'Save & Exit',
|
|
||||||
'Slovenian': 'Shrani in zapri',
|
|
||||||
},
|
|
||||||
'Capturing baseline...': {
|
|
||||||
'English': 'Capturing baseline...',
|
|
||||||
'Slovenian': 'Zajemanje osnove...',
|
|
||||||
},
|
|
||||||
'Baseline captured!': {
|
|
||||||
'English': 'Baseline captured!',
|
|
||||||
'Slovenian': 'Osnova zajeta!',
|
|
||||||
},
|
|
||||||
'Analyzing frame...': {
|
|
||||||
'English': 'Analyzing frame...',
|
|
||||||
'Slovenian': 'Analiza slike...',
|
|
||||||
},
|
|
||||||
'New bullet detected!': {
|
|
||||||
'English': 'New bullet detected!',
|
|
||||||
'Slovenian': 'Nov zadetek zaznan!',
|
|
||||||
},
|
|
||||||
'Calculate Score': {
|
|
||||||
'English': 'Calculate Score',
|
|
||||||
'Slovenian': 'Izračunaj rezultat',
|
|
||||||
},
|
|
||||||
'Target reached': {
|
|
||||||
'English': 'Target reached',
|
|
||||||
'Slovenian': 'Cilj dosežen',
|
|
||||||
},
|
|
||||||
'bullets': {
|
'bullets': {
|
||||||
'English': 'bullets',
|
'English': 'bullets',
|
||||||
'Slovenian': 'zadetkov',
|
'Slovenian': 'zadetkov',
|
||||||
},
|
},
|
||||||
'Click Calculate Score to continue': {
|
|
||||||
'English': 'Click Calculate Score to continue',
|
|
||||||
'Slovenian': 'Kliknite Izračunaj rezultat za nadaljevanje',
|
|
||||||
},
|
|
||||||
|
|
||||||
// Delete confirmations
|
// Delete confirmations
|
||||||
'Are you sure you want to delete this file?': {
|
'Are you sure you want to delete this file?': {
|
||||||
@@ -703,10 +511,6 @@ class AppTranslations {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Brightness & Contrast dialog translations
|
// Brightness & Contrast dialog translations
|
||||||
'Brightness & Contrast': {
|
|
||||||
'English': 'Brightness & Contrast',
|
|
||||||
'Slovenian': 'Svetlost in kontrast',
|
|
||||||
},
|
|
||||||
'Brightness': {
|
'Brightness': {
|
||||||
'English': 'Brightness',
|
'English': 'Brightness',
|
||||||
'Slovenian': 'Svetlost',
|
'Slovenian': 'Svetlost',
|
||||||
@@ -733,42 +537,14 @@ class AppTranslations {
|
|||||||
'English': 'Could not launch phone call: ',
|
'English': 'Could not launch phone call: ',
|
||||||
'Slovenian': 'Ne morem zagnati klica: ',
|
'Slovenian': 'Ne morem zagnati klica: ',
|
||||||
},
|
},
|
||||||
'League / Competition': {
|
|
||||||
'English': 'League / Competition',
|
|
||||||
'Slovenian': 'Liga / Tekmovanje',
|
|
||||||
},
|
|
||||||
'Team Meeting': {
|
|
||||||
'English': 'Team Meeting',
|
|
||||||
'Slovenian': 'Sestanek ekipe',
|
|
||||||
},
|
|
||||||
'Duty Shift': {
|
|
||||||
'English': 'Duty Shift',
|
|
||||||
'Slovenian': 'Dežurstvo',
|
|
||||||
},
|
|
||||||
'TEKMOVANJE': {
|
|
||||||
'English': 'COMPETITION',
|
|
||||||
'Slovenian': 'TEKMOVANJE',
|
|
||||||
},
|
|
||||||
'COMPETITION': {
|
'COMPETITION': {
|
||||||
'English': 'COMPETITION',
|
'English': 'COMPETITION',
|
||||||
'Slovenian': 'TEKMOVANJE',
|
'Slovenian': 'TEKMOVANJE',
|
||||||
},
|
},
|
||||||
'SESTANEK': {
|
|
||||||
'English': 'MEETING',
|
|
||||||
'Slovenian': 'SESTANEK',
|
|
||||||
},
|
|
||||||
'MEETING': {
|
'MEETING': {
|
||||||
'English': 'MEETING',
|
'English': 'MEETING',
|
||||||
'Slovenian': 'SESTANEK',
|
'Slovenian': 'SESTANEK',
|
||||||
},
|
},
|
||||||
'Strelišče Ljubljana': {
|
|
||||||
'English': 'Shooting Range',
|
|
||||||
'Slovenian': 'Strelišče Ljubljana',
|
|
||||||
},
|
|
||||||
'Shooting Range': {
|
|
||||||
'English': 'Shooting Range',
|
|
||||||
'Slovenian': 'Strelišče Ljubljana',
|
|
||||||
},
|
|
||||||
'Phone': {
|
'Phone': {
|
||||||
'English': 'Phone',
|
'English': 'Phone',
|
||||||
'Slovenian': 'Telefon',
|
'Slovenian': 'Telefon',
|
||||||
@@ -781,38 +557,6 @@ class AppTranslations {
|
|||||||
'English': 'copied to clipboard',
|
'English': 'copied to clipboard',
|
||||||
'Slovenian': 'kopirano v odložišče',
|
'Slovenian': 'kopirano v odložišče',
|
||||||
},
|
},
|
||||||
'Select Cameras to Spectate': {
|
|
||||||
'English': 'Select Cameras to Spectate',
|
|
||||||
'Slovenian': 'Izberi kamere za ogled',
|
|
||||||
},
|
|
||||||
'Choose 1-6 cameras': {
|
|
||||||
'English': 'Choose 1-6 cameras',
|
|
||||||
'Slovenian': 'Izberi 1-6 kamer',
|
|
||||||
},
|
|
||||||
'No cameras configured': {
|
|
||||||
'English': 'No cameras configured',
|
|
||||||
'Slovenian': 'Ni nastavljenih kamer',
|
|
||||||
},
|
|
||||||
'View Cameras': {
|
|
||||||
'English': 'View Cameras',
|
|
||||||
'Slovenian': 'Prikaži kamere',
|
|
||||||
},
|
|
||||||
'Multi-Camera View': {
|
|
||||||
'English': 'Multi-Camera View',
|
|
||||||
'Slovenian': 'Več-kamerski pogled',
|
|
||||||
},
|
|
||||||
'Tap to return to grid': {
|
|
||||||
'English': 'Tap to return to grid',
|
|
||||||
'Slovenian': 'Tapni za vrnitev na mrežo',
|
|
||||||
},
|
|
||||||
'Stream unavailable': {
|
|
||||||
'English': 'Stream unavailable',
|
|
||||||
'Slovenian': 'Pretok ni na voljo',
|
|
||||||
},
|
|
||||||
'Select at least one camera': {
|
|
||||||
'English': 'Select at least one camera',
|
|
||||||
'Slovenian': 'Izberi vsaj eno kamero',
|
|
||||||
},
|
|
||||||
'Spectate': {
|
'Spectate': {
|
||||||
'English': 'Spectate',
|
'English': 'Spectate',
|
||||||
'Slovenian': 'Opazuj',
|
'Slovenian': 'Opazuj',
|
||||||
@@ -821,10 +565,6 @@ class AppTranslations {
|
|||||||
'English': 'Select Cameras',
|
'English': 'Select Cameras',
|
||||||
'Slovenian': 'Izberi kamere',
|
'Slovenian': 'Izberi kamere',
|
||||||
},
|
},
|
||||||
'Spectator Mode': {
|
|
||||||
'English': 'Spectator Mode',
|
|
||||||
'Slovenian': 'Način opazovanja',
|
|
||||||
},
|
|
||||||
'Please ensure:': {
|
'Please ensure:': {
|
||||||
'English': 'Please ensure:',
|
'English': 'Please ensure:',
|
||||||
'Slovenian': 'Prepričaj se:',
|
'Slovenian': 'Prepričaj se:',
|
||||||
@@ -843,62 +583,10 @@ class AppTranslations {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Analytics
|
// Analytics
|
||||||
'Analytics': {
|
|
||||||
'English': 'Analytics',
|
|
||||||
'Slovenian': 'Analitika',
|
|
||||||
},
|
|
||||||
'Compare Sessions': {
|
|
||||||
'English': 'Compare Sessions',
|
|
||||||
'Slovenian': 'Primerjaj treninge',
|
|
||||||
},
|
|
||||||
'Select 2-4 sessions': {
|
|
||||||
'English': 'Select 2-4 sessions to compare',
|
|
||||||
'Slovenian': 'Izberi 2-4 treninge za primerjavo',
|
|
||||||
},
|
|
||||||
'Select at least 2 sessions': {
|
|
||||||
'English': 'Select at least 2 sessions',
|
|
||||||
'Slovenian': 'Izberi vsaj 2 treninga',
|
|
||||||
},
|
|
||||||
'Max 4 sessions': {
|
|
||||||
'English': 'Maximum 4 sessions can be compared',
|
|
||||||
'Slovenian': 'Primerjati je mogoče največ 4 treninge',
|
|
||||||
},
|
|
||||||
'No sessions available': {
|
|
||||||
'English': 'No sessions available',
|
|
||||||
'Slovenian': 'Ni razpoložljivih treningov',
|
|
||||||
},
|
|
||||||
'No data for target': {
|
|
||||||
'English': 'No data for this target',
|
|
||||||
'Slovenian': 'Ni podatkov za to tarčo',
|
|
||||||
},
|
|
||||||
'Training View': {
|
|
||||||
'English': 'Training View',
|
|
||||||
'Slovenian': 'Pogled treninga',
|
|
||||||
},
|
|
||||||
'Training Comparison': {
|
|
||||||
'English': 'Training Comparison',
|
|
||||||
'Slovenian': 'Primerjava treningov',
|
|
||||||
},
|
|
||||||
'Tournament Comparison': {
|
|
||||||
'English': 'Tournament Comparison',
|
|
||||||
'Slovenian': 'Primerjava tekmovanj',
|
|
||||||
},
|
|
||||||
'Compare with': {
|
|
||||||
'English': 'Compare with',
|
|
||||||
'Slovenian': 'Primerjaj s',
|
|
||||||
},
|
|
||||||
'No folder selected': {
|
|
||||||
'English': 'No folder selected',
|
|
||||||
'Slovenian': 'Ni izbrane mape',
|
|
||||||
},
|
|
||||||
'Select': {
|
'Select': {
|
||||||
'English': 'Select',
|
'English': 'Select',
|
||||||
'Slovenian': 'Izberi',
|
'Slovenian': 'Izberi',
|
||||||
},
|
},
|
||||||
'Clear': {
|
|
||||||
'English': 'Clear',
|
|
||||||
'Slovenian': 'Počisti',
|
|
||||||
},
|
|
||||||
'Score': {
|
'Score': {
|
||||||
'English': 'Score',
|
'English': 'Score',
|
||||||
'Slovenian': 'Rezultat',
|
'Slovenian': 'Rezultat',
|
||||||
@@ -921,22 +609,10 @@ class AppTranslations {
|
|||||||
'English': 'Shooting Timer',
|
'English': 'Shooting Timer',
|
||||||
'Slovenian': 'Časovnik streljanja',
|
'Slovenian': 'Časovnik streljanja',
|
||||||
},
|
},
|
||||||
'What do you want to time?': {
|
|
||||||
'English': 'What do you want to time?',
|
|
||||||
'Slovenian': 'Kaj želiš časovno meriti?',
|
|
||||||
},
|
|
||||||
'Shoot only': {
|
'Shoot only': {
|
||||||
'English': 'Shoot only',
|
'English': 'Shoot only',
|
||||||
'Slovenian': 'Samo strel',
|
'Slovenian': 'Samo strel',
|
||||||
},
|
},
|
||||||
'Wait only': {
|
|
||||||
'English': 'Wait only',
|
|
||||||
'Slovenian': 'Samo čakanje',
|
|
||||||
},
|
|
||||||
'Both': {
|
|
||||||
'English': 'Both',
|
|
||||||
'Slovenian': 'Oboje',
|
|
||||||
},
|
|
||||||
'Shoot time': {
|
'Shoot time': {
|
||||||
'English': 'Shoot time',
|
'English': 'Shoot time',
|
||||||
'Slovenian': 'Čas strela',
|
'Slovenian': 'Čas strela',
|
||||||
@@ -965,14 +641,6 @@ class AppTranslations {
|
|||||||
'English': 'Change target sign',
|
'English': 'Change target sign',
|
||||||
'Slovenian': 'Znak zamenjave tarče',
|
'Slovenian': 'Znak zamenjave tarče',
|
||||||
},
|
},
|
||||||
'Bullet counter': {
|
|
||||||
'English': 'Bullet counter',
|
|
||||||
'Slovenian': 'Števec strelov',
|
|
||||||
},
|
|
||||||
'Disable': {
|
|
||||||
'English': 'Disable',
|
|
||||||
'Slovenian': 'Onemogoči',
|
|
||||||
},
|
|
||||||
'left': {
|
'left': {
|
||||||
'English': 'left',
|
'English': 'left',
|
||||||
'Slovenian': 'ostalo',
|
'Slovenian': 'ostalo',
|
||||||
@@ -987,14 +655,6 @@ class AppTranslations {
|
|||||||
'English': 'Event Reminders',
|
'English': 'Event Reminders',
|
||||||
'Slovenian': 'Opomniki za dogodke',
|
'Slovenian': 'Opomniki za dogodke',
|
||||||
},
|
},
|
||||||
'Notify before event': {
|
|
||||||
'English': 'Notify before event',
|
|
||||||
'Slovenian': 'Obvesti pred dogodkom',
|
|
||||||
},
|
|
||||||
'Hours before': {
|
|
||||||
'English': 'Hours before',
|
|
||||||
'Slovenian': 'Ur pred dogodkom',
|
|
||||||
},
|
|
||||||
'hour': {
|
'hour': {
|
||||||
'English': 'hour',
|
'English': 'hour',
|
||||||
'Slovenian': 'ura',
|
'Slovenian': 'ura',
|
||||||
@@ -1003,18 +663,6 @@ class AppTranslations {
|
|||||||
'English': 'hours',
|
'English': 'hours',
|
||||||
'Slovenian': 'ur',
|
'Slovenian': 'ur',
|
||||||
},
|
},
|
||||||
'Notifications enabled': {
|
|
||||||
'English': 'Notifications enabled',
|
|
||||||
'Slovenian': 'Obvestila vključena',
|
|
||||||
},
|
|
||||||
'Notifications disabled': {
|
|
||||||
'English': 'Notifications disabled',
|
|
||||||
'Slovenian': 'Obvestila izključena',
|
|
||||||
},
|
|
||||||
'Event types': {
|
|
||||||
'English': 'Event types',
|
|
||||||
'Slovenian': 'Vrste dogodkov',
|
|
||||||
},
|
|
||||||
'Dežuranje': {
|
'Dežuranje': {
|
||||||
'English': 'Duty shifts',
|
'English': 'Duty shifts',
|
||||||
'Slovenian': 'Dežuranje',
|
'Slovenian': 'Dežuranje',
|
||||||
@@ -1048,10 +696,6 @@ class AppTranslations {
|
|||||||
'English': '{n} cameras',
|
'English': '{n} cameras',
|
||||||
'Slovenian': '{n} kamer',
|
'Slovenian': '{n} kamer',
|
||||||
},
|
},
|
||||||
'Quick setup': {
|
|
||||||
'English': 'Quick setup',
|
|
||||||
'Slovenian': 'Hitra nastavitev',
|
|
||||||
},
|
|
||||||
'Set all cameras from one IP': {
|
'Set all cameras from one IP': {
|
||||||
'English': 'Set all cameras from one IP',
|
'English': 'Set all cameras from one IP',
|
||||||
'Slovenian': 'Nastavi vse kamere z enim IP',
|
'Slovenian': 'Nastavi vse kamere z enim IP',
|
||||||
@@ -1121,10 +765,6 @@ class AppTranslations {
|
|||||||
'English': 'Statistics',
|
'English': 'Statistics',
|
||||||
'Slovenian': 'Statistika',
|
'Slovenian': 'Statistika',
|
||||||
},
|
},
|
||||||
'Best target': {
|
|
||||||
'English': 'Best target',
|
|
||||||
'Slovenian': 'Najboljša tarča',
|
|
||||||
},
|
|
||||||
'Average target': {
|
'Average target': {
|
||||||
'English': 'Average target',
|
'English': 'Average target',
|
||||||
'Slovenian': 'Povprečna tarča',
|
'Slovenian': 'Povprečna tarča',
|
||||||
@@ -1169,14 +809,6 @@ class AppTranslations {
|
|||||||
'English': 'History',
|
'English': 'History',
|
||||||
'Slovenian': 'Zgodovina',
|
'Slovenian': 'Zgodovina',
|
||||||
},
|
},
|
||||||
'Average per shot by session': {
|
|
||||||
'English': 'Average per shot by session',
|
|
||||||
'Slovenian': 'Povprečje na strel po treningih',
|
|
||||||
},
|
|
||||||
'Shoot at least two sessions to see your progress': {
|
|
||||||
'English': 'Shoot at least two sessions to see your progress',
|
|
||||||
'Slovenian': 'Za prikaz napredka potrebuješ vsaj dva treninga',
|
|
||||||
},
|
|
||||||
'Edit': {
|
'Edit': {
|
||||||
'English': 'Edit',
|
'English': 'Edit',
|
||||||
'Slovenian': 'Uredi',
|
'Slovenian': 'Uredi',
|
||||||
@@ -1189,10 +821,6 @@ class AppTranslations {
|
|||||||
'English': 'A folder with this name already exists',
|
'English': 'A folder with this name already exists',
|
||||||
'Slovenian': 'Mapa s tem imenom že obstaja',
|
'Slovenian': 'Mapa s tem imenom že obstaja',
|
||||||
},
|
},
|
||||||
'last training': {
|
|
||||||
'English': 'vs. last training',
|
|
||||||
'Slovenian': 'zadnji trening',
|
|
||||||
},
|
|
||||||
'Details': {
|
'Details': {
|
||||||
'English': 'Details',
|
'English': 'Details',
|
||||||
'Slovenian': 'Podrobnosti',
|
'Slovenian': 'Podrobnosti',
|
||||||
@@ -1374,6 +1002,14 @@ class AppTranslations {
|
|||||||
'English': 'Member access is currently available only for SDK Kovinar Muta. Support for other clubs may be added in the future.',
|
'English': 'Member access is currently available only for SDK Kovinar Muta. Support for other clubs may be added in the future.',
|
||||||
'Slovenian': 'Članski dostop je trenutno na voljo samo za SDK Kovinar Muta. V prihodnje bo morda podprt tudi za druge klube.',
|
'Slovenian': 'Članski dostop je trenutno na voljo samo za SDK Kovinar Muta. V prihodnje bo morda podprt tudi za druge klube.',
|
||||||
},
|
},
|
||||||
|
'Average': {
|
||||||
|
'English': 'Average',
|
||||||
|
'Slovenian': 'Povprečje',
|
||||||
|
},
|
||||||
|
'Sum': {
|
||||||
|
'English': 'Sum',
|
||||||
|
'Slovenian': 'Skupek',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static String translate(String key, String language) {
|
static String translate(String key, String language) {
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ class SheetSlider extends StatelessWidget {
|
|||||||
final Color accent;
|
final Color accent;
|
||||||
final ValueChanged<double> onChanged;
|
final ValueChanged<double> onChanged;
|
||||||
|
|
||||||
const SheetSlider({
|
const SheetSlider({super.key,
|
||||||
required this.icon,
|
required this.icon,
|
||||||
required this.label,
|
required this.label,
|
||||||
required this.valueText,
|
required this.valueText,
|
||||||
@@ -140,7 +140,7 @@ class SheetToggle extends StatelessWidget {
|
|||||||
final Color accent;
|
final Color accent;
|
||||||
final VoidCallback onTap;
|
final VoidCallback onTap;
|
||||||
|
|
||||||
const SheetToggle({
|
const SheetToggle({super.key,
|
||||||
required this.icon,
|
required this.icon,
|
||||||
required this.label,
|
required this.label,
|
||||||
required this.active,
|
required this.active,
|
||||||
|
|||||||
@@ -6,13 +6,9 @@
|
|||||||
|
|
||||||
#include "generated_plugin_registrant.h"
|
#include "generated_plugin_registrant.h"
|
||||||
|
|
||||||
#include <file_selector_linux/file_selector_plugin.h>
|
|
||||||
#include <url_launcher_linux/url_launcher_plugin.h>
|
#include <url_launcher_linux/url_launcher_plugin.h>
|
||||||
|
|
||||||
void fl_register_plugins(FlPluginRegistry* registry) {
|
void fl_register_plugins(FlPluginRegistry* registry) {
|
||||||
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
|
|
||||||
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
|
|
||||||
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
|
|
||||||
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
|
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
|
||||||
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
|
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
|
||||||
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
|
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
list(APPEND FLUTTER_PLUGIN_LIST
|
list(APPEND FLUTTER_PLUGIN_LIST
|
||||||
file_selector_linux
|
|
||||||
url_launcher_linux
|
url_launcher_linux
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+12
-236
@@ -106,7 +106,7 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.2"
|
version: "1.1.2"
|
||||||
collection:
|
collection:
|
||||||
dependency: "direct main"
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: collection
|
name: collection
|
||||||
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
|
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
|
||||||
@@ -137,14 +137,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.9.0"
|
version: "2.9.0"
|
||||||
cupertino_icons:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: cupertino_icons
|
|
||||||
sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "1.0.8"
|
|
||||||
dbus:
|
dbus:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -177,51 +169,11 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "7.0.1"
|
version: "7.0.1"
|
||||||
file_selector_linux:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: file_selector_linux
|
|
||||||
sha256: "54cbbd957e1156d29548c7d9b9ec0c0ebb6de0a90452198683a7d23aed617a33"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "0.9.3+2"
|
|
||||||
file_selector_macos:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: file_selector_macos
|
|
||||||
sha256: "271ab9986df0c135d45c3cdb6bd0faa5db6f4976d3e4b437cf7d0f258d941bfc"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "0.9.4+2"
|
|
||||||
file_selector_platform_interface:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: file_selector_platform_interface
|
|
||||||
sha256: a3994c26f10378a039faa11de174d7b78eb8f79e4dd0af2a451410c1a5c3f66b
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "2.6.2"
|
|
||||||
file_selector_windows:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: file_selector_windows
|
|
||||||
sha256: "320fcfb6f33caa90f0b58380489fc5ac05d99ee94b61aa96ec2bff0ba81d3c2b"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "0.9.3+4"
|
|
||||||
flutter:
|
flutter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description: flutter
|
description: flutter
|
||||||
source: sdk
|
source: sdk
|
||||||
version: "0.0.0"
|
version: "0.0.0"
|
||||||
flutter_exif_rotation:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: flutter_exif_rotation
|
|
||||||
sha256: f581601523bbb7fbec3a0498fe930bf6c48f627d4548d859b2772230edfbe658
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "0.5.2"
|
|
||||||
flutter_hooks:
|
flutter_hooks:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -231,7 +183,7 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "0.21.2"
|
version: "0.21.2"
|
||||||
flutter_launcher_icons:
|
flutter_launcher_icons:
|
||||||
dependency: "direct main"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
name: flutter_launcher_icons
|
name: flutter_launcher_icons
|
||||||
sha256: bfa04787c85d80ecb3f8777bde5fc10c3de809240c48fa061a2c2bf15ea5211c
|
sha256: bfa04787c85d80ecb3f8777bde5fc10c3de809240c48fa061a2c2bf15ea5211c
|
||||||
@@ -286,14 +238,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.27"
|
version: "2.0.27"
|
||||||
flutter_svg:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: flutter_svg
|
|
||||||
sha256: c200fd79c918a40c5cd50ea0877fa13f81bdaf6f0a5d3dbcc2a13e3285d6aa1b
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "2.0.17"
|
|
||||||
flutter_test:
|
flutter_test:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description: flutter
|
description: flutter
|
||||||
@@ -313,7 +257,7 @@ packages:
|
|||||||
source: sdk
|
source: sdk
|
||||||
version: "0.0.0"
|
version: "0.0.0"
|
||||||
http:
|
http:
|
||||||
dependency: "direct overridden"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: http
|
name: http
|
||||||
sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2"
|
sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2"
|
||||||
@@ -336,70 +280,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "4.5.4"
|
version: "4.5.4"
|
||||||
image_picker:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: image_picker
|
|
||||||
sha256: "021834d9c0c3de46bf0fe40341fa07168407f694d9b2bb18d532dc1261867f7a"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "1.1.2"
|
|
||||||
image_picker_android:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: image_picker_android
|
|
||||||
sha256: "8bd392ba8b0c8957a157ae0dc9fcf48c58e6c20908d5880aea1d79734df090e9"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "0.8.12+22"
|
|
||||||
image_picker_for_web:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: image_picker_for_web
|
|
||||||
sha256: "717eb042ab08c40767684327be06a5d8dbb341fe791d514e4b92c7bbe1b7bb83"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "3.0.6"
|
|
||||||
image_picker_ios:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: image_picker_ios
|
|
||||||
sha256: "05da758e67bc7839e886b3959848aa6b44ff123ab4b28f67891008afe8ef9100"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "0.8.12+2"
|
|
||||||
image_picker_linux:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: image_picker_linux
|
|
||||||
sha256: "34a65f6740df08bbbeb0a1abd8e6d32107941fd4868f67a507b25601651022c9"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "0.2.1+2"
|
|
||||||
image_picker_macos:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: image_picker_macos
|
|
||||||
sha256: "1b90ebbd9dcf98fb6c1d01427e49a55bd96b5d67b8c67cf955d60a5de74207c1"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "0.2.1+2"
|
|
||||||
image_picker_platform_interface:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: image_picker_platform_interface
|
|
||||||
sha256: "886d57f0be73c4b140004e78b9f28a8914a09e50c2d816bdd0520051a71236a0"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "2.10.1"
|
|
||||||
image_picker_windows:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: image_picker_windows
|
|
||||||
sha256: "6ad07afc4eb1bc25f3a01084d28520496c4a3bb0cb13685435838167c9dcedeb"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "0.2.1+1"
|
|
||||||
intl:
|
intl:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -452,10 +332,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: matcher
|
name: matcher
|
||||||
sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
|
sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.12.19"
|
version: "0.12.20"
|
||||||
material_color_utilities:
|
material_color_utilities:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -468,18 +348,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: meta
|
name: meta
|
||||||
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
|
sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.17.0"
|
version: "1.19.0"
|
||||||
mime:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: mime
|
|
||||||
sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "2.0.0"
|
|
||||||
package_info_plus:
|
package_info_plus:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -504,14 +376,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.9.1"
|
version: "1.9.1"
|
||||||
path_parsing:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: path_parsing
|
|
||||||
sha256: "883402936929eac138ee0a45da5b0f2c80f89913e6dc3bf77eb65b84b409c6ca"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "1.1.0"
|
|
||||||
path_provider:
|
path_provider:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -568,14 +432,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "6.1.0"
|
version: "6.1.0"
|
||||||
photo_view:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: photo_view
|
|
||||||
sha256: "1fc3d970a91295fbd1364296575f854c9863f225505c28c46e0a03e48960c75e"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "0.15.0"
|
|
||||||
platform:
|
platform:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -608,14 +464,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.2.2"
|
version: "3.2.2"
|
||||||
screenshot:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: screenshot
|
|
||||||
sha256: "63817697a7835e6ce82add4228e15d233b74d42975c143ad8cfe07009fab866b"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "3.0.0"
|
|
||||||
shared_preferences:
|
shared_preferences:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -672,14 +520,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.4.1"
|
version: "2.4.1"
|
||||||
simple_gesture_detector:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: simple_gesture_detector
|
|
||||||
sha256: ba2cd5af24ff20a0b8d609cec3f40e5b0744d2a71804a2616ae086b9c19d19a3
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "0.2.1"
|
|
||||||
sky_engine:
|
sky_engine:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description: flutter
|
description: flutter
|
||||||
@@ -725,14 +565,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.4.1"
|
version: "1.4.1"
|
||||||
table_calendar:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: table_calendar
|
|
||||||
sha256: "0c0c6219878b363a2d5f40c7afb159d845f253d061dc3c822aa0d5fe0f721982"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "3.2.0"
|
|
||||||
term_glyph:
|
term_glyph:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -745,10 +577,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: test_api
|
name: test_api
|
||||||
sha256: "8161c84903fd860b26bfdefb7963b3f0b68fee7adea0f59ef805ecca346f0c7a"
|
sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.7.10"
|
version: "0.7.12"
|
||||||
tflite_flutter:
|
tflite_flutter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -837,38 +669,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.1.4"
|
version: "3.1.4"
|
||||||
vector_graphics:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: vector_graphics
|
|
||||||
sha256: "44cc7104ff32563122a929e4620cf3efd584194eec6d1d913eb5ba593dbcf6de"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "1.1.18"
|
|
||||||
vector_graphics_codec:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: vector_graphics_codec
|
|
||||||
sha256: "99fd9fbd34d9f9a32efd7b6a6aae14125d8237b10403b422a6a6dfeac2806146"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "1.1.13"
|
|
||||||
vector_graphics_compiler:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: vector_graphics_compiler
|
|
||||||
sha256: "1b4b9e706a10294258727674a340ae0d6e64a7231980f9f9a3d12e4b42407aad"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "1.1.16"
|
|
||||||
vector_math:
|
vector_math:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: vector_math
|
name: vector_math
|
||||||
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
|
sha256: fa49e1674cb84acb900141714e6c6e1f9ae099827c24d141430ff6819db4e1bc
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.2.0"
|
version: "2.4.4"
|
||||||
visibility_detector:
|
visibility_detector:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -909,38 +717,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.1"
|
version: "1.1.1"
|
||||||
webview_flutter:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: webview_flutter
|
|
||||||
sha256: "889a0a678e7c793c308c68739996227c9661590605e70b1f6cf6b9a6634f7aec"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "4.10.0"
|
|
||||||
webview_flutter_android:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: webview_flutter_android
|
|
||||||
sha256: e09150b28a07933839adef0e4a088bb43e8c8d9e6b93025b01882d4067a58ab0
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "4.3.4"
|
|
||||||
webview_flutter_platform_interface:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: webview_flutter_platform_interface
|
|
||||||
sha256: d937581d6e558908d7ae3dc1989c4f87b786891ab47bb9df7de548a151779d8d
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "2.10.0"
|
|
||||||
webview_flutter_wkwebview:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: webview_flutter_wkwebview
|
|
||||||
sha256: c49a98510080378b1525132f407a92c3dcd3b7145bef04fb8137724aadcf1cf0
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "3.18.4"
|
|
||||||
win32:
|
win32:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -974,5 +750,5 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "3.1.3"
|
version: "3.1.3"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=3.9.0-0 <4.0.0"
|
dart: ">=3.11.0-0 <4.0.0"
|
||||||
flutter: ">=3.29.0"
|
flutter: ">=3.29.0"
|
||||||
|
|||||||
+2
-20
@@ -2,7 +2,7 @@ name: test1
|
|||||||
description: A new Flutter project.
|
description: A new Flutter project.
|
||||||
publish_to: 'none' # This prevents publishing to pub.dev
|
publish_to: 'none' # This prevents publishing to pub.dev
|
||||||
|
|
||||||
version: 1.2.0+5
|
version: 1.3.0+6
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.3.0 <4.0.0'
|
sdk: '>=3.3.0 <4.0.0'
|
||||||
@@ -10,26 +10,14 @@ environment:
|
|||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
cupertino_icons: ^1.0.8
|
|
||||||
shared_preferences: ^2.2.2
|
shared_preferences: ^2.2.2
|
||||||
photo_view: ^0.15.0
|
|
||||||
screenshot: ^3.0.0
|
|
||||||
flutter_mjpeg: ^2.0.0
|
flutter_mjpeg: ^2.0.0
|
||||||
webview_flutter: ^4.4.1
|
|
||||||
webview_flutter_android: ^4.3.3
|
|
||||||
webview_flutter_wkwebview: ^3.7.4
|
|
||||||
intl: any
|
intl: any
|
||||||
flutter_exif_rotation: any
|
|
||||||
flutter_launcher_icons: ^0.14.3
|
|
||||||
flutter_svg: ^2.0.9
|
|
||||||
collection: ^1.17.2
|
|
||||||
table_calendar: ^3.1.2
|
|
||||||
|
|
||||||
tflite_flutter: ^0.11.0
|
tflite_flutter: ^0.11.0
|
||||||
image: ^4.5.4
|
image: ^4.5.4
|
||||||
camera: ^0.10.0
|
camera: ^0.10.0
|
||||||
path_provider: ^2.0.15
|
path_provider: ^2.0.15
|
||||||
image_picker: ^1.0.4
|
|
||||||
wakelock_plus: ^1.2.11
|
wakelock_plus: ^1.2.11
|
||||||
url_launcher: ^6.1.0
|
url_launcher: ^6.1.0
|
||||||
flutter_local_notifications: ^18.0.1
|
flutter_local_notifications: ^18.0.1
|
||||||
@@ -37,15 +25,13 @@ dependencies:
|
|||||||
flutter_timezone: ^3.0.0
|
flutter_timezone: ^3.0.0
|
||||||
package_info_plus: ^8.3.0
|
package_info_plus: ^8.3.0
|
||||||
cryptography: ^2.9.0
|
cryptography: ^2.9.0
|
||||||
|
|
||||||
dependency_overrides:
|
|
||||||
http: ^0.13.6
|
http: ^0.13.6
|
||||||
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_lints: ^5.0.0
|
flutter_lints: ^5.0.0
|
||||||
|
flutter_launcher_icons: ^0.14.3
|
||||||
|
|
||||||
flutter_icons:
|
flutter_icons:
|
||||||
android: true
|
android: true
|
||||||
@@ -57,10 +43,6 @@ flutter:
|
|||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
assets:
|
assets:
|
||||||
- assets/club.enc
|
- assets/club.enc
|
||||||
- assets/logo.png
|
|
||||||
- assets/logo.svg
|
|
||||||
- assets/target.png
|
- assets/target.png
|
||||||
- assets/target.svg
|
|
||||||
- assets/google_logo.png
|
|
||||||
- assets/best_float32_nms.tflite
|
- assets/best_float32_nms.tflite
|
||||||
- assets/targets/
|
- assets/targets/
|
||||||
|
|||||||
Reference in New Issue
Block a user