Première grosse version fonctionnel

This commit is contained in:
2026-04-22 23:30:31 +02:00
commit ccbe5ad801
329 changed files with 29518 additions and 0 deletions
@@ -0,0 +1,28 @@
class Activity {
final int id;
final String title;
final String description;
final String category; // 'Méditation', 'Musique', 'Respiration', etc.
final String? imageUrl;
final String? videoUrl;
Activity({
required this.id,
required this.title,
required this.description,
required this.category,
this.imageUrl,
this.videoUrl,
});
factory Activity.fromJson(Map<String, dynamic> json) {
return Activity(
id: json['id'],
title: json['title'] ?? '',
description: json['description'] ?? '',
category: json['category'] ?? 'Détente',
imageUrl: json['image_url'],
videoUrl: json['video_url'],
);
}
}