update
This commit is contained in:
parent
c41c19b469
commit
6e4b2249b0
17 changed files with 276 additions and 187 deletions
|
|
@ -4,7 +4,7 @@ import 'package:pharmacy_mobile/auth/auth_service.dart';
|
|||
import 'package:pharmacy_mobile/widgets/button_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/consultation_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/logo_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/menu_widget2.dart';
|
||||
import 'package:pharmacy_mobile/widgets/menu_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/page_background_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/snackbar_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/text_widget.dart';
|
||||
|
|
@ -20,87 +20,77 @@ class CustomerMainPage extends StatefulWidget {
|
|||
}
|
||||
|
||||
class _CustomerMainPageState extends State<CustomerMainPage> {
|
||||
final _authService = AuthService();
|
||||
|
||||
void signOut() async {
|
||||
// ignore: use_build_context_synchronously
|
||||
await _authService.signOut().then((_) => {context.go('/'), showNotification(context, 'Logged Out', true)});
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: PageBackgroundWidget(
|
||||
dark: true,
|
||||
child: Column(
|
||||
children: [
|
||||
Column(
|
||||
children: [
|
||||
const Gap(96),
|
||||
const Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
Gap(16),
|
||||
LogoWidget(size: 56),
|
||||
],
|
||||
),
|
||||
const Gap(16),
|
||||
const Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
Gap(16),
|
||||
TextWidget(
|
||||
text: 'Pharmacist Consultation',
|
||||
title: true,
|
||||
size: 14,
|
||||
),
|
||||
],
|
||||
),
|
||||
const Gap(8),
|
||||
ConsultationWidget(name: 'Ofelia Franco-Alcala, RPh'),
|
||||
MenuWidget(
|
||||
// icon: FontAwesomeIcons.diagramNext,
|
||||
text: 'Ofelia Franco-Alcala, RPh',
|
||||
description: 'aaa',
|
||||
onPressed: () => {context.push('/deletestock')},
|
||||
color: 'green',
|
||||
width: MediaQuery.of(context).size.width - 32,
|
||||
),
|
||||
const Gap(8),
|
||||
MenuWidget(
|
||||
// icon: FontAwesomeIcons.diagramNext,
|
||||
text: 'Pamela Claire Alcala, RPh',
|
||||
description: 'aaa',
|
||||
onPressed: () => {context.push('/deletestock')},
|
||||
color: 'green',
|
||||
width: MediaQuery.of(context).size.width - 32,
|
||||
),
|
||||
const Gap(16),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
const Gap(16),
|
||||
const TextWidget(
|
||||
text: 'Doctor Consultation',
|
||||
title: true,
|
||||
size: 14,
|
||||
),
|
||||
],
|
||||
),
|
||||
const Gap(8),
|
||||
MenuWidget(
|
||||
// icon: FontAwesomeIcons.diagramNext,
|
||||
text: 'Floherna Franco-Diccion, PhD',
|
||||
description: 'aaa',
|
||||
onPressed: () => {context.push('/deletestock')},
|
||||
color: 'green',
|
||||
width: MediaQuery.of(context).size.width - 32,
|
||||
),
|
||||
const Gap(32),
|
||||
ButtonWidget(text: 'Log Out', onPressed: signOut)
|
||||
],
|
||||
)
|
||||
],
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Column(
|
||||
children: [
|
||||
const Gap(96),
|
||||
const Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
// Gap(16),
|
||||
LogoWidget(size: 56),
|
||||
],
|
||||
),
|
||||
const Gap(16),
|
||||
const Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
TextWidget(
|
||||
text: 'Pharmacist Consultation',
|
||||
title: true,
|
||||
size: 14,
|
||||
),
|
||||
],
|
||||
),
|
||||
const Gap(8),
|
||||
ConsultationWidget(
|
||||
name: 'Ofelia Franco-Alcala, RPh',
|
||||
description: 'Pharmacist',
|
||||
contact: '09205436095',
|
||||
imagePath: 'assets/images/ofelia.webp',
|
||||
color: 'pink',
|
||||
margin: 32,
|
||||
),
|
||||
const Gap(8),
|
||||
ConsultationWidget(
|
||||
name: 'Pamela Claire Alcala, RPh',
|
||||
description: 'Pharmacist',
|
||||
contact: '09205436095',
|
||||
imagePath: 'assets/images/pamela.webp',
|
||||
color: 'pink',
|
||||
margin: 32,
|
||||
),
|
||||
const Gap(16),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
const TextWidget(
|
||||
text: 'Doctor Consultation',
|
||||
title: true,
|
||||
size: 14,
|
||||
),
|
||||
],
|
||||
),
|
||||
const Gap(8),
|
||||
ConsultationWidget(
|
||||
name: 'Floherna Franco-Diccion, PhD',
|
||||
description: 'Physician',
|
||||
contact: '09205436095',
|
||||
imagePath: 'assets/ph_logo.webp',
|
||||
color: 'yellow',
|
||||
margin: 32,
|
||||
),
|
||||
// const Gap(32),
|
||||
// ButtonWidget(text: 'Log Out', onPressed: signOut)
|
||||
],
|
||||
),
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue