From 7c2577259e3d4cafba19c3ae54dcbb82891dc4af Mon Sep 17 00:00:00 2001 From: nadia Date: Thu, 2 May 2024 17:23:26 +0200 Subject: [PATCH] =?UTF-8?q?Agregada=20interfaz=20de=20pregon,=20dise=C3=B1?= =?UTF-8?q?o=20y=20patron=20bloc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pregon/pregon | 70 +++++++++++++++++++++++++++++------------------ 1 file changed, 44 insertions(+), 26 deletions(-) diff --git a/lib/pregon/pregon b/lib/pregon/pregon index 085b0d1..13f2543 100644 --- a/lib/pregon/pregon +++ b/lib/pregon/pregon @@ -8,34 +8,52 @@ class Pregon extends StatelessWidget { @override Widget build(BuildContext context) { - List datos = ['Dia 1', 'Dia 2', 'Dia 3']; + List datos = ['Dia 1', 'Dia 2', 'Dia 3', 'Dia 4','Dia 5','Dia 6']; return Scaffold( - appBar: const CustomAppBar(), - bottomNavigationBar: const CustomBottomBar(), - body: ListView.builder( - itemCount: datos.length, - itemBuilder: (context, index) { - return Padding( - padding: const EdgeInsets.all(8.0), - child: Container( - padding: const EdgeInsets.all(16.0), - decoration: BoxDecoration( - color: Colors.grey[200], - borderRadius: BorderRadius.circular(10.0), - ), - child: Text( - datos[index], - style: const TextStyle( - fontSize: 18.0, - fontWeight: FontWeight.bold, + appBar: const CustomAppBar(), + bottomNavigationBar: const CustomBottomBar(), + body: Stack( + children: [ + // Fondo de pantalla + Container( + decoration: BoxDecoration( + image: DecorationImage( + image: AssetImage("assets/logo-sin-texto.png"), + fit: BoxFit.cover, + ), ), ), - ), - ); - }, - ), -); - -} + + ListView.builder( + itemCount: datos.length, + itemBuilder: (context, index) { + return Center( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Container( + width: 500, + height: 100, + decoration: BoxDecoration( + color: Colors.blue[200]?.withOpacity(0.9), + borderRadius: BorderRadius.circular(10.0), + ), + child: Center( + child: Text( + datos[index], + style: const TextStyle( + fontSize: 18.0, + fontWeight: FontWeight.bold, + ), + ), + ), + ), + ), + ); + }, + ), + ], + ), + ); + } }