update
This commit is contained in:
parent
f4119130a6
commit
148cdec83c
10 changed files with 148 additions and 194 deletions
|
|
@ -8,13 +8,8 @@ import 'package:pharmacy_mobile/widgets/customer_pagebackground_widget.dart';
|
|||
import 'package:pharmacy_mobile/widgets/customer_title_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/input_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/item_card_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/logo_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/page_background_widget.dart';
|
||||
import 'package:redacted/redacted.dart';
|
||||
|
||||
class CustomerSearchPage extends StatefulWidget {
|
||||
// final NotchBottomBarController? controller;
|
||||
// final
|
||||
const CustomerSearchPage({super.key});
|
||||
|
||||
@override
|
||||
|
|
@ -82,106 +77,65 @@ class _CustomerSearchPageState extends State<CustomerSearchPage> {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
const double imageSize = 180;
|
||||
// const double imageSize = 180;
|
||||
|
||||
return Scaffold(
|
||||
body: CustomerPagebackgroundWidget(
|
||||
height: MediaQuery.of(context).size.height + 350,
|
||||
child: Column(
|
||||
children: [
|
||||
Column(
|
||||
children: [
|
||||
const Gap(96),
|
||||
const CustomerTitleWidget(),
|
||||
const Gap(8),
|
||||
Container(
|
||||
padding: const EdgeInsets.only(left: 64, right: 64),
|
||||
child: Column(
|
||||
children: [
|
||||
InputWidget(
|
||||
label: '',
|
||||
controller: _searchController,
|
||||
placeholder: 'Search for medicine',
|
||||
),
|
||||
// const Gap(8),
|
||||
// ButtonWidget(
|
||||
// text: 'Search',
|
||||
// onPressed: _filterList,
|
||||
// width: 160,
|
||||
// )
|
||||
],
|
||||
),
|
||||
),
|
||||
const Gap(32),
|
||||
// Center(
|
||||
// child: imageUrl.isNotEmpty
|
||||
// ? ClipRRect(
|
||||
// borderRadius: BorderRadius.circular(12), // Add your desired border radius here
|
||||
// child: Image.network(imageUrl,
|
||||
// fit: BoxFit.cover,
|
||||
// width: 250,
|
||||
// height: 250,
|
||||
// cacheWidth: (250 * MediaQuery.of(context).devicePixelRatio).round()))
|
||||
// : const CircularProgressIndicator(
|
||||
// color: Colors.white,
|
||||
// strokeWidth: 4,
|
||||
// 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,
|
||||
isLoading: imageUrl.isEmpty,
|
||||
Column(
|
||||
children: [
|
||||
const Gap(96),
|
||||
const CustomerTitleWidget(),
|
||||
const Gap(8),
|
||||
Container(
|
||||
padding: const EdgeInsets.only(left: 64, right: 64),
|
||||
child: Column(
|
||||
children: [
|
||||
InputWidget(
|
||||
label: '',
|
||||
controller: _searchController,
|
||||
placeholder: 'Search for medicine',
|
||||
),
|
||||
],
|
||||
),
|
||||
ItemCardWidget(
|
||||
imageUrl: imageUrl,
|
||||
text: 'sample',
|
||||
price: 20,
|
||||
quantity: 85,
|
||||
isLoading: imageUrl.isEmpty,
|
||||
),
|
||||
const Gap(32),
|
||||
SizedBox(
|
||||
height: MediaQuery.of(context).size.height + 110,
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: List.generate(_stockList.length, (index) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.fromLTRB(0, 8, 0, 8),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
ItemCardWidget(
|
||||
imageUrl: imageUrl,
|
||||
text: 'sample',
|
||||
price: 500,
|
||||
quantity: 15,
|
||||
isLoading: imageUrl.isEmpty,
|
||||
),
|
||||
ItemCardWidget(
|
||||
imageUrl: imageUrl,
|
||||
text: 'sample',
|
||||
price: 20,
|
||||
quantity: 85,
|
||||
isLoading: imageUrl.isEmpty,
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
],
|
||||
)
|
||||
],
|
||||
),
|
||||
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,
|
||||
isLoading: imageUrl.isEmpty,
|
||||
),
|
||||
ItemCardWidget(
|
||||
imageUrl: imageUrl,
|
||||
text: 'sample',
|
||||
price: 20,
|
||||
quantity: 85,
|
||||
isLoading: imageUrl.isEmpty,
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
],
|
||||
)
|
||||
],
|
||||
)
|
||||
],
|
||||
)));
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ class ConsultationWidget extends StatelessWidget {
|
|||
children: [
|
||||
TextWidget(
|
||||
text: name,
|
||||
size: 16,
|
||||
size: 12,
|
||||
bold: true,
|
||||
),
|
||||
const Gap(4),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue