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
import 'dart:io'; | |
main() { | |
calculoImc(); | |
} | |
//Programa que calcula o imc | |
calculoImc() { | |
print("=== Digite seu Peso"); | |
String textPeso = stdin.readLineSync(); |
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
import "dart:io"; | |
List<String> produtos = []; | |
main() { | |
bool condicao = true; | |
while (condicao) { | |
print("==== ADICIONE UM PRODUTO ===="); | |
String text = stdin.readLineSync(); |
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
import 'dart:io'; | |
main(){ | |
var nome = []; | |
bool condicao = true; | |
while (condicao) { | |
print("Digite o nome"); | |
String text = stdin.readLineSync(); |
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
import 'dart:io'; | |
main(){ | |
print("===== Digite uma idade ====="); | |
var input = stdin.readLineSync(); | |
var idade = int.parse(input); | |
if(idade >= 50){ | |
print("melhor idade"); |
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
import 'dart:io'; | |
main(){ | |
bool condicao = true; | |
while(condicao) { | |
print("=== Escreva um Texto ==="); | |
String text = stdin.readLineSync(); | |
if(text == "sair"){ | |
condicao = false; |
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
import "dart:io"; | |
List<Map<String,dynamic>> cadastros = []; | |
main(){ | |
bool condicao = true; | |
print("\x1B[2J\x1B[0;0H"); | |
while (condicao) { | |
print("==== DIGITE UM COMANDO"); |
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
import 'package:flutter/material.dart'; | |
import 'dart:math' as math; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
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
import 'package:flutter/material.dart'; | |
import 'package:provider_test/src/home_page.dart'; | |
import 'package:provider_test/src/home_value.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override |
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
import 'package:flutter/material.dart'; | |
class HomePage extends StatefulWidget { | |
@override | |
_HomePageState createState() => _HomePageState(); | |
} | |
class _HomePageState extends State<HomePage> { | |
//regra de negócio |
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
import 'package:bloc_pattern/bloc_pattern.dart'; | |
class ValueBloc { | |
double value = 0.0; | |
onChangeValue(double v) { | |
value = v; | |
} | |
} |
OlderNewer