1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-04 02:46:47 +01:00

feat(mobile): spinning flower (#1740)

This commit is contained in:
Alex 2023-02-12 22:49:53 -06:00 committed by GitHub
parent 12a6a7d95a
commit d555ee737b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,9 @@ class LoginForm extends HookConsumerWidget {
final isLoading = useState<bool>(false); final isLoading = useState<bool>(false);
final isOauthEnable = useState<bool>(false); final isOauthEnable = useState<bool>(false);
final oAuthButtonLabel = useState<String>('OAuth'); final oAuthButtonLabel = useState<String>('OAuth');
final logoAnimationController = useAnimationController(
duration: const Duration(seconds: 60),
)..repeat();
getServeLoginConfig() async { getServeLoginConfig() async {
if (!serverEndpointFocusNode.hasFocus) { if (!serverEndpointFocusNode.hasFocus) {
@ -100,10 +103,13 @@ class LoginForm extends HookConsumerWidget {
children: [ children: [
GestureDetector( GestureDetector(
onDoubleTap: () => populateTestLoginInfo(), onDoubleTap: () => populateTestLoginInfo(),
child: const Image( child: RotationTransition(
image: AssetImage('assets/immich-logo-no-outline.png'), turns: logoAnimationController,
width: 100, child: const Image(
filterQuality: FilterQuality.high, image: AssetImage('assets/immich-logo-no-outline.png'),
width: 100,
filterQuality: FilterQuality.high,
),
), ),
), ),
Text( Text(