Refactor ActivityCard UI and improve voting functionality

- Updated ActivityCard layout for better visual consistency and responsiveness.
- Simplified the category badge and adjusted styles for better readability.
- Enhanced the voting section with a progress bar and improved button designs.
- Added a new method in Activity model to check if all trip participants approved an activity.
- Improved error handling and validation in ActivityRepository for voting and fetching activities.
- Implemented pagination in ActivityPlacesService for activity searches.
- Removed outdated scripts for cleaning up duplicate images.
This commit is contained in:
Dayron
2025-11-04 20:21:54 +01:00
parent 8ff9e12fd4
commit f6c8432335
19 changed files with 2902 additions and 961 deletions

View File

@@ -24,15 +24,23 @@ class SearchActivities extends ActivityEvent {
final String tripId;
final String destination;
final ActivityCategory? category;
final int? maxResults;
final int? offset;
final bool reset;
final bool appendToExisting;
const SearchActivities({
required this.tripId,
required this.destination,
this.category,
this.maxResults,
this.offset,
this.reset = false,
this.appendToExisting = false,
});
@override
List<Object?> get props => [tripId, destination, category];
List<Object?> get props => [tripId, destination, category, maxResults, offset, reset, appendToExisting];
}
/// Event to search activities by text query