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
@Composable | |
fun CardsGameSample() { | |
val colors = listOf( | |
Color.Red, Color.Green, Color.Blue, Color.Yellow, Color.Cyan | |
) | |
var cardCounter by remember { | |
mutableStateOf(0) | |
} | |
Column { | |
Row { |
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
@Composable | |
fun Greeting(name: String) { | |
Column(Modifier.fillMaxSize()) { | |
Column( | |
Modifier | |
.fillMaxWidth() | |
.weight(1f) | |
.verticalScroll( | |
rememberScrollState() | |
) |
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
package br.com.nglauber.jetpackcomposeplayground.screens | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.layout.* | |
import androidx.compose.foundation.lazy.LazyColumn | |
import androidx.compose.foundation.lazy.LazyRow | |
import androidx.compose.foundation.lazy.items | |
import androidx.compose.foundation.shape.RoundedCornerShape | |
import androidx.compose.material.MaterialTheme | |
import androidx.compose.material.Text |
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
package br.com.nglauber.jetpackcomposeplayground.screens | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.gestures.detectTapGestures | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.foundation.layout.fillMaxSize | |
import androidx.compose.foundation.layout.fillMaxWidth | |
import androidx.compose.foundation.layout.padding | |
import androidx.compose.material.Text | |
import androidx.compose.runtime.* |
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
package com.example.deletemenavigation | |
import android.os.Bundle | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.material.* | |
import androidx.compose.material.icons.Icons | |
import androidx.compose.material.icons.filled.List | |
import androidx.compose.material.icons.filled.Settings |
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
package com.example.samplecomposenavigation | |
import android.os.Bundle | |
import androidx.compose.material.* | |
import androidx.compose.material.icons.Icons | |
import androidx.compose.material.icons.filled.List | |
import androidx.compose.material.icons.filled.Settings | |
import androidx.compose.runtime.* | |
import androidx.compose.runtime.savedinstancestate.Saver | |
import androidx.compose.runtime.savedinstancestate.rememberSavedInstanceState |
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
package com.example.demo_gdg_curitiba | |
import androidx.compose.Composable | |
import androidx.ui.core.Modifier | |
import androidx.ui.core.drawShadow | |
import androidx.ui.foundation.Text | |
import androidx.ui.foundation.clickable | |
import androidx.ui.foundation.drawBackground | |
import androidx.ui.foundation.drawBorder | |
import androidx.ui.foundation.shape.corner.CircleShape |
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
class StepCounter extends StatefulWidget { | |
int value; | |
final int minValue; | |
final int maxValue; | |
final Function(int) onValueChanged; | |
StepCounter( | |
{@required this.value, | |
@required this.onValueChanged, | |
this.minValue = 0, |
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
package com.example.bookscompose.http | |
import com.google.gson.annotations.SerializedName | |
data class Book( | |
@SerializedName("titulo") | |
var title: String = "", | |
var category: String = "", | |
@SerializedName("autor") | |
var author: String = "", |
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
import 'package:flutter/material.dart'; | |
import './models/transaction.dart'; | |
import './widgets/chart.dart'; | |
import './widgets/transaction_list.dart'; | |
import './widgets/new_transaction.dart'; | |
void main() { | |
// Import this -> import 'package:flutter/services.dart'; | |
// SystemChrome.setPreferredOrientations([ | |
// DeviceOrientation.portraitUp, |
NewerOlder