This file contains 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
// Inside my app/build.gradle.kts | |
dependencies { | |
// Google Maps | |
implementation(libs.google.maps.compose) | |
} |
This file contains 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
[versions] | |
googleMapsCompose = "6.5.2" | |
[libraries] | |
## Google Maps Compose: simplifies the integration of Google Maps into Jetpack Compose by providing | |
## composable functions that wrap the Maps SDK | |
google-maps-compose = { group = "com.google.maps.android", name = "maps-compose", version.ref = "googleMapsCompose" } |
This file contains 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
/** | |
* A composable function that displays the main notes screen in the app. | |
* This screen dynamically updates its content based on the UI state provided by the ViewModel. | |
* | |
* @param viewModel The ViewModel that provides the state and handles user interactions. | |
*/ | |
@Composable | |
fun NotesScreen( | |
viewModel: NoteViewModel | |
) { |
This file contains 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
/** | |
* The main composable function for setting up the app's UI structure. | |
* It defines the scaffold layout, navigation, and other top-level elements for the app. | |
* | |
* @param navController The navigation controller for managing app navigation. | |
* @param snackbarHostState The state for displaying snackbars in the app. | |
*/ | |
@OptIn(ExperimentalMaterial3Api::class) | |
@Composable | |
fun MainApp( |
NewerOlder