import 'package:comwell_key_app/hotel_information/components/hotel_bottom_sheet_button.dart';
import 'package:comwell_key_app/hotel_information/components/image_widget.dart';
import 'package:comwell_key_app/hotel_information/components/structured_text.dart';
import 'package:comwell_key_app/hotel_information/models/facilities.dart';
import 'package:flutter/material.dart';
class FacilityPage extends StatelessWidget {
final Facility facility;
const FacilityPage({super.key, required this.facility});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: Column(
children: [
ImageWidget(image: facility.headerImage ?? ""),
Expanded(
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 26),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
StructuredText(blocks: facility.structuredText),
const SizedBox(height: 100),
],
),
),
),
),
],
),
bottomSheet: facility.callToAction != null
? HotelBottomSheetButton(
isLoading: false,
onPressed: () {},
)
: null,
);
}
}