mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 00:21:19 +00:00
height event list
This commit is contained in:
parent
ace5026290
commit
cfcbf5a91f
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user