update
This commit is contained in:
parent
bda39a56d0
commit
37a855cc6c
21 changed files with 176 additions and 226 deletions
|
|
@ -19,6 +19,7 @@ import 'package:pharmacy_mobile/widgets/button_widget.dart';
|
|||
import 'package:pharmacy_mobile/widgets/dropdown_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/dropdown_wrappermulti_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/form_border_widget2.dart';
|
||||
import 'package:pharmacy_mobile/widgets/image_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/input_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/page_background_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/scanbarcode_widget.dart';
|
||||
|
|
@ -309,10 +310,17 @@ class _AddMedicinePageState extends State<AddMedicinePage> {
|
|||
const Gap(16),
|
||||
if (imageUrl.isNotEmpty)
|
||||
Center(
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(12), // Add your desired border radius here
|
||||
child: Image.network(imageUrl, fit: BoxFit.cover, width: 250, height: 250)),
|
||||
)
|
||||
child: ClipRRect(
|
||||
borderRadius:
|
||||
BorderRadius.circular(12), // Add your desired border radius here
|
||||
child: ImageWidget(
|
||||
imagePath: imageUrl,
|
||||
size: 250,
|
||||
measureByHeight: false,
|
||||
network: true,
|
||||
))
|
||||
// Image.network(imageUrl, fit: BoxFit.cover, width: 250, height: 250)),
|
||||
)
|
||||
else
|
||||
ButtonWidget(
|
||||
text: 'Add Image',
|
||||
|
|
@ -326,37 +334,6 @@ class _AddMedicinePageState extends State<AddMedicinePage> {
|
|||
ButtonWidget(text: 'Save Medicine', onPressed: _saveMedicine)
|
||||
])
|
||||
]),
|
||||
// DropdownWrapperWidget(
|
||||
// list: _genericNameList,
|
||||
// text: 'Generics',
|
||||
// widget: Column(
|
||||
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||
// children: [
|
||||
// DropDownWidget(
|
||||
// label: 'Generic Name',
|
||||
// list: _genericNameList,
|
||||
// listTitle: 'generic_name',
|
||||
// onChanged: _updateGeneric),
|
||||
// const Gap(8),
|
||||
// TextWidget(text: _selectedCategory, size: 18),
|
||||
// ],
|
||||
// )),
|
||||
// const Gap(16),
|
||||
// DropdownWrapperWidget(
|
||||
// list: _typeList,
|
||||
// text: 'Types',
|
||||
// widget: DropDownWidget(
|
||||
// label: 'Type', list: _typeList, listTitle: 'type_name', onChanged: _updateType)),
|
||||
// const Gap(16),
|
||||
// DropdownWrapperWidget(
|
||||
// list: _manufactorerList,
|
||||
// text: 'Manufactorers',
|
||||
// widget: DropDownWidget(
|
||||
// label: 'Manufactorer',
|
||||
// list: _manufactorerList,
|
||||
// listTitle: 'manufactorer_name',
|
||||
// onChanged: _updateManufactorer)),
|
||||
// const Gap(32),
|
||||
],
|
||||
),
|
||||
)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue