This commit is contained in:
Patrick Alvin Alcala 2025-02-25 15:18:41 +08:00
parent b299297fa5
commit 11fc5c43bf
29 changed files with 1041 additions and 124 deletions

View file

@ -15,19 +15,15 @@ class CustomerCartPage extends StatelessWidget {
body: PageBackgroundWidget(
child: Column(
children: [
Column(
children: [
const Gap(96),
const TitleWidget(
firstTextSize: 14,
secondTextSize: 24,
logoSize: 90,
),
const Gap(32),
const TextWidget(text: 'My Cart'),
const Gap(16),
],
)
const Gap(96),
const TitleWidget(
firstTextSize: 14,
secondTextSize: 24,
logoSize: 90,
),
const Gap(32),
const TextWidget(text: 'My Cart'),
const Gap(16),
],
)));
}

View file

@ -0,0 +1,31 @@
import 'package:flutter/material.dart';
import 'package:pharmacy_mobile/tables/storage.dart';
import 'package:pharmacy_mobile/widgets/page_background_widget.dart';
class CustomerItemviewPage extends StatelessWidget {
const CustomerItemviewPage({super.key});
@override
Widget build(BuildContext context) {
final storage = Storage();
void getURL() async {
final image = await storage.getPublicURL('ref_medicines_images', 'cb6eafdb-d86f-460a-9571-44446570d4cb.webp');
// setState(() {
// imageUrl = image;
}
return Scaffold(
body: PageBackgroundWidget(
child: Column(
children: [
Image.network('imageUrl',
fit: BoxFit.cover,
width: 21,
height: 21 / 1.4,
cacheWidth: (21 * MediaQuery.of(context).devicePixelRatio).round()),
],
)),
);
}
}

View file

@ -76,6 +76,7 @@ class _CustomerSearchPageState extends State<CustomerSearchPage> {
return Scaffold(
body: PageBackgroundWidget(
// height: MediaQuery.of(context).size.height * 2,
child: Column(
children: [
Column(
@ -121,6 +122,30 @@ class _CustomerSearchPageState extends State<CustomerSearchPage> {
// padding: EdgeInsets.all(8),
// ),
// )
Column(
children: [
Padding(
padding: const EdgeInsets.fromLTRB(0, 8, 0, 8),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
ItemCardWidget(
imageUrl: imageUrl,
text: 'sample',
price: 500,
quantity: 15,
),
ItemCardWidget(
imageUrl: imageUrl,
text: 'sample',
price: 20,
quantity: 85,
),
],
),
)
],
),
Column(
children: [
Padding(