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'; | |
void main() => runApp(const MiAplicacion()); | |
class MiAplicacion extends StatelessWidget { | |
const MiAplicacion({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return const MaterialApp( |
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 Humano{ | |
String? nombre; | |
int? edad; | |
double? estatura; | |
void verDatos(){ | |
print("Nombre : $nombre"); | |
print("Edad : $edad"); | |
print("Estatura : $estatura"); | |
}//fin function ver datos |
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 Humano{ | |
String? nombre; | |
int? edad; | |
double? estatura; | |
void verDatos(){ | |
print("Nombre : $nombre"); | |
print("Edad : $edad"); | |
print("Estatura : $estatura"); | |
} |
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
// writing function outside main function. | |
void escribeN(){ | |
print("Mi nombre es Diego Diaz."); | |
}// fin de funcion escribeN | |
void nombrepara(String n){ | |
print("Tu nombre es $n"); | |
}//fin funcion nombrepara(String n) | |
void nombreC(String ap, String n){ | |
print ("Apellido Paterno $ap"); |
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() { | |
Map<String, int> amigas = { | |
'raspada': 18, | |
'roson': 59, | |
'rosadita': 98 | |
}; | |
print(amigas); | |
print(amigas['raspada']); | |
print(amigas['roson']); | |
print(amigas['rosadita']); |
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() { | |
List<String> misNovias = [ | |
"Intriga1", | |
"Intriga2", | |
"Intriga3", | |
"Intriga4", | |
"Intriga5" | |
]; | |
// Finding Length of 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
void main() { | |
var nombre = "Diego "; | |
var apellidoP = "Diaz"; | |
int edad = 18; | |
double estatura = 1.80; | |
double peso = 62; | |
int numNovias = 1; | |
print("$nombre $apellidoP 6J"); | |
print("Edad $edad"); | |
print("Estatura $estatura"); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> |
NewerOlder