|
|
|
|
@ -42,36 +42,40 @@ class _MyHomePageState extends State<MyHomePage> {
|
|
|
|
|
setState(() {
|
|
|
|
|
remainingTime--;
|
|
|
|
|
if (remainingTime > 25) {
|
|
|
|
|
|
|
|
|
|
/// for 0 patinet
|
|
|
|
|
widget.have0Patient = true;
|
|
|
|
|
widget.have1Patient = false;
|
|
|
|
|
widget.have2Patient = false;
|
|
|
|
|
widget.have3Patient = false;
|
|
|
|
|
widget.haveListOfPatient = false;
|
|
|
|
|
} else if (remainingTime > 20) {
|
|
|
|
|
/// for 1 patinet
|
|
|
|
|
|
|
|
|
|
widget.have0Patient = false;
|
|
|
|
|
widget.have1Patient = true;
|
|
|
|
|
widget.have2Patient = false;
|
|
|
|
|
widget.have3Patient = false;
|
|
|
|
|
widget.haveListOfPatient = false;
|
|
|
|
|
} else if (remainingTime > 15) {
|
|
|
|
|
|
|
|
|
|
/// for 2 patinet
|
|
|
|
|
|
|
|
|
|
widget.have0Patient = false;
|
|
|
|
|
widget.have1Patient = false;
|
|
|
|
|
widget.have2Patient = true;
|
|
|
|
|
widget.have3Patient = false;
|
|
|
|
|
widget.haveListOfPatient = false;
|
|
|
|
|
} else if (remainingTime > 10) {
|
|
|
|
|
widget.have0Patient = false;
|
|
|
|
|
widget.have1Patient = false;
|
|
|
|
|
widget.have2Patient = false;
|
|
|
|
|
widget.have3Patient = true;
|
|
|
|
|
widget.haveListOfPatient = false;
|
|
|
|
|
} else if (remainingTime > 5) {
|
|
|
|
|
/// for 3 only patinet
|
|
|
|
|
widget.have0Patient = false;
|
|
|
|
|
widget.have1Patient = false;
|
|
|
|
|
widget.have2Patient = false;
|
|
|
|
|
widget.have3Patient = true;
|
|
|
|
|
widget.haveListOfPatient = false;
|
|
|
|
|
} else {
|
|
|
|
|
/// for 3+ only patinet
|
|
|
|
|
|
|
|
|
|
widget.have0Patient = false;
|
|
|
|
|
widget.have1Patient = false;
|
|
|
|
|
widget.have2Patient = false;
|
|
|
|
|
|