Created
June 17, 2021 23:55
-
-
Save Kevin-Gomez10/fa1e0e8bea201980de5c83cc0a1b37d7 to your computer and use it in GitHub Desktop.
POO Act14 flutter rectangulo **** main.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
import 'package:flutter/material.dart'; | |
void main(){ | |
runApp( | |
MaterialApp( | |
debugShowCheckedModeBanner: false, | |
title: "Proyecto rectangulo", | |
home: Scaffold( | |
appBar: AppBar( | |
title: Text("Hola Rectangulo Kevin") | |
),// fin de AppBar | |
body : HolaKevin(), | |
),// fin sacffold | |
), // MaterialApp | |
); // fin de runApp | |
}// fin de main | |
class HolaKevin extends StatelessWidget{ | |
@override | |
Widget build(BuildContext context){ | |
return Center( | |
child : Container( | |
color: Colors.lightGreen, | |
height: 400.0, | |
width: 270, | |
child: Center( | |
child: Text( | |
"Tomaaa Aguaaaa", | |
style: TextStyle(fontSize: 20.0), | |
), // fin hijo texto | |
), // fin de hijo center | |
), //fin contenedor | |
); // fin center | |
}// fin de widget | |
}// fin clase holakevin herencia StatelessWidget |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
link codigo funcionando -----> https://dartpad.dev/fa1e0e8bea201980de5c83cc0a1b37d7