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
void main() { | |
// 1. Criar uma função para aceitar pedidos automaticamente de uma lista de pedidos. Mudando o estado de todos os pedidos que atendem os critérios para accepted. | |
// Critérios: | |
// 1 - Apenas pedidos com status waiting podem ter seu status alterado para accepted | |
// 2 - Apenas pedidos com valor menor que 50 pode ser "auto-aceitos". | |
// 2. Criar uma função para cancelar todos os pedidos de uma lista de pedidos, mudando o status de cada pedido para cancelled. |
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
void main() { | |
// Criar uma função que retorna o valor total das transações do tipo "income" ou "outcome". | |
// Se o movementType for "income", então a soma deve ser apenas dos valores de transações desse tipo. | |
int getTotalTransactionedValueByType(List<Transaction> transactionList, MovementType movementType) { | |
return 0; //Apenas para evitar erro de compilação. | |
} | |
// Criar uma função que retorna o balanço total da lista de transações. | |
// Por exemplo, se tivermos uma lista com apenas duas transações, a primeira com valor de 100 e do tipo "income" |
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
void main() { | |
// forEach | |
void mudarOStatusDeTodosOsFilmes(List<MovieInfo> list) { | |
} | |
// map | |
List<String> criarUmaListaComNomeDosFilmes(List<MovieInfo> list) { | |
} |
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'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
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
void main() { | |
} | |
enum MovieStatus { | |
recentlyReleased, | |
completed, | |
inProgress, |
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:splashscreen/splashscreen.dart'; | |
import 'package:flare_flutter/flare_actor.dart'; | |
import 'package:flutter/material.dart'; | |
class SplashScreenPage extends StatefulWidget { | |
@override | |
_SplashScreenPageState createState() => _SplashScreenPageState(); | |
} | |
class _SplashScreenPageState extends State<SplashScreenPage> { |
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:splashscreen/splashscreen.dart'; | |
import 'package:flare_flutter/flare_actor.dart'; | |
import 'package:flutter/material.dart'; |
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
dependencies: | |
splashscreen: ^1.2.0 | |
flare_flutter: ^2.0.1 |