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
Stream<String> delayedTextStream() async* { | |
for(int i = 0; i < 10; i++) { | |
await Future.delayed(Duration(seconds: 1)); | |
yield "Hello $i"; | |
} | |
} | |
Future<void> main() async { | |
final stream = delayedTextStream(); | |
// stream.listen((data) { |
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
package com.example.basquetejetpackcompose | |
import androidx.compose.runtime.Composable | |
@Composable | |
fun App() { | |
MainScreen() | |
} |
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
package com.example.kotlin1 | |
import kotlinx.coroutines.Deferred | |
import kotlinx.coroutines.async | |
import kotlinx.coroutines.delay | |
import kotlinx.coroutines.launch | |
import kotlinx.coroutines.runBlocking | |
import kotlin.random.Random | |
import kotlin.time.Duration | |
import kotlin.time.Duration.Companion.seconds |
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
// Trabalhos 2 - Dev Mobile | |
// Arthur Braga da Fonseca RA:811461 | |
// Pedro Vinícius Guandalini Vicente RA: 812124 | |
// William Tsuyoshi Matsuda RA: 812305 | |
package com.example.trabaiobasquete; | |
import android.os.Bundle; | |
import android.widget.Button; |