mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-11 17:08:56 +03:30
Fix loading bug in pages and some search bug
This commit is contained in:
@@ -142,6 +142,7 @@ class _MyPackagesMineScreenState extends State<MyPackagesMineScreen> {
|
||||
myPackages.setLoading();
|
||||
await myPackages.searchMyPackages(searchVal ?? "");
|
||||
},
|
||||
textInputType: TextInputType.text,
|
||||
),
|
||||
SizedBox(
|
||||
height: 20,
|
||||
|
||||
@@ -211,6 +211,7 @@ class _PackageResultScreenState extends State<PackageResultScreen> {
|
||||
packages.setLoading();
|
||||
await packages.search(searchVal ?? "");
|
||||
},
|
||||
textInputType: TextInputType.text,
|
||||
),
|
||||
SizedBox(
|
||||
height: 20,
|
||||
|
||||
@@ -49,7 +49,13 @@ class _FormPageState extends State<FormPage> {
|
||||
_isLoadingButton = false;
|
||||
});
|
||||
if (result == 'done') {
|
||||
Navigator.of(context).popAndPushNamed(Routes.testResultScreen);
|
||||
// Navigator.of(context).popAndPushNamed(Routes.testResultScreen);
|
||||
Navigator.of(context).pop();
|
||||
prvObject.setLoading();
|
||||
prvObject.resetPageNumber();
|
||||
prvObject
|
||||
.getTestResults()
|
||||
.then((value) => {prvObject.resetLoading()});
|
||||
Fluttertoast.showToast(
|
||||
msg: "Test added.",
|
||||
toastLength: Toast.LENGTH_SHORT,
|
||||
|
||||
Reference in New Issue
Block a user