Skip to content

Instantly share code, notes, and snippets.

View callebdev's full-sized avatar
📱
building experiences

Calleb Joel Miquissene callebdev

📱
building experiences
View GitHub Profile
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
YourAppTheme {
NavigationGraph()
}
}
}
@Composable
fun SecondScreen(navController: NavController) {
Column(
modifier = Modifier.fillMaxSize(),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally
) {
Text(
text = "Go to First Screen",
color = Color.Black,
@Composable
fun FirstScreen(navController: NavController) {
Column(
modifier = Modifier.fillMaxSize(),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally
) {
Text(
text = "Go to Second Screen",
color = Color.Black,
@callebdev
callebdev / NavHost.kt
Last active September 26, 2021 00:40
@Composable
fun NavigationGraph() {
val navController = rememberNavController()
NavHost(
navController = navController,
startDestination = "firstScreen"
) {
val navController = rememberNavController()
@callebdev
callebdev / build.gradle
Created September 6, 2021 20:25
Dependencia do Jetpack Compose Navigation
dependencies {
implementation "androidx.navigation:navigation-compose:2.4.0-alpha08"
}
@callebdev
callebdev / querrMoz.js
Created May 6, 2020 14:41
Another Query
query{
country(code:"MZ"){
name
capital
currency
continent{
name
}
languages{
name
@callebdev
callebdev / response.json
Created May 6, 2020 14:31
JSON response from a query
{
"data": {
"pessoa": {
"nome": "Calleb Miquissene",
"genero": "Masculino"
"anoDeNascimento: "2000"
}
}
}
@callebdev
callebdev / query.js
Created May 6, 2020 14:28
This is a query to a GraphQL API
query {
pessoa(id:"7"){
nome
genero
anoDeNascimento
}
}
@callebdev
callebdev / person.js
Last active May 6, 2020 14:25
This is a json file for an article that I'm writing
type Pessoa {
id: ID!
nome: String
anoDeNascimento: String
peso: Float
altura: Float
genero: String
corDosOlhos: String
}