aplicacion terminada, fondo verde

This commit is contained in:
2024-06-03 15:45:35 +02:00
parent 20a4cb7ab2
commit be701d6e50
7 changed files with 70 additions and 105 deletions

View File

@ -14,8 +14,8 @@ class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: const CustomAppBar(),
body: BackgroundWidget(
appBar: const CustomAppBar(), //Barra superior personalizada
body: BackgroundWidget( //Widget fondo del fichero BackgroundWidget
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
@ -25,7 +25,7 @@ class MyHomePage extends StatelessWidget {
context,
MaterialPageRoute(builder: (context) => const NoticiasPage()),
);},
child: SizedBox(
child: SizedBox( //Botón Noticias
width: 300.0,
child: Padding(
padding: const EdgeInsets.only(bottom: 20.0),
@ -55,7 +55,7 @@ class MyHomePage extends StatelessWidget {
MaterialPageRoute(builder: (context) => const Pregon()),
);
},
child: SizedBox(
child: SizedBox(//Botón Pregón
width: 300.0,
child: Padding(
padding: const EdgeInsets.only(bottom: 20.0),
@ -85,7 +85,7 @@ class MyHomePage extends StatelessWidget {
MaterialPageRoute(builder: (context) => const EmbalsesPage()),
);
},
child: SizedBox(
child: SizedBox( //Botón Embalses
width: 300.0,
child: Padding(
padding: const EdgeInsets.only(bottom: 20.0),
@ -110,9 +110,9 @@ class MyHomePage extends StatelessWidget {
),
InkWell(
onTap: () {
launchAemetURL();
launchAemetURL();//Función a link externo
},
child: SizedBox(
child: SizedBox(//Botón Tiempo
width: 300.0,
child: Padding(
padding: const EdgeInsets.only(bottom: 20.0),
@ -139,7 +139,7 @@ class MyHomePage extends StatelessWidget {
),
),
),
bottomNavigationBar: const CustomBottomBar(),
bottomNavigationBar: const CustomBottomBar(),//Barra inferior personalizada
);
}
}