Skip to content

Commit

Permalink
Added modifier arguments to Supra Scaffolds
Browse files Browse the repository at this point in the history
  • Loading branch information
h0ker committed Aug 27, 2024
1 parent 7c98b25 commit ed7c51b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
applicationId = "com.hoker.supraexample"
minSdk = 28
targetSdk = 35
versionCode = 7
versionName = "0.0.7"
versionCode = 8
versionName = "0.0.8"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
2 changes: 1 addition & 1 deletion supra/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ afterEvaluate {
from(components["release"])
groupId = "com.github.hoker"
artifactId = "Supra"
version = "0.0.7"
version = "0.0.8"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import androidx.hilt.navigation.compose.hiltViewModel

@Composable
fun SupraGyroScaffold(
modifier: Modifier = Modifier,
topBar: (@Composable () -> Unit)? = null,
bottomBar: (@Composable () -> Unit)? = null,
borderColor: Color,
Expand All @@ -37,6 +38,7 @@ fun SupraGyroScaffold(
val animatedYOffset = animateDpAsState(targetValue = yOffset.dp, label = "")

Scaffold(
modifier = modifier,
topBar = {
topBar?.invoke()
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ import androidx.compose.ui.unit.dp

@Composable
fun SupraScaffold(
modifier: Modifier = Modifier,
topBar: (@Composable () -> Unit)? = null,
bottomBar: (@Composable () -> Unit)? = null,
borderColor: Color,
backgroundColor: Color,
content: @Composable (modifier: Modifier) -> Unit
){
Scaffold (
modifier = modifier,
topBar = {
topBar?.invoke()
},
Expand Down

0 comments on commit ed7c51b

Please sign in to comment.