@ -57,10 +57,12 @@ class _HomePageFragment2State extends State<HomePageFragment2> {
hmgServices . add ( HmgServices ( 1 , TranslationBase . of ( context ) . liveCare , TranslationBase . of ( context ) . onlineConsulting , " assets/images/new/Live_Care.svg " , isLogin ) ) ;
projectViewModel . isIndoorNavigationEnabled
? hmgServices . add ( HmgServices ( 2 , TranslationBase . of ( context ) . hospitalNavigationTitle , TranslationBase . of ( context ) . hospitalNavigationSubtitle , " assets/images/new/indoor_nav_home.svg " , isLogin ) )
? hmgServices . add ( HmgServices ( 2 , TranslationBase . of ( context ) . hospitalNavigationTitle , TranslationBase . of ( context ) . hospitalNavigationSubtitle , " assets/images/new/indoor_nav_home.svg " , isLogin ,
isLocked: ! projectViewModel . havePrivilege ( 107 ) ) )
: hmgServices . add ( HmgServices ( 2 , TranslationBase . of ( context ) . emergencyTitle , TranslationBase . of ( context ) . emergencySubtitle , " assets/images/new/emergency.svg " , isLogin ) ) ;
hmgServices . add ( HmgServices ( 9 , TranslationBase . of ( context ) . emergency , TranslationBase . of ( context ) . checkinOptions , " assets/images/new/emergency.svg " , isLogin ) ) ;
hmgServices . add (
HmgServices ( 9 , TranslationBase . of ( context ) . emergency , TranslationBase . of ( context ) . checkinOptions , " assets/images/new/emergency.svg " , isLogin , isLocked: ! projectViewModel . havePrivilege ( 108 ) ) ) ;
hmgServices . add ( HmgServices ( 3 , TranslationBase . of ( context ) . hhcHome , TranslationBase . of ( context ) . healthCare , " assets/images/new/HHC.svg " , isLogin ) ) ;
hmgServices . add ( HmgServices ( 4 , TranslationBase . of ( context ) . checkup , TranslationBase . of ( context ) . comprehensive , " assets/images/new/comprehensive_checkup.svg " , isLogin ) ) ;
hmgServices . add ( HmgServices ( 5 , TranslationBase . of ( context ) . online , TranslationBase . of ( context ) . payment , " assets/images/new/paymentMethods.png " , isLogin ) ) ;
@ -76,10 +78,12 @@ class _HomePageFragment2State extends State<HomePageFragment2> {
/ / hmgServices . add ( new HmgServices ( 2 , TranslationBase . of ( context ) . online , TranslationBase . of ( context ) . payment , " assets/images/new/paymentMethods.png " , isLogin ) ) ;
projectViewModel . isIndoorNavigationEnabled
? hmgServices . add ( HmgServices ( 2 , TranslationBase . of ( context ) . hospitalNavigationTitle , TranslationBase . of ( context ) . hospitalNavigationSubtitle , " assets/images/new/indoor_nav_home.svg " , isLogin ) )
? hmgServices . add ( HmgServices ( 2 , TranslationBase . of ( context ) . hospitalNavigationTitle , TranslationBase . of ( context ) . hospitalNavigationSubtitle , " assets/images/new/indoor_nav_home.svg " , isLogin ,
isLocked: ! projectViewModel . havePrivilege ( 107 ) ) )
: hmgServices . add ( HmgServices ( 2 , TranslationBase . of ( context ) . emergencyTitle , TranslationBase . of ( context ) . emergencySubtitle , " assets/images/new/emergency.svg " , isLogin ) ) ;
hmgServices . add ( new HmgServices ( 9 , TranslationBase . of ( context ) . emergency , TranslationBase . of ( context ) . checkinOptions , " assets/images/new/emergency.svg " , isLogin ) ) ;
hmgServices . add ( new HmgServices ( 9 , TranslationBase . of ( context ) . emergency , TranslationBase . of ( context ) . checkinOptions , " assets/images/new/emergency.svg " , isLogin ,
isLocked: ! projectViewModel . havePrivilege ( 108 ) ) ) ;
hmgServices . add ( new HmgServices ( 3 , TranslationBase . of ( context ) . hhcHome , TranslationBase . of ( context ) . healthCare , " assets/images/new/HHC.svg " , isLogin ) ) ;
hmgServices . add ( new HmgServices ( 4 , TranslationBase . of ( context ) . checkup , TranslationBase . of ( context ) . comprehensive , " assets/images/new/comprehensive_checkup.svg " , isLogin ) ) ;
@ -358,8 +362,9 @@ class _HomePageFragment2State extends State<HomePageFragment2> {
itemCount: hmgServices . length ,
padding: EdgeInsets . zero ,
itemBuilder: ( BuildContext context , int index ) {
return ServicesView ( hmgServices [ index ] , index , true , projectViewModel ,
isLocked: ( hmgServices [ index ] . action = = 2 & & projectViewModel . isIndoorNavigationEnabled ) ? ! projectViewModel . havePrivilege ( 107 ) : false ) ;
/ / return ServicesView ( hmgServices [ index ] , index , true , projectViewModel ,
/ / isLocked: ( hmgServices [ index ] . action = = 2 & & projectViewModel . isIndoorNavigationEnabled ) ? ! projectViewModel . havePrivilege ( 107 ) : false ) ;
return ServicesView ( hmgServices [ index ] , index , true , projectViewModel , isLocked: hmgServices [ index ] . isLocked ) ;
} ,
) ,
) ,