59 lines
1.8 KiB
Dart
59 lines
1.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
class PopularActivityList extends StatelessWidget {
|
|
final Size size;
|
|
|
|
const PopularActivityList({required this.size, Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SizedBox(
|
|
height: 200,
|
|
child: ListView.separated(
|
|
scrollDirection: Axis.horizontal,
|
|
itemCount: 3,
|
|
separatorBuilder: (context, index) => const SizedBox(width: 15),
|
|
itemBuilder: (context, index) {
|
|
return Container(
|
|
width: size.width * 0.8,
|
|
decoration: BoxDecoration(
|
|
color: Colors.grey[800],
|
|
borderRadius: BorderRadius.circular(12),
|
|
image: const DecorationImage(
|
|
image: AssetImage('lib/assets/images/activity_placeholder.png'),
|
|
fit: BoxFit.cover,
|
|
colorFilter: ColorFilter.mode(Colors.black38, BlendMode.darken),
|
|
),
|
|
),
|
|
child: const Padding(
|
|
padding: EdgeInsets.all(12.0),
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
'Soirée Stand-up Comedy',
|
|
style: TextStyle(
|
|
color: Colors.white,
|
|
fontSize: 22,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
SizedBox(height: 5),
|
|
Text(
|
|
'Vendredi, 20h00',
|
|
style: TextStyle(
|
|
color: Colors.white70,
|
|
fontSize: 14,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
},
|
|
),
|
|
);
|
|
}
|
|
}
|