Skip to content

Commit

Permalink
snackbarの色修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ptkNktq committed Oct 20, 2023
1 parent efdb928 commit e43a19b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import androidx.compose.material.Divider
import androidx.compose.material.OutlinedButton
import androidx.compose.material.Scaffold
import androidx.compose.material.ScaffoldState
import androidx.compose.material.Snackbar
import androidx.compose.material.SnackbarHost
import androidx.compose.material.Text
import androidx.compose.material.TopAppBar
import androidx.compose.material.icons.Icons
Expand All @@ -26,6 +28,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.graphics.ColorMatrix
import androidx.compose.ui.graphics.asImageBitmap
Expand All @@ -50,6 +53,11 @@ fun AppScaffold(
topBar = { TopBar() },
bottomBar = bottomBar,
scaffoldState = scaffoldState,
snackbarHost = {
SnackbarHost(it) { data ->
Snackbar(snackbarData = data, actionColor = Color.White)
}
},
modifier = Modifier.systemBarsPadding(),
content = content
)
Expand Down

0 comments on commit e43a19b

Please sign in to comment.