Learn Dart & Flutter Programming | Training
Dart & Flutter |
Table Contents
Numeration | Check | Topic | Available | Edit Gitpot | Downloads | Link |
---|---|---|---|---|---|---|
001 | ✔️ | Install | 👍 | 💾 | Atras | |
002 | ✔️ | Operators | 👍 | 💾 | Atras |
Operators
- Nuevo Operador de Asignacion
// Operador de asignacion
data1 ~/= data2; // el resultado es asignado a data1
print('data1 ->: $data1');
}
- Operador bit
var data1 = 132;
var data2 = 5;
//multiplicacion
data2 = data1 << 2; //132*2*2 = 528
//division
data2 = data1 << 2; //132/2/2 = 33
- parse
var value = int.parse("10000100", radix: 2); //convertir binario a entero
POO
- Class
class vehiculo{
late String color;
late String modelo;
late String marca;
}
- Ejemplo POO
class vehiculo{
//Variables tardías
late String color;
late String modelo;
late String marca;
void Arrancar(){
print("Arrancando Programacion orientada a objetos");
}
// primera funcion
void CambiarValor(int numero){
for(int i = 0; i<numero; i++){
print("numero: $i");
}
}
//segunda funcion
void CambiarMarca(String marca){
marca = marca;
print(marca);
}
}
void main(){
var auto = new vehiculo();
int numero = 10;
auto.color = "Azul";
auto.marca = "Toyota";
auto.Arrancar();
auto.CambiarValor(numero);
auto.CambiarMarca("Ford");
}
- POO - Herencia
- Sobreescritura de metodos
@override
- POO clases Abtractas
- Example
// INTERFASES
abstract class EsTransporte{
void QueTranporteSoy();
}
// Implementar las interfaces (implements)
class Camion extends Vehiculo implements EsTransporte{
@override
void miCombustible() {
print('Diesel');
}
Number | File | Link | Code | Version | Estado | Atras |
---|---|---|---|---|---|---|
- | clases Abtractas |
Numeration | File | Link | Folk | Code | Version | State | Download | Go back |
---|---|---|---|---|---|---|---|---|
- | clases Abtractas | ✔️ | ✔️ | yes | yes | ✔️ | 💾 | ⬅️Atras |
Flutter is Google's SDK for crafting beautiful, fast user experiences for mobile, web, and desktop from a single codebase. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.
- Arquitectura Flutter
-
Create new Project
flutter create myapp
-
Ver Emuladores
flutter emulators --launch Machina_Virtual
- Ejecutar Flutter
flutter run
- Ejemplo Flutter
Numeration | File | Link | Folk | Code | Version | State | Download | Go back |
---|---|---|---|---|---|---|---|---|
- | Ejemplo Flutter | ✔️ | ✔️ | yes | yes | ✔️ | 💾 | ⬅️Atras |
- Stateless Widget
- Stateful Widget
- Pub Dev
Link: pub.dev
- Flutter DevTools
Flutter DevTools: http://127.0.0.1:9100/
Ctr +Ship + p
- Ingresar Datos
- Flutter DevTools