Created
March 26, 2021 06:26
-
-
Save PedroPicasso18/d467d3fa3a1d59a76870b41e428eacc2 to your computer and use it in GitHub Desktop.
Practica5
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( PicassoApp()); | |
}//fin de main | |
class PicassoApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
appBar: AppBar( | |
backgroundColor:Colors.black, | |
title: Text( | |
'Pruebas texto', | |
style: TextStyle(fontWeight: FontWeight.bold), | |
) | |
),//fin del appbar | |
body: Container( | |
alignment: Alignment.center, | |
margin: const EdgeInsets.all(20.0), | |
color: Colors.white , | |
child: Text('Practicando con Programacion'), | |
),//fin del container | |
floatingActionButton: FloatingActionButton( | |
onPressed: () { | |
// Add your onPressed code here! | |
}, | |
child: const Icon(Icons.thumb_up), | |
backgroundColor: Colors.black, | |
),//fin del floating action button | |
),//fin del Scaffold | |
);//Fin del MaterialApp | |
}//Fin de widget | |
}//fin de clase Nava |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment