Fix loading bug in pages and some search bug

This commit is contained in:
hanie.khodkari
2025-05-17 21:28:30 +03:30
parent 94d22a474d
commit ffd4d36ac2
8 changed files with 36 additions and 8 deletions
@@ -49,7 +49,13 @@ class CycleAddSaveButton extends StatelessWidget {
descriptionCTRL.text,
striizerIdCTRL.text,
);
Navigator.of(context).pushReplacementNamed(Routes.cycleResultScreen);
// Navigator.of(context).pushReplacementNamed(Routes.cycleResultScreen);
Navigator.of(context).pop();
var cycles =
await Provider.of<CyclesProvider>(context, listen: false);
cycles.setLoading();
cycles.resetPageNumber();
cycles.getCycleResults().then((value) => {cycles.resetLoading()});
Fluttertoast.showToast(
msg: "Cycle added.",
toastLength: Toast.LENGTH_SHORT,