refactoring and checkpoint

This commit is contained in:
DahoudG
2024-09-24 00:32:20 +00:00
parent dc73ba7dcc
commit 6b12cfeb41
159 changed files with 8119 additions and 1535 deletions

View File

@@ -0,0 +1,63 @@
import 'package:flutter/material.dart';
class GroupList extends StatelessWidget {
final Size size;
const GroupList({required this.size, Key? key}) : super(key: key);
@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.0),
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: () {
print('Rejoindre le groupe');
},
style: ElevatedButton.styleFrom(
backgroundColor: Colors.blueAccent,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
),
),
child: const Text('Rejoindre'),
),
],
),
);
}),
);
}
}