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'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); | |
| @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
| /// Dart Flutter Drawer Mariela Leyva CBTIS 270 by Ing. Eliseo Nava | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(const MiApp()); | |
| } | |
| class MiApp extends StatelessWidget { | |
| const MiApp({super.key}); |
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
| // DART MAriela Leyva by Ing. Eliseo Nava | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(AppSocial()); | |
| class AppSocial extends StatelessWidget { | |
| const AppSocial({super.key}); | |
| @override | |
| Widget build(BuildContext context) { |
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
| /// Código en dart Mariela Leyva Vézquez by Ing. Eliseo Nava | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(AppViajes()); | |
| class AppViajes extends StatelessWidget { | |
| const AppViajes({super.key}); | |
| @override | |
| Widget build(BuildContext context) { |
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
| // Programa principal | |
| void main() { | |
| saludar(); | |
| print("función pasando parámetros"); | |
| suma(3, 6); // llamando a la función suma pasando valores | |
| crearUsuario(nombre: "Mariela", edad: 35, ciudad: "Chihuahua"); | |
| int resultado = resta(9, 3); | |
| print("La resta es $resultado"); |
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
| class Animal { | |
| // atributos | |
| String nombre; | |
| int edad; | |
| // constructor | |
| Animal({required this.nombre, required this.edad}); | |
| // funciones | |
| void mostrarInformacion() { |
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'; | |
| void main() => runApp(MiTienda()); | |
| class MiTienda extends StatelessWidget { | |
| const MiTienda({super.key}); | |
| @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'; | |
| void main() { | |
| runApp( | |
| MaterialApp( | |
| home: Scaffold( | |
| backgroundColor: Colors.lightBlue[50], // Color de fondo | |
| appBar: AppBar( | |
| title: Text("Mariela Leyva CBTIS 270"), | |
| centerTitle: true, |
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'; | |
| void main() => runApp(MiAppRegistro()); | |
| class MiAppRegistro extends StatelessWidget { | |
| const MiAppRegistro({super.key}); | |
| @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
| void main(){ | |
| Map<String ,String> empleado ={ | |
| "nombre" : "Mariela Leyva", | |
| "Lenguaje" : "Dart", | |
| "FrameWork": "Flutter" | |
| }; | |
| print(empleado); | |
| print("Fin del proceso..."); | |
| } |
NewerOlder