6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 0dc38006
Changed files
comwell_key_app/lib/home/home_page.dart | 84 ++++++++++++++++----------------- 1 file changed, 42 insertions(+), 42 deletions(-)
Diff
diff --git a/comwell_key_app/lib/home/home_page.dart b/comwell_key_app/lib/home/home_page.dart
index e18e529b..8b3eb2b8 100644
--- a/comwell_key_app/lib/home/home_page.dart
+++ b/comwell_key_app/lib/home/home_page.dart
@@ -53,53 +53,53 @@ class _HomeWidget extends State<HomeWidget> {
extendBodyBehindAppBar: true,
backgroundColor: sandColor[40],
appBar: const ComwellAppBar(),
- body: SafeArea(
+ body: Container(
+
+ decoration: const BoxDecoration(
+ image: DecorationImage(
+ image: AssetImage('assets/images/booking_background.png'),
+ fit: BoxFit.cover,
+ ),
+ ),
child: Stack(
+ alignment: Alignment.center,
children: [
- Expanded(
- child: Container(
- width: double.infinity,
- decoration: const BoxDecoration(
- image: DecorationImage(
- image: AssetImage('assets/images/booking_background.png'),
- fit: BoxFit.fill,
- ),
- ),
- child: Column(
- children: [
- const Spacer(),
- Padding(
- padding: const EdgeInsets.symmetric(horizontal: 16),
- child: SliderButton(
- backgroundColor: sandColor,
- width: 300,
-
-
- icon: Center(
- child: SvgPicture.asset(
- 'assets/icons/Union.svg',
- width: 30,
- ),
- ),
- action: () async {
- context.pushNamed(AppRoutes.key.name);
- return null;
- },
- alignLabel: Alignment.center,
- label: Text(
- 'open_room'.tr(),
- style: theme.textTheme.headlineSmall
- ?.copyWith(color: Colors.white),
- textAlign: TextAlign.center,
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ const Spacer(),
+ Padding(
+
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: SliderButton(
+
+ backgroundColor: sandColor,
+ width: 300,
+ icon: Center(
+ child: SvgPicture.asset(
+ 'assets/icons/Union.svg',
+ width: 30,
),
),
+ action: () async {
+ context.pushNamed(AppRoutes.key.name);
+ return null;
+ },
+ alignLabel: Alignment.center,
+ label: Text(
+ 'open_room'.tr(),
+ style: theme.textTheme.headlineSmall
+ ?.copyWith(color: Colors.white),
+ textAlign: TextAlign.center,
+ ),
),
- const SizedBox(
- height: 220,
- ),
- ],
- ),
- )),
+ ),
+ const SizedBox(
+ height: 220,
+ ),
+ ],
+ ),
const BottomSheetWidget(
widgetChildren: [
SizedBox(