mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 19:48:56 +03:30
Set new url of looking for an item
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user