Show app version in UI (welcome title + session sheet footer)
ci / core (push) Successful in 22s
ci / server (push) Successful in 26s
release / linux (push) Failing after 2m2s

Reads the same stamped appVersion const the updater compares, so
the displayed version and the update logic can never disagree. Dev
runs show 0.0.0-dev.
This commit is contained in:
foxyz committed 2026-09-12 21:18:32 +03:00
1 parent b829f13437
commit f784b554b9
2 files changed
+7

No files matched your search

@@ -6,6 +6,7 @@ import 'package:sync_relay_core/core.dart';
import '../session/health.dart'; import '../session/health.dart';
import '../state/session_state.dart'; import '../state/session_state.dart';
import '../update/updater.dart';
import '../widgets/dialogs.dart'; import '../widgets/dialogs.dart';
import '../widgets/member_avatar.dart'; import '../widgets/member_avatar.dart';
import '../widgets/window_buttons.dart'; import '../widgets/window_buttons.dart';
@@ -681,6 +682,10 @@ class _SheetPanel extends StatelessWidget {
onPressed: onLeave, onPressed: onLeave,
), ),
), ),
const SizedBox(height: 8),
const Center(
child: Text('v$appVersion', style: TextStyle(fontSize: 11, color: Colors.grey)),
),
], ],
); );
}, },
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import '../state/session_state.dart'; import '../state/session_state.dart';
import '../update/updater.dart';
import '../widgets/window_chrome_bar.dart'; import '../widgets/window_chrome_bar.dart';
class WelcomeScreen extends StatelessWidget { class WelcomeScreen extends StatelessWidget {
@@ -32,6 +33,7 @@ class _WelcomeBody extends StatelessWidget {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
const Text('Watch Together', style: TextStyle(fontSize: 24)), const Text('Watch Together', style: TextStyle(fontSize: 24)),
Text('v$appVersion', style: const TextStyle(fontSize: 12, color: Colors.grey)),
const SizedBox(height: 8), const SizedBox(height: 8),
const Text( const Text(
'Set your name + avatar on the next screen.', 'Set your name + avatar on the next screen.',