feat : Add Event details view with first informations
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import 'package:bahla_front/app/app.locator.dart';
|
||||
import 'package:bahla_front/app/app.router.dart';
|
||||
import 'package:stacked/stacked.dart';
|
||||
import 'package:stacked_services/stacked_services.dart';
|
||||
|
||||
class HomeViewModel extends BaseViewModel {
|
||||
final _navigationService = locator<NavigationService>();
|
||||
|
||||
List<String> items = List<String>.generate(100, (i) => 'Item $i');
|
||||
|
||||
@@ -36,8 +40,9 @@ class HomeViewModel extends BaseViewModel {
|
||||
// Gérer le clic sur l'événement
|
||||
print('Event tapped: ${events[index].name}');
|
||||
// Ici vous pouvez naviguer vers une page de détails, etc.
|
||||
}
|
||||
|
||||
_navigationService.navigateToEventDetailsView(eventId: index);
|
||||
}
|
||||
}
|
||||
|
||||
class Event {
|
||||
@@ -61,4 +66,4 @@ class Event {
|
||||
String toString() {
|
||||
return 'Event{name: $name, picture: $picture}';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user