Few things:

- Speed up the fade animation a tad bit
- Added a back arrow in the scan screen
- Improved a bit the placeholder of the battles screen, since it'd throw out the transition animation.
This commit is contained in:
Nacho 2025-07-29 00:01:02 +02:00
parent 1a150ce7ce
commit 13051145b7
2 changed files with 2 additions and 11 deletions

View File

@ -1,7 +1,5 @@
package com.github.nacabaro.vbhelper.navigation
import androidx.compose.animation.AnimatedContentTransitionScope
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
@ -71,9 +69,7 @@ fun AppNavigation(
) {
composable(NavigationItems.Battles.route) {
BattlesScreen(
navController = navController
)
BattlesScreen()
}
composable(NavigationItems.Home.route) {
HomeScreen(

View File

@ -4,20 +4,15 @@ import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.navigation.NavController
import com.github.nacabaro.vbhelper.components.TopBanner
import com.github.nacabaro.vbhelper.navigation.NavigationItems
@Composable
fun BattlesScreen(
navController: NavController
) {
fun BattlesScreen() {
Scaffold (
topBar = {
TopBanner(