import 'package:comwell_key_app/hotel_information/components/maps_bottom_modal.dart';
import 'package:comwell_key_app/themes/light_theme.dart';
import 'package:comwell_key_app/utils/l10n_utils.dart';
import 'package:flutter/material.dart';
class Address extends StatelessWidget {
final String address;
const Address({super.key, required this.address});
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(context.strings.restaurant_page_address,
style: theme.textTheme.headlineMedium),
const SizedBox(width: 10),
GestureDetector(
onTap: () => MapsBottomModal.show(context, address),
child: Text(
address,
style: theme.textTheme.bodySmall?.copyWith(
color: sandColor,
decoration: TextDecoration.underline,
decorationColor: sandColor,
),
),
)
],
);
}
}