feat : EvenDetails --> Add Animator with widget

This commit is contained in:
Yaël Perret
2025-09-13 17:53:24 +02:00
parent 8067125921
commit 6429854028
3 changed files with 89 additions and 3 deletions

View File

@@ -1,9 +1,10 @@
import 'package:bahla_front/ui/common/ReadMoreText.dart';
import 'package:flutter/material.dart';
import 'package:stacked/stacked.dart';
import 'event_details_viewmodel.dart';
import '../../common/post_card_widget.dart';
import 'package:bahla_front/ui/common/ReadMoreText.dart';
import 'package:bahla_front/ui/common/animator_widget.dart';
import 'package:bahla_front/ui/common/post_card_widget.dart';
class EventDetailsView extends StackedView<EventDetailsViewModel> {
final int eventId;
@@ -257,8 +258,24 @@ class EventDetailsView extends StackedView<EventDetailsViewModel> {
),
),
Divider(height: 2, indent: 20, endIndent: 20, color: Theme.of(context).colorScheme.primary),
// The ListView inside a Column needs bounded height => wrap with Expanded
Expanded(
child: ListView.builder(
padding: const EdgeInsets.all(16.0),
itemCount: 10,
itemBuilder: (context, index) {
return Padding(
padding: const EdgeInsets.only(bottom: 12.0),
child: AnimatorWidget(
authorName: 'Animateur ${index + 1}',
authorImageUrl: 'https://placehold.co/400x400/png',
),
);
},
),
),
],
)
),
),
],
),