|
|
@@ -169,16 +169,28 @@ class _EvenementComponentWidgetState extends State<EvenementComponentWidget>
|
|
|
itemCount: fotoos.length,
|
|
|
itemBuilder: (context, fotoosIndex, _) {
|
|
|
final fotoosItem = fotoos[fotoosIndex];
|
|
|
- return ClipRRect(
|
|
|
- borderRadius: BorderRadius.circular(8.0),
|
|
|
- child: CachedNetworkImage(
|
|
|
- fadeInDuration: Duration(milliseconds: 500),
|
|
|
- fadeOutDuration: Duration(milliseconds: 500),
|
|
|
- imageUrl: fotoosItem,
|
|
|
- width: 200.0,
|
|
|
- height: 200.0,
|
|
|
- fit: BoxFit.cover,
|
|
|
- ),
|
|
|
+ return Builder(
|
|
|
+ builder: (context) {
|
|
|
+ if (fotoosItem != '') {
|
|
|
+ return ClipRRect(
|
|
|
+ borderRadius: BorderRadius.circular(8.0),
|
|
|
+ child: CachedNetworkImage(
|
|
|
+ fadeInDuration: Duration(milliseconds: 500),
|
|
|
+ fadeOutDuration: Duration(milliseconds: 500),
|
|
|
+ imageUrl: fotoosItem,
|
|
|
+ width: 200.0,
|
|
|
+ height: 200.0,
|
|
|
+ fit: BoxFit.cover,
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ return Icon(
|
|
|
+ Icons.image_not_supported,
|
|
|
+ color: FlutterFlowTheme.of(context).primaryText,
|
|
|
+ size: 24.0,
|
|
|
+ );
|
|
|
+ }
|
|
|
+ },
|
|
|
);
|
|
|
},
|
|
|
carouselController: _model.carouselController ??=
|
|
|
@@ -455,18 +467,34 @@ class _EvenementComponentWidgetState extends State<EvenementComponentWidget>
|
|
|
verticalDirection: VerticalDirection.down,
|
|
|
clipBehavior: Clip.none,
|
|
|
children: [
|
|
|
- ClipRRect(
|
|
|
- borderRadius: BorderRadius.circular(8.0),
|
|
|
- child: CachedNetworkImage(
|
|
|
- fadeInDuration: Duration(milliseconds: 500),
|
|
|
- fadeOutDuration: Duration(milliseconds: 500),
|
|
|
- imageUrl: EvenementCall.eventLogog(
|
|
|
- columnEvenementResponse.jsonBody,
|
|
|
- )!,
|
|
|
- width: 40.0,
|
|
|
- height: 40.0,
|
|
|
- fit: BoxFit.cover,
|
|
|
- ),
|
|
|
+ Builder(
|
|
|
+ builder: (context) {
|
|
|
+ if (getJsonField(
|
|
|
+ columnEvenementResponse.jsonBody,
|
|
|
+ r'''$[0].logo''',
|
|
|
+ ) !=
|
|
|
+ null) {
|
|
|
+ return ClipRRect(
|
|
|
+ borderRadius: BorderRadius.circular(8.0),
|
|
|
+ child: CachedNetworkImage(
|
|
|
+ fadeInDuration: Duration(milliseconds: 500),
|
|
|
+ fadeOutDuration: Duration(milliseconds: 500),
|
|
|
+ imageUrl: EvenementCall.eventLogog(
|
|
|
+ columnEvenementResponse.jsonBody,
|
|
|
+ )!,
|
|
|
+ width: 40.0,
|
|
|
+ height: 40.0,
|
|
|
+ fit: BoxFit.cover,
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ return Icon(
|
|
|
+ Icons.image_not_supported,
|
|
|
+ color: FlutterFlowTheme.of(context).primaryText,
|
|
|
+ size: 24.0,
|
|
|
+ );
|
|
|
+ }
|
|
|
+ },
|
|
|
),
|
|
|
Container(
|
|
|
width: MediaQuery.sizeOf(context).width * 0.4,
|