This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun Arrow() { | |
Canvas( | |
modifier = Modifier | |
.size(400.dp) | |
.padding(16.dp) | |
) { | |
val canvasWidth = size.width //full width of drawing area | |
val canvasHeight = size.height //full height of drawing area | |
val path = Path() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Screen Template | |
package ${PACKAGE_NAME} | |
import androidx.compose.runtime.Composable | |
import androidx.navigation.NavController | |
@Composable | |
fun ${NAME}Screen( | |
${NAME}State: ${NAME}UIState, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SuppressLint("ComposableDestinationInComposeScope") | |
@Composable | |
fun NavGraphBuilder.${NAME}ScreenRoute( | |
navController: NavController, | |
viewModel: ${NAME}ViewModel = hiltViewModel() | |
){ | |
composable( | |
route = ROUTE, | |
// arguments = listOf(navArgument("exampleArg") { NavType.IntType }), |