import 'package:comwell_key_app/overview/models/booking.dart';
import 'package:comwell_key_app/routing/app_routes.dart';
import 'package:comwell_key_app/themes/light_theme.dart';
import 'package:comwell_key_app/utils/l10n_utils.dart';
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
class RoomSelectionWidget extends StatelessWidget {
final Booking booking;
const RoomSelectionWidget({
super.key,
required this.booking,
});
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
child: InkWell(
onTap: () {
context.push(AppRoutes.chooseShareRoom, extra: booking);
},
child: Container(
decoration: BoxDecoration(
color: sandColor[20],
borderRadius: BorderRadius.circular(10),
),
child: Padding(
padding: const EdgeInsets.all(16),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
context.strings.room_selection,
style: theme.textTheme.bodyMedium,
textAlign: TextAlign.start,
),
Text(
context.strings.room_selection_subtitle,
style: theme.textTheme.bodySmall?.copyWith(
color: colorHeadlineText,
),
textAlign: TextAlign.start,
),
],
),
),
const SizedBox(width: 8),
const Icon(
Icons.arrow_forward_ios,
color: colorTertiary,
size: 28,
),
],
),
),
),
),
);
}
}