From 102d6dda20b34c400ea4068997aecc03fe1c3444 Mon Sep 17 00:00:00 2001 From: RoaaGhali98 Date: Wed, 6 Apr 2022 11:52:54 +0300 Subject: [PATCH] DAPP-19: Users can navigate each SOAP by clicking the title tab. --- .../shared_soap_widgets/steper/steps_widget.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/screens/patients/profile/soap_update/shared_soap_widgets/steper/steps_widget.dart b/lib/screens/patients/profile/soap_update/shared_soap_widgets/steper/steps_widget.dart index cb1cb2f1..d9593f70 100644 --- a/lib/screens/patients/profile/soap_update/shared_soap_widgets/steper/steps_widget.dart +++ b/lib/screens/patients/profile/soap_update/shared_soap_widgets/steper/steps_widget.dart @@ -120,7 +120,7 @@ class StepsWidget extends StatelessWidget { ? MediaQuery.of(context).size.width * 0.25 : MediaQuery.of(context).size.width * 0.71, child: InkWell( - onTap: () => index >= 1 ? changeCurrentTab(1) : null, + onTap: () => changeCurrentTab(1), child: Column( crossAxisAlignment: CrossAxisAlignment.center, children: [ @@ -174,7 +174,7 @@ class StepsWidget extends StatelessWidget { left: MediaQuery.of(context).size.width * 0.47, child: InkWell( onTap: () { - if (index >= 3) changeCurrentTab(2); + changeCurrentTab(2); }, child: Column( crossAxisAlignment: CrossAxisAlignment.center, @@ -228,7 +228,7 @@ class StepsWidget extends StatelessWidget { top: circleTop, right: 0, child: InkWell( - onTap: () => index >= 3 ? changeCurrentTab(4) : null, + onTap: () => changeCurrentTab(4), child: Column( crossAxisAlignment: CrossAxisAlignment.end, children: [ @@ -358,7 +358,7 @@ class StepsWidget extends StatelessWidget { ? 0.25 : 0.71), child: InkWell( - onTap: () => index >= 2 ? changeCurrentTab(1) : null, + onTap: () => changeCurrentTab(1), child: Column( crossAxisAlignment: CrossAxisAlignment.center, children: [ @@ -408,7 +408,7 @@ class StepsWidget extends StatelessWidget { top: circleTop, right: MediaQuery.of(context).size.width * 0.50, child: InkWell( - onTap: () => index >= 3 ? changeCurrentTab(2) : null, + onTap: () => changeCurrentTab(2), child: Column( crossAxisAlignment: CrossAxisAlignment.center, children: [ @@ -463,7 +463,7 @@ class StepsWidget extends StatelessWidget { top: circleTop, left: 0, child: InkWell( - onTap: () => index >= 3 ? changeCurrentTab(4) : null, + onTap: () => changeCurrentTab(4), child: Column( crossAxisAlignment: CrossAxisAlignment.end, children: [ -- 2.30.2