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> { class _ItemScanScreenState extends State<ItemScanScreen> {
TextEditingController idCTRL = new TextEditingController(); TextEditingController udiCTRL = new TextEditingController();
final _form = GlobalKey<FormState>(); final _form = GlobalKey<FormState>();
@override @override
@@ -97,7 +97,7 @@ class _ItemScanScreenState extends State<ItemScanScreen> {
print('access'); print('access');
} else { } else {
launch( launch(
'https://cssd-doc.com/Show/Item/$result', 'https://www.cssd-doc.com/Show/UDI/$result',
); );
// Navigator.of(context).pushNamed( // Navigator.of(context).pushNamed(
// Routes.cycleDetailScreen, // Routes.cycleDetailScreen,
@@ -120,7 +120,7 @@ class _ItemScanScreenState extends State<ItemScanScreen> {
} }
return null; return null;
}, },
controller: idCTRL, controller: udiCTRL,
decoration: InputDecoration( decoration: InputDecoration(
icon: Icon( icon: Icon(
FontAwesomeIcons.sortNumericDown, FontAwesomeIcons.sortNumericDown,
@@ -131,7 +131,7 @@ class _ItemScanScreenState extends State<ItemScanScreen> {
fontSize: 4 * _deviceBlockSize, fontSize: 4 * _deviceBlockSize,
), ),
isDense: true, isDense: true,
labelText: 'Or enter an Item ID', labelText: 'Or enter an Item UDI',
contentPadding: EdgeInsets.symmetric( contentPadding: EdgeInsets.symmetric(
vertical: 2, vertical: 2,
horizontal: 3, horizontal: 3,
@@ -159,7 +159,7 @@ class _ItemScanScreenState extends State<ItemScanScreen> {
return; return;
} }
launch( launch(
'https://cssd-doc.com/Show/Item/${idCTRL.text}', 'https://www.cssd-doc.com/Show/UDI/${udiCTRL.text}',
); );
// Navigator.of(context).pushNamed( // Navigator.of(context).pushNamed(
// Routes.cycleDetailScreen, // Routes.cycleDetailScreen,