Skip to content

Commit

Permalink
sample app change
Browse files Browse the repository at this point in the history
  • Loading branch information
raamcosta committed Jul 15, 2023
1 parent e921988 commit 5797233
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ targetSdk = "34"

kotlin = "1.8.22"
dependencyCheckPluginVersion = "0.47.0"
gradlePluginVersion = "8.2.0-alpha11"
gradlePluginVersion = "8.2.0-alpha12"
mavenPublishPluginVersion = "0.25.3"

composeViewModel = "2.6.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.ramcosta.destinations.sample

import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
Expand Down Expand Up @@ -46,7 +47,7 @@ fun SampleApp() {
engine = engine,
navController = navController,
navGraph = NavGraphs.root,
modifier = Modifier.padding(it),
modifier = Modifier.padding(it).fillMaxSize(),
startRoute = startRoute
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.ramcosta.destinations.sample.account

import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.ramcosta.composedestinations.annotation.Destination
import com.ramcosta.destinations.sample.core.viewmodel.viewModel

Expand All @@ -12,7 +14,7 @@ fun AccountScreen(
vm: AccountViewModel = viewModel(),
) {

Button(onClick = { vm.onLogoutClick() }) {
Button(onClick = { vm.onLogoutClick() }, modifier = Modifier.wrapContentSize()) {
Text("Logout")
}

Expand Down

0 comments on commit 5797233

Please sign in to comment.