import 'package:flutter/material.dart'; import '../../core/utils/app_logger.dart'; class GroupList extends StatelessWidget { const GroupList({required this.size, super.key}); final Size size; @override Widget build(BuildContext context) { return Column( children: List.generate(3, (index) { return Container( margin: const EdgeInsets.only(bottom: 20), padding: const EdgeInsets.all(16), width: size.width, decoration: BoxDecoration( color: Colors.grey[850], borderRadius: BorderRadius.circular(12), boxShadow: [ BoxShadow( color: Colors.black.withOpacity(0.3), blurRadius: 6, offset: const Offset(0, 3), ), ], ), child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ const CircleAvatar( radius: 30, backgroundImage: AssetImage('lib/assets/images/group_placeholder.png'), ), const SizedBox(width: 10), const Expanded( child: Text( 'Club des Amateurs de Cinéma', style: TextStyle( color: Colors.white, fontSize: 18, fontWeight: FontWeight.w600, ), ), ), ElevatedButton( onPressed: () { AppLogger.i('Rejoindre le groupe', tag: 'GroupList'); }, style: ElevatedButton.styleFrom( backgroundColor: Colors.blueAccent, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(8), ), ), child: const Text('Rejoindre'), ), ], ), ); }), ); } }