Set new url of looking for an item

This commit is contained in:
hanie.khodkari
2025-05-13 19:51:05 +03:30
parent 7e4b9a383e
commit d91c3b505d
+5 -5
View File
@@ -16,7 +16,7 @@ class ItemScanScreen extends StatefulWidget {
}
class _ItemScanScreenState extends State<ItemScanScreen> {
TextEditingController idCTRL = new TextEditingController();
TextEditingController udiCTRL = new TextEditingController();
final _form = GlobalKey<FormState>();
@override
@@ -97,7 +97,7 @@ class _ItemScanScreenState extends State<ItemScanScreen> {
print('access');
} else {
launch(
'https://cssd-doc.com/Show/Item/$result',
'https://www.cssd-doc.com/Show/UDI/$result',
);
// Navigator.of(context).pushNamed(
// Routes.cycleDetailScreen,
@@ -120,7 +120,7 @@ class _ItemScanScreenState extends State<ItemScanScreen> {
}
return null;
},
controller: idCTRL,
controller: udiCTRL,
decoration: InputDecoration(
icon: Icon(
FontAwesomeIcons.sortNumericDown,
@@ -131,7 +131,7 @@ class _ItemScanScreenState extends State<ItemScanScreen> {
fontSize: 4 * _deviceBlockSize,
),
isDense: true,
labelText: 'Or enter an Item ID',
labelText: 'Or enter an Item UDI',
contentPadding: EdgeInsets.symmetric(
vertical: 2,
horizontal: 3,
@@ -159,7 +159,7 @@ class _ItemScanScreenState extends State<ItemScanScreen> {
return;
}
launch(
'https://cssd-doc.com/Show/Item/${idCTRL.text}',
'https://www.cssd-doc.com/Show/UDI/${udiCTRL.text}',
);
// Navigator.of(context).pushNamed(
// Routes.cycleDetailScreen,