height event list

This commit is contained in:
Thomas Fransolet 2024-02-28 16:02:19 +01:00
parent ace5026290
commit cfcbf5a91f

View File

@ -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(