This commit is contained in:
Patrick Alvin Alcala 2025-02-27 12:40:53 +08:00
parent 6e4b2249b0
commit a56ed92863
6 changed files with 128 additions and 125 deletions

View file

@ -3,7 +3,6 @@ import 'package:go_router/go_router.dart';
import 'package:gap/gap.dart';
import 'package:pharmacy_mobile/widgets/button_widget.dart';
import 'package:pharmacy_mobile/widgets/page_background_widget.dart';
import 'package:pharmacy_mobile/widgets/pull_refresh_widget.dart';
import 'package:pharmacy_mobile/widgets/slogan_widget.dart';
import 'package:pharmacy_mobile/widgets/text_widget.dart';
import 'package:pharmacy_mobile/widgets/title_widget.dart';
@ -23,43 +22,60 @@ class IndexPage extends StatelessWidget {
return Scaffold(
resizeToAvoidBottomInset: false,
body: PullRefreshWidget(
child: PageBackgroundWidget(
child: Column(
children: [
const Gap(88),
const TitleWidget(
firstTextSize: 24,
secondTextSize: 40,
logoSize: 124,
),
const Gap(32),
Padding(
padding: const EdgeInsets.fromLTRB(0, 0, 38, 0),
child: Image.asset('assets/ph_logo.webp',
width: 192, cacheWidth: (192 * MediaQuery.of(context).devicePixelRatio).round()),
),
const Gap(64),
ButtonWidget(text: 'Login', onPressed: gotoLogin),
const Gap(8),
ButtonWidget(text: 'Register', onPressed: gotoRegister, outline: true),
const Gap(32),
const SloganWidget(),
const Gap(32),
const MaxGap(500),
const TextWidget(
text: 'Copyright © 2025 - Ofelia Franco-Alcala Pharmacy',
size: 10,
bold: true,
),
const TextWidget(
text: 'Developed By: Pat Alcala',
size: 8,
opacity: 0.8,
),
const Gap(16),
],
),
body: PageBackgroundWidget(
child: Column(
children: [
const Gap(88),
const TitleWidget(
firstTextSize: 24,
secondTextSize: 40,
logoSize: 124,
),
const Gap(32),
Padding(
padding: const EdgeInsets.fromLTRB(0, 0, 38, 0),
child: Image.asset('assets/ph_logo.webp',
width: 192, cacheWidth: (192 * MediaQuery.of(context).devicePixelRatio).round()),
),
const Gap(64),
ButtonWidget(text: 'Login', onPressed: gotoLogin),
const Gap(8),
ButtonWidget(text: 'Register', onPressed: gotoRegister, outline: true),
const Gap(32),
const SloganWidget(),
const Gap(32),
const MaxGap(500),
const TextWidget(
text: 'Copyright © 2025 - Ofelia Franco-Alcala Pharmacy',
size: 10,
bold: true,
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const TextWidget(
text: 'Developed By:',
size: 8,
opacity: 0.8,
),
const Gap(4),
Image.asset('assets/pat-alcala_logo.webp',
height: 12, cacheHeight: (12 * MediaQuery.of(context).devicePixelRatio).round()),
const Gap(4),
const TextWidget(
text: 'Pat Alcala',
size: 8,
opacity: 0.8,
),
],
)
// const TextWidget(
// text: 'Developed By: Pat Alcala',
// size: 8,
// opacity: 0.8,
// ),
// const Gap(16),
],
),
));
}