update
This commit is contained in:
parent
947c19c401
commit
cbf2ff062f
9 changed files with 110 additions and 61 deletions
|
|
@ -93,18 +93,18 @@ class _AddStockPageState extends State<AddStockPage> with WidgetsBindingObserver
|
|||
}
|
||||
|
||||
Future<void> _scanBarcode() async {
|
||||
final medicine = await barcodeScan(context);
|
||||
final scannedBarcode = await barcodeScan(context);
|
||||
|
||||
setState(() {
|
||||
_selectedMedicine = medicine;
|
||||
_selectedMedicine = scannedBarcode;
|
||||
});
|
||||
}
|
||||
|
||||
Future<String> _getMedicineUsingBarcode(String name) async {
|
||||
final encryptedBarcode = await _refMedicines.getBarcode(name);
|
||||
final barcode = decrypt(encryptedBarcode);
|
||||
return barcode;
|
||||
}
|
||||
// Future<String> _getMedicineUsingBarcode(String barcode) async {
|
||||
// final encryptedBarcode = await _refMedicines.getBarcode(barcode);
|
||||
// final barcode = decrypt(encryptedBarcode);
|
||||
// return barcode;
|
||||
// }
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue