mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 08:31: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),
|
margin: const EdgeInsets.all(10.0),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(20.0),
|
borderRadius: BorderRadius.circular(20.0),
|
||||||
|
color: Colors.red,
|
||||||
boxShadow: const [
|
boxShadow: const [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
color: Colors.black26,
|
color: Colors.black26,
|
||||||
@ -41,12 +42,13 @@ class EventListItem extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
width: size.width * 0.5, //210.0,
|
//width: size.width * 0.5, //210.0,
|
||||||
constraints: const BoxConstraints(maxWidth: 210),
|
//constraints: const BoxConstraints(maxWidth: 210, maxHeight: 100),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
height: size.height * 0.15,
|
height: size.height * 0.18, // must be same ref0
|
||||||
|
constraints: const BoxConstraints(maxHeight: 250),
|
||||||
width: size.width*1,
|
width: size.width*1,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
@ -54,27 +56,21 @@ class EventListItem extends StatelessWidget {
|
|||||||
borderRadius: const BorderRadius.only(topLeft: Radius.circular(20.0), topRight: Radius.circular(20.0)),
|
borderRadius: const BorderRadius.only(topLeft: Radius.circular(20.0), topRight: Radius.circular(20.0)),
|
||||||
child: Container(
|
child: Container(
|
||||||
constraints: const BoxConstraints(maxHeight: 175, maxWidth: 250),
|
constraints: const BoxConstraints(maxHeight: 175, maxWidth: 250),
|
||||||
child: Center(
|
child: CachedNetworkImage(
|
||||||
child: Container(
|
imageUrl: eventAgenda.image!,
|
||||||
width: size.width,
|
width: size.width,
|
||||||
height: size.height * 0.15,
|
height: size.height * 0.2, // must be same ref0
|
||||||
child: CachedNetworkImage(
|
fit: BoxFit.cover,
|
||||||
imageUrl: eventAgenda.image!,
|
progressIndicatorBuilder: (context, url, downloadProgress) {
|
||||||
width: size.width,
|
return Center(
|
||||||
height: size.height * 0.15,
|
child: SizedBox(
|
||||||
fit: BoxFit.cover,
|
width: 50,
|
||||||
progressIndicatorBuilder: (context, url, downloadProgress) {
|
height: 50,
|
||||||
return Center(
|
child: LoadingCommon(),
|
||||||
child: SizedBox(
|
),
|
||||||
width: 50,
|
);
|
||||||
height: 50,
|
},
|
||||||
child: LoadingCommon(),
|
errorWidget: (context, url, error) => Icon(Icons.error),
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
errorWidget: (context, url, error) => Icon(Icons.error),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
): SizedBox(),
|
): SizedBox(),
|
||||||
@ -123,9 +119,9 @@ class EventListItem extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Expanded(
|
||||||
height: size.height * 0.13,
|
/*height: size.height * 0.13,
|
||||||
constraints: BoxConstraints(maxHeight: 120),
|
constraints: BoxConstraints(maxHeight: 120),*/
|
||||||
child: Container(
|
child: Container(
|
||||||
width: size.width,
|
width: size.width,
|
||||||
decoration: const BoxDecoration(
|
decoration: const BoxDecoration(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user