update
This commit is contained in:
parent
08de65a681
commit
dfbecf1e3f
8 changed files with 130 additions and 69 deletions
|
|
@ -3,11 +3,10 @@ import 'package:gap/gap.dart';
|
|||
import 'package:pharmacy_mobile/widgets/consultation_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/customer_pagebackground_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/customer_title_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/description_menu_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/indicator_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/text_widget.dart';
|
||||
|
||||
class CustomerMainPage extends StatefulWidget {
|
||||
// final NotchBottomBarController? controller;
|
||||
const CustomerMainPage({super.key});
|
||||
|
||||
@override
|
||||
|
|
@ -25,16 +24,6 @@ class _CustomerMainPageState extends State<CustomerMainPage> {
|
|||
const CustomerTitleWidget(),
|
||||
const Gap(16),
|
||||
const IndicatorWidget(text: 'Pharmacist Consultation'),
|
||||
// const Row(
|
||||
// mainAxisAlignment: MainAxisAlignment.start,
|
||||
// children: [
|
||||
// TextWidget(
|
||||
// text: 'Pharmacist Consultation',
|
||||
// title: true,
|
||||
// size: 14,
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
const Gap(8),
|
||||
ConsultationWidget(
|
||||
name: 'Ofelia Franco-Alcala, RPh',
|
||||
|
|
@ -74,8 +63,17 @@ class _CustomerMainPageState extends State<CustomerMainPage> {
|
|||
color: 'blue',
|
||||
margin: 32,
|
||||
),
|
||||
// const Gap(32),
|
||||
// ButtonWidget(text: 'Log Out', onPressed: signOut)
|
||||
const Gap(16),
|
||||
const IndicatorWidget(text: 'Quick Description'),
|
||||
const Gap(8),
|
||||
const DescriptionMenuWidget(
|
||||
title: 'Fever', description: "A fever is an abnormally high body temperature.", margin: 16),
|
||||
const Gap(8),
|
||||
const DescriptionMenuWidget(
|
||||
title: 'Fever', description: "A fever is an abnormally high body temperature.", margin: 16),
|
||||
const Gap(8),
|
||||
const DescriptionMenuWidget(
|
||||
title: 'Fever', description: "A fever is an abnormally high body temperature.", margin: 16),
|
||||
],
|
||||
)));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,6 +51,35 @@ class _CustomerProfilePageState extends State<CustomerProfilePage> {
|
|||
const Gap(32),
|
||||
_isGuest ? const TextWidget(text: 'Guest Profile') : const TextWidget(text: 'My Profile'),
|
||||
const Gap(16),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
const TextWidget(
|
||||
text: 'Name:',
|
||||
size: 12,
|
||||
),
|
||||
const Gap(8),
|
||||
const TextWidget(
|
||||
text: 'Guest',
|
||||
size: 12,
|
||||
),
|
||||
],
|
||||
),
|
||||
const Gap(16),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
const TextWidget(
|
||||
text: 'Name:',
|
||||
size: 12,
|
||||
),
|
||||
const Gap(8),
|
||||
const TextWidget(
|
||||
text: 'Guest',
|
||||
size: 12,
|
||||
),
|
||||
],
|
||||
),
|
||||
const Gap(32),
|
||||
ButtonWidget(text: 'Log Out', onPressed: _signOut)
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,13 +1,6 @@
|
|||
import 'dart:developer';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:pharmacy_mobile/auth/auth_service.dart';
|
||||
import 'package:pharmacy_mobile/blocs/user/functions/bloc_getuser.dart';
|
||||
import 'package:pharmacy_mobile/blocs/user/functions/bloc_setuser.dart';
|
||||
import 'package:pharmacy_mobile/blocs/user/user_bloc.dart';
|
||||
import 'package:pharmacy_mobile/blocs/user/user_event.dart';
|
||||
import 'package:pharmacy_mobile/tables/cart.dart';
|
||||
import 'package:pharmacy_mobile/tables/stocks.dart';
|
||||
import 'package:pharmacy_mobile/tables/storage.dart';
|
||||
|
|
|
|||
41
lib/widgets/description_menu_widget.dart
Normal file
41
lib/widgets/description_menu_widget.dart
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:pharmacy_mobile/widgets/text_widget.dart';
|
||||
|
||||
class DescriptionMenuWidget extends StatelessWidget {
|
||||
final String title;
|
||||
final String description;
|
||||
final double margin;
|
||||
const DescriptionMenuWidget({super.key, required this.title, required this.margin, required this.description});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
width: MediaQuery.of(context).size.width,
|
||||
padding: const EdgeInsets.symmetric(vertical: 24),
|
||||
decoration:
|
||||
BoxDecoration(borderRadius: BorderRadius.circular(12), color: const Color.fromRGBO(255, 255, 255, 0.275)),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
const Gap(24),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
TextWidget(
|
||||
text: title,
|
||||
size: 16,
|
||||
bold: true,
|
||||
),
|
||||
const Gap(4),
|
||||
TextWidget(
|
||||
text: description,
|
||||
size: 12,
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue