Disabled mouse elements on loading screen

This commit is contained in:
Abdelilah El Aissaoui 2023-07-18 16:59:30 +02:00
parent 33188c4dc8
commit 4295e8b7f7
No known key found for this signature in database
GPG Key ID: 7587FC860F594869

View File

@ -2,6 +2,8 @@ package com.jetpackduba.gitnuro.ui
import androidx.compose.animation.Crossfade
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.*
import androidx.compose.material.LinearProgressIndicator
import androidx.compose.material.MaterialTheme
@ -106,7 +108,12 @@ fun AppTab(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colors.surface)
.onPreviewKeyEvent { true }, // Disable all keyboard events
.onPreviewKeyEvent { true } // Disable all keyboard events
.clickable(
interactionSource = remember { MutableInteractionSource() },
indication = null,
onClick = {},
),
contentAlignment = Alignment.Center,
) {
Column(