From cfcbf5a91f8bef73f070a912cc97f1b654c0a2ea Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Wed, 28 Feb 2024 16:02:19 +0100 Subject: [PATCH] height event list --- lib/Screens/Agenda/event_list_item.dart | 50 ++++++++++++------------- 1 file changed, 23 insertions(+), 27 deletions(-) diff --git a/lib/Screens/Agenda/event_list_item.dart b/lib/Screens/Agenda/event_list_item.dart index ad62a11..f2468d5 100644 --- a/lib/Screens/Agenda/event_list_item.dart +++ b/lib/Screens/Agenda/event_list_item.dart @@ -33,6 +33,7 @@ class EventListItem extends StatelessWidget { margin: const EdgeInsets.all(10.0), decoration: BoxDecoration( borderRadius: BorderRadius.circular(20.0), + color: Colors.red, boxShadow: const [ BoxShadow( color: Colors.black26, @@ -41,12 +42,13 @@ class EventListItem extends StatelessWidget { ), ], ), - width: size.width * 0.5, //210.0, - constraints: const BoxConstraints(maxWidth: 210), + //width: size.width * 0.5, //210.0, + //constraints: const BoxConstraints(maxWidth: 210, maxHeight: 100), child: Column( children: [ Container( - height: size.height * 0.15, + height: size.height * 0.18, // must be same ref0 + constraints: const BoxConstraints(maxHeight: 250), width: size.width*1, child: Stack( children: [ @@ -54,27 +56,21 @@ class EventListItem extends StatelessWidget { borderRadius: const BorderRadius.only(topLeft: Radius.circular(20.0), topRight: Radius.circular(20.0)), child: Container( constraints: const BoxConstraints(maxHeight: 175, maxWidth: 250), - child: Center( - child: Container( - width: size.width, - height: size.height * 0.15, - child: CachedNetworkImage( - imageUrl: eventAgenda.image!, - width: size.width, - height: size.height * 0.15, - fit: BoxFit.cover, - progressIndicatorBuilder: (context, url, downloadProgress) { - return Center( - child: SizedBox( - width: 50, - height: 50, - child: LoadingCommon(), - ), - ); - }, - errorWidget: (context, url, error) => Icon(Icons.error), - ), - ), + child: CachedNetworkImage( + imageUrl: eventAgenda.image!, + width: size.width, + height: size.height * 0.2, // must be same ref0 + fit: BoxFit.cover, + progressIndicatorBuilder: (context, url, downloadProgress) { + return Center( + child: SizedBox( + width: 50, + height: 50, + child: LoadingCommon(), + ), + ); + }, + errorWidget: (context, url, error) => Icon(Icons.error), ) ), ): SizedBox(), @@ -123,9 +119,9 @@ class EventListItem extends StatelessWidget { ], ), ), - Container( - height: size.height * 0.13, - constraints: BoxConstraints(maxHeight: 120), + Expanded( + /*height: size.height * 0.13, + constraints: BoxConstraints(maxHeight: 120),*/ child: Container( width: size.width, decoration: const BoxDecoration(