Add device-wide animation speed setting

This commit is contained in:
2026-11-07 02:43:00 +00:00
parent b33970182c
commit 049a551432
8 changed files with 375 additions and 0 deletions
+3
View File
@@ -8,6 +8,7 @@ import 'server_endpoint.dart';
import '../features/settings/settings_store.dart';
import '../ui/theme/app_font_controller.dart';
import '../ui/theme/app_font_licenses.dart';
import '../ui/motion/animation_speed.dart';
/// Native builds must supply their server explicitly; there is no baked host.
const configuredServerUrl = String.fromEnvironment('PIPELINES_SERVER_URL');
@@ -55,10 +56,12 @@ Future<void> runPipelinesApp({
registerAppFontLicenses();
// The device's chosen font loads beside the session; a slow download does
// not hold the first frame, and applies when it lands.
final animationSpeed = AnimationSpeedController.instance.restore();
final font = AppFontController.instance.restore(wait: appFontStartupWait);
// A phone behind the web login reconnects with its kept session.
await ServerSession.load();
await font;
await animationSpeed;
final server = await resolveLaunchServer(
base: base,
configured: configured,