update
This commit is contained in:
parent
ecccd4a9bf
commit
2d3f5bd96e
11 changed files with 184 additions and 143 deletions
|
|
@ -134,35 +134,33 @@ class _DeleteStockPageState extends State<DeleteStockPage> {
|
|||
color: 'red',
|
||||
child: Form(
|
||||
key: _formKey,
|
||||
child: Center(
|
||||
child: Column(
|
||||
children: [
|
||||
DropdownWrapperMultiWidget(list: _stockList, text: 'Stocks', children: [
|
||||
DropDownWidget(
|
||||
label: 'Stocks',
|
||||
list: _stockList,
|
||||
listTitle: 'medicine_name',
|
||||
onChanged: _updateStock,
|
||||
// value: _selectedStock,
|
||||
),
|
||||
const Gap(16),
|
||||
InputWidget(label: 'Quantity', controller: _quantityController, onChanged: _setQuantity),
|
||||
const Gap(32),
|
||||
if (_noStock)
|
||||
const WarningWidget(
|
||||
text: 'Removing Disabled',
|
||||
warning: 'Quantity is above sssss',
|
||||
)
|
||||
else if (_aboveQuantity)
|
||||
const WarningWidget(
|
||||
text: 'Removing Disabled',
|
||||
warning: 'Quantity is above stocked',
|
||||
)
|
||||
else
|
||||
ButtonWidget(text: 'Remove Stock', onPressed: _saveDeletion)
|
||||
])
|
||||
],
|
||||
),
|
||||
child: Column(
|
||||
children: [
|
||||
DropdownWrapperMultiWidget(list: _stockList, text: 'Stocks', children: [
|
||||
DropDownWidget(
|
||||
label: 'Stocks',
|
||||
list: _stockList,
|
||||
listTitle: 'medicine_name',
|
||||
onChanged: _updateStock,
|
||||
// value: _selectedStock,
|
||||
),
|
||||
const Gap(16),
|
||||
InputWidget(label: 'Quantity', controller: _quantityController, onChanged: _setQuantity),
|
||||
const Gap(32),
|
||||
if (_noStock)
|
||||
const WarningWidget(
|
||||
text: 'Removing Disabled',
|
||||
warning: 'Quantity is above sssss',
|
||||
)
|
||||
else if (_aboveQuantity)
|
||||
const WarningWidget(
|
||||
text: 'Removing Disabled',
|
||||
warning: 'Quantity is above stocked',
|
||||
)
|
||||
else
|
||||
ButtonWidget(text: 'Remove Stock', onPressed: _saveDeletion)
|
||||
])
|
||||
],
|
||||
)))
|
||||
]))));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue