Skip to content

Instantly share code, notes, and snippets.

@Kevin-Gomez10
Created June 17, 2021 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kevin-Gomez10/fa1e0e8bea201980de5c83cc0a1b37d7 to your computer and use it in GitHub Desktop.
Save Kevin-Gomez10/fa1e0e8bea201980de5c83cc0a1b37d7 to your computer and use it in GitHub Desktop.
POO Act14 flutter rectangulo **** main.dart ****
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
@Kevin-Gomez10
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment