From d555ee737bbb4f5384fd7284d145ea899049ab43 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 12 Feb 2023 22:49:53 -0600 Subject: [PATCH] feat(mobile): spinning flower (#1740) --- mobile/lib/modules/login/ui/login_form.dart | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/mobile/lib/modules/login/ui/login_form.dart b/mobile/lib/modules/login/ui/login_form.dart index c834fc1543..1050da9e50 100644 --- a/mobile/lib/modules/login/ui/login_form.dart +++ b/mobile/lib/modules/login/ui/login_form.dart @@ -32,6 +32,9 @@ class LoginForm extends HookConsumerWidget { final isLoading = useState(false); final isOauthEnable = useState(false); final oAuthButtonLabel = useState('OAuth'); + final logoAnimationController = useAnimationController( + duration: const Duration(seconds: 60), + )..repeat(); getServeLoginConfig() async { if (!serverEndpointFocusNode.hasFocus) { @@ -100,10 +103,13 @@ class LoginForm extends HookConsumerWidget { children: [ GestureDetector( onDoubleTap: () => populateTestLoginInfo(), - child: const Image( - image: AssetImage('assets/immich-logo-no-outline.png'), - width: 100, - filterQuality: FilterQuality.high, + child: RotationTransition( + turns: logoAnimationController, + child: const Image( + image: AssetImage('assets/immich-logo-no-outline.png'), + width: 100, + filterQuality: FilterQuality.high, + ), ), ), Text(