mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-12 23:38:55 +03:30
Fix test input api
This commit is contained in:
@@ -139,6 +139,10 @@ class _TestResultAddScreenState extends State<TestResultAddScreen> {
|
||||
context,
|
||||
listen: false,
|
||||
).testTypeId = result;
|
||||
Provider.of<TestResultsProvider>(
|
||||
context,
|
||||
listen: false,
|
||||
).isFromTestID = false;
|
||||
Navigator.pushNamed(
|
||||
context,
|
||||
Routes.formTestResultScreen,
|
||||
|
||||
@@ -81,11 +81,13 @@ class _FormPageState extends State<FormPage> {
|
||||
});
|
||||
var providerObject = Provider.of<TestResultsProvider>(context);
|
||||
String testTypeId = Provider.of<TestResultsProvider>(context).testTypeId;
|
||||
bool isFromTestID = Provider.of<TestResultsProvider>(context).isFromTestID;
|
||||
providerObject.catchImages.clear();
|
||||
Provider.of<Inputs>(context, listen: false)
|
||||
.getInputs(
|
||||
testResultId: '',
|
||||
testTypeId: testTypeId,
|
||||
isId: isFromTestID,
|
||||
)
|
||||
.then((_) {
|
||||
setState(() {
|
||||
|
||||
Reference in New Issue
Block a user