@ -460,112 +460,126 @@ class _HomePageFragment2State extends State<HomePageFragment2> {
flex: 1 ,
child: InkWell (
onTap: ( ) {
widget . onPharmacyClick ( ) ;
if ( projectViewModel . havePrivilege ( 100 ) ) widget . onPharmacyClick ( ) ;
} ,
child: Container (
width: double . infinity ,
height: double . infinity ,
clipBehavior: Clip . antiAlias ,
decoration: containerRadiusWithGradientServices ( 20 , lightColor: CustomColors . lightGreyColor , darkColor: CustomColors . lightGreyColor ) ,
child: Stack (
children: [
Container (
width: double . infinity ,
height: double . infinity ,
/ / color: Color ( 0xFF2B353E ) ,
decoration: containerRadius ( Color ( 0xFF359846 ) , 20 ) ,
) ,
Container (
width: double . infinity ,
height: double . infinity ,
clipBehavior: Clip . antiAlias ,
decoration: projectViewModel . isArabic
? containerBottomRightRadiusWithGradientForAr ( 60 , lightColor: CustomColors . lightGreyColor , darkColor: CustomColors . lightGreyColor )
: containerBottomRightRadiusWithGradient ( 60 , lightColor: CustomColors . lightGreyColor , darkColor: CustomColors . lightGreyColor ) ,
child: Stack (
children: [
SvgPicture . asset (
" assets/images/new/strips.svg " ,
width: double . infinity ,
height: double . infinity ,
fit: BoxFit . cover ,
) ,
] ,
child: Stack ( children: [
Container (
width: double . infinity ,
height: double . infinity ,
clipBehavior: Clip . antiAlias ,
decoration: containerRadiusWithGradientServices ( 20 , lightColor: CustomColors . lightGreyColor , darkColor: CustomColors . lightGreyColor ) ,
child: Stack (
children: [
Container (
width: double . infinity ,
height: double . infinity ,
/ / color: Color ( 0xFF2B353E ) ,
decoration: containerRadius ( Color ( 0xFF359846 ) , 20 ) ,
) ,
) ,
projectViewModel . isArabic
? Positioned (
left: 20 ,
top: 12 ,
child: Opacity (
opacity: 0.04 ,
child: SvgPicture . asset (
" assets/images/new/Pharmacy.svg " ,
height: MediaQuery . of ( context ) . size . width * 0.15 ,
Container (
width: double . infinity ,
height: double . infinity ,
clipBehavior: Clip . antiAlias ,
decoration: projectViewModel . isArabic
? containerBottomRightRadiusWithGradientForAr ( 60 , lightColor: CustomColors . lightGreyColor , darkColor: CustomColors . lightGreyColor )
: containerBottomRightRadiusWithGradient ( 60 , lightColor: CustomColors . lightGreyColor , darkColor: CustomColors . lightGreyColor ) ,
child: Stack (
children: [
SvgPicture . asset (
" assets/images/new/strips.svg " ,
width: double . infinity ,
height: double . infinity ,
fit: BoxFit . cover ,
) ,
] ,
) ,
) ,
projectViewModel . isArabic
? Positioned (
left: 20 ,
top: 12 ,
child: Opacity (
opacity: 0.04 ,
child: SvgPicture . asset (
" assets/images/new/Pharmacy.svg " ,
height: MediaQuery . of ( context ) . size . width * 0.15 ,
) ,
) ,
)
: Positioned (
right: 20 ,
top: 12 ,
child: Opacity (
opacity: 0.04 ,
child: SvgPicture . asset (
" assets/images/new/Pharmacy.svg " ,
height: MediaQuery . of ( context ) . size . width * 0.15 ,
) ,
) ,
) ,
)
: Positioned (
right: 20 ,
top: 12 ,
child: Opacity (
opacity: 0.04 ,
Container (
width: double . infinity ,
height: double . infinity ,
padding: EdgeInsets . all ( SizeConfig . widthMultiplier * 3.4 ) ,
child: Column (
crossAxisAlignment: CrossAxisAlignment . start ,
mainAxisAlignment: MainAxisAlignment . center ,
children: [
Container (
color: Colors . yellow ,
/ / width: MediaQuery . of ( context ) . size . width * 0.065 ,
child: SvgPicture . asset (
" assets/images/new/Pharmacy.svg " ,
height: MediaQuery . of ( context ) . size . width * 0.15 ,
height: MediaQuery . of ( context ) . size . width * 0. 08 ,
) ,
) ,
) ,
Container (
width: double . infinity ,
height: double . infinity ,
padding: EdgeInsets . all ( SizeConfig . widthMultiplier * 3.4 ) ,
child: Column (
crossAxisAlignment: CrossAxisAlignment . start ,
mainAxisAlignment: MainAxisAlignment . center ,
children: [
Container (
color: Colors . yellow ,
/ / width: MediaQuery . of ( context ) . size . width * 0.065 ,
child: SvgPicture . asset (
" assets/images/new/Pharmacy.svg " ,
height: MediaQuery . of ( context ) . size . width * 0.08 ,
) ,
) ,
mFlex ( 1 ) ,
Column (
crossAxisAlignment: CrossAxisAlignment . start ,
mainAxisAlignment: MainAxisAlignment . center ,
children: [
Text (
TranslationBase . of ( context ) . onlinePharmacy ,
style: TextStyle (
color: Colors . black ,
fontSize: 14 ,
fontWeight: FontWeight . bold ,
letterSpacing: - 0.45 ,
height: 1 ,
mFlex ( 1 ) ,
Column (
crossAxisAlignment: CrossAxisAlignment . start ,
mainAxisAlignment: MainAxisAlignment . center ,
children: [
Text (
TranslationBase . of ( context ) . onlinePharmacy ,
style: TextStyle (
color: Colors . black ,
fontSize: 14 ,
fontWeight: FontWeight . bold ,
letterSpacing: - 0.45 ,
height: 1 ,
) ,
) ,
) ,
projectViewModel . isArabic ? mHeight ( 5 ) : Container ( ) ,
Text (
TranslationBase . of ( context ) . ecommerceSolution ,
style: TextStyle (
color: Colors . black ,
fontSize: 9 ,
fontWeight: FontWeight . w600 ,
letterSpacing: - 0.27 ,
height: projectViewModel . isArabic ? 0.2 : 1 ,
projectViewModel . isArabic ? mHeight ( 5 ) : Container ( ) ,
Text (
TranslationBase . of ( context ) . ecommerceSolution ,
style: TextStyle (
color: Colors . black ,
fontSize: 9 ,
fontWeight: FontWeight . w600 ,
letterSpacing: - 0.27 ,
height: projectViewModel . isArabic ? 0.2 : 1 ,
) ,
) ,
) ,
] ,
) ,
] ,
] ,
) ,
] ,
) ,
) ,
) ,
] ,
] ,
) ,
) ,
) ,
projectViewModel . havePrivilege ( 100 )
? Container ( )
: Container (
width: double . infinity ,
height: double . infinity ,
clipBehavior: Clip . antiAlias ,
decoration: containerRadiusWithGradientServices ( 20 , lightColor: CustomColors . lightGreyColor . withOpacity ( 0.7 ) , darkColor: CustomColors . lightGreyColor . withOpacity ( 0.7 ) ) ,
child: Icon (
Icons . lock_outline ,
size: 40 ,
) ,
)
] ) ,
) ,
) ;
}