@ -60,10 +60,10 @@ class _DashboardScreenState extends State<DashboardScreen> with WidgetsBindingOb
 
			
		
	
		
		
			
				
					
					  void  initState ( )  { 
  void  initState ( )  { 
 
			
		
	
		
		
			
				
					
					    WidgetsBinding . instance . addObserver ( this ) ; 
    WidgetsBinding . instance . addObserver ( this ) ; 
 
			
		
	
		
		
			
				
					
					    super . initState ( ) ; 
    super . initState ( ) ; 
 
			
		
	
		
		
			
				
					
					    cProvider  =  Provider . of < ChatProviderModel > ( context ,  listen:  false ) ; 
 
			
		
	
		
		
			
				
					
					    scheduleMicrotask ( ( )  { 
    scheduleMicrotask ( ( )  { 
 
			
		
	
		
		
			
				
					
					      data  =  Provider . of < DashboardProviderModel > ( context ,  listen:  false ) ; 
      data  =  Provider . of < DashboardProviderModel > ( context ,  listen:  false ) ; 
 
			
		
	
		
		
			
				
					
					      marathonProvider  =  Provider . of < MarathonProvider > ( context ,  listen:  false ) ; 
      marathonProvider  =  Provider . of < MarathonProvider > ( context ,  listen:  false ) ; 
 
			
		
	
		
		
			
				
					
					      cProvider  =  Provider . of < ChatProviderModel > ( context ,  listen:  false ) ; 
 
			
		
	
		
		
			
				
					
					      if  ( checkIfPrivilegedForChat ( ) )  { 
      if  ( checkIfPrivilegedForChat ( ) )  { 
 
			
		
	
		
		
			
				
					
					        _bHubCon ( ) ; 
        _bHubCon ( ) ; 
 
			
		
	
		
		
			
				
					
					      } 
      } 
 
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -117,6 +117,7 @@ class _DashboardScreenState extends State<DashboardScreen> with WidgetsBindingOb
 
			
		
	
		
		
			
				
					
					  } 
  } 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					  Future < void >  checkHubCon ( )  async  { 
  Future < void >  checkHubCon ( )  async  { 
 
			
		
	
		
		
			
				
					
					    / /  chatHubConnection  =  await  context . read < ChatProviderModel > ( ) . getHubConnection ( ) ; 
 
			
		
	
		
		
			
				
					
					    if  ( chatHubConnection . state  = =  HubConnectionState . Connected )  { 
    if  ( chatHubConnection . state  = =  HubConnectionState . Connected )  { 
 
			
		
	
		
		
			
				
					
					      await  chatHubConnection . stop ( ) ; 
      await  chatHubConnection . stop ( ) ; 
 
			
		
	
		
		
			
				
					
					      await  chatHubConnection . start ( ) ; 
      await  chatHubConnection . start ( ) ; 
 
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -152,7 +153,7 @@ class _DashboardScreenState extends State<DashboardScreen> with WidgetsBindingOb
 
			
		
	
		
		
			
				
					
					    data . fetchLeaveTicketBalance ( context ,  DateTime . now ( ) ) ; 
    data . fetchLeaveTicketBalance ( context ,  DateTime . now ( ) ) ; 
 
			
		
	
		
		
			
				
					
					    data . fetchMenuEntries ( ) ; 
    data . fetchMenuEntries ( ) ; 
 
			
		
	
		
		
			
				
					
					    data . fetchEventActivity ( ) ; 
    data . fetchEventActivity ( ) ; 
 
			
		
	
		
		
			
				
					
					    data . getCategoryOffersListAPI ( context ) ; 
    / /  data . getCategoryOffersListAPI ( context ) ; 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    marathonProvider . getMarathonDetailsFromApi ( ) ; 
    marathonProvider . getMarathonDetailsFromApi ( ) ; 
 
			
		
	
		
		
			
				
					
					    marathonProvider . getMarathonTutorial ( ) ; 
    marathonProvider . getMarathonTutorial ( ) ; 
 
			
		
	
		
		
			
				
					
					    if  ( isFromInit )  { 
    if  ( isFromInit )  { 
 
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -243,440 +244,457 @@ class _DashboardScreenState extends State<DashboardScreen> with WidgetsBindingOb
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					  @ override 
  @ override 
 
			
		
	
		
		
			
				
					
					  Widget  build ( BuildContext  context )  { 
  Widget  build ( BuildContext  context )  { 
 
			
		
	
		
		
			
				
					
					    return  Scaffold ( 
    return  SafeArea ( 
 
			
				
				
			
		
	
		
		
			
				
					
					      key:  _scaffoldState , 
      bottom:  Platform . isAndroid  ?  true  :  false , 
 
			
				
				
			
		
	
		
		
			
				
					
					      body:  Column ( 
      top:  false , 
 
			
				
				
			
		
	
		
		
			
				
					
					        children:  [ 
      child:  Scaffold ( 
 
			
				
				
			
		
	
		
		
			
				
					
					          Row ( 
        key:  _scaffoldState , 
 
			
				
				
			
		
	
		
		
			
				
					
					            children:  [ 
        body:  Column ( 
 
			
				
				
			
		
	
		
		
			
				
					
					              Builder ( 
          children:  [ 
 
			
				
				
			
		
	
		
		
			
				
					
					                builder:  ( BuildContext  context )  { 
            Row ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                  return  Row ( 
              children:  [ 
 
			
				
				
			
		
	
		
		
			
				
					
					                    mainAxisSize:  MainAxisSize . min , 
                Builder ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                    children:  [ 
                  builder:  ( BuildContext  context )  { 
 
			
				
				
			
		
	
		
		
			
				
					
					                      Image . memory ( 
                    return  Row ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                        Utils . dataFromBase64String ( AppState ( ) . memberInformationList ! . eMPLOYEEIMAGE  ? ?  " " ) , 
                      mainAxisSize:  MainAxisSize . min , 
 
			
				
				
			
		
	
		
		
			
				
					
					                        errorBuilder:  ( BuildContext  context ,  Object  error ,  StackTrace ?  stackTrace )  { 
                      children:  [ 
 
			
				
				
			
		
	
		
		
			
				
					
					                          return  SvgPicture . asset ( " assets/images/user.svg " ,  height:  34 ,  width:  34 ) ; 
                        Image . memory ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                        } , 
                          Utils . dataFromBase64String ( AppState ( ) . memberInformationList ! . eMPLOYEEIMAGE  ? ?  " " ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                        width:  34 , 
                          errorBuilder:  ( BuildContext  context ,  Object  error ,  StackTrace ?  stackTrace )  { 
 
			
				
				
			
		
	
		
		
			
				
					
					                        height:  34 , 
                            return  SvgPicture . asset ( " assets/images/user.svg " ,  height:  34 ,  width:  34 ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
					                        fit:  BoxFit . cover , 
                          } , 
 
			
				
				
			
		
	
		
		
			
				
					
					                      ) . circle ( 50 ) , 
                          width:  34 , 
 
			
				
				
			
		
	
		
		
			
				
					
					                      / /  CircularAvatar ( 
                          height:  34 , 
 
			
				
				
			
		
	
		
		
			
				
					
					                      / /    width:  34 , 
                          fit:  BoxFit . cover , 
 
			
				
				
			
		
	
		
		
			
				
					
					                      / /    height:  34 , 
                        ) . circle ( 50 ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                      / /    url:  " https://cdn4.iconfinder.com/data/icons/professions-2-2/151/89-512.png " , 
                        / /  CircularAvatar ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                      / /  ) , 
                        / /    width:  34 , 
 
			
				
				
			
		
	
		
		
			
				
					
					                      8. width , 
                        / /    height:  34 , 
 
			
				
				
			
		
	
		
		
			
				
					
					                      SvgPicture . asset ( " assets/images/side_nav.svg " ) , 
                        / /    url:  " https://cdn4.iconfinder.com/data/icons/professions-2-2/151/89-512.png " , 
 
			
				
				
			
		
	
		
		
			
				
					
					                    ] , 
                        / /  ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                  ) . onPress ( ( )  { 
                        8. width , 
 
			
				
				
			
		
	
		
		
			
				
					
					                    _scaffoldState . currentState ! . openDrawer ( ) ; 
                        SvgPicture . asset ( " assets/images/side_nav.svg " ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                  } ) ; 
                      ] , 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					                    ) . onPress ( ( )  { 
 
			
		
	
		
		
			
				
					
					                      _scaffoldState . currentState ! . openDrawer ( ) ; 
 
			
		
	
		
		
			
				
					
					                    } ) ; 
 
			
		
	
		
		
			
				
					
					                  } , 
 
			
		
	
		
		
			
				
					
					                ) , 
 
			
		
	
		
		
			
				
					
					                Image . asset ( " assets/images/logos/main_mohemm_logo.png " ,  width:  134 ,  height:  28 ) . expanded , 
 
			
		
	
		
		
			
				
					
					                SvgPicture . asset ( " assets/images/announcements.svg " ,  matchTextDirection:  true ) . onPress ( ( )  async  { 
 
			
		
	
		
		
			
				
					
					                  await  Navigator . pushNamed ( context ,  AppRoutes . announcements ) ; 
 
			
		
	
		
		
			
				
					
					                } ) , 
 
			
		
	
		
		
			
				
					
					              ] , 
 
			
		
	
		
		
			
				
					
					            ) . paddingOnly ( left:  21 ,  right:  21 ,  top:  48 ,  bottom:  7 ) , 
 
			
		
	
		
		
			
				
					
					            Expanded ( 
 
			
		
	
		
		
			
				
					
					              child:  SmartRefresher ( 
 
			
		
	
		
		
			
				
					
					                enablePullDown:  true , 
 
			
		
	
		
		
			
				
					
					                enablePullUp:  false , 
 
			
		
	
		
		
			
				
					
					                header:  const  MaterialClassicHeader ( color:  MyColors . gradiantEndColor ) , 
 
			
		
	
		
		
			
				
					
					                controller:  _refreshController , 
 
			
		
	
		
		
			
				
					
					                onRefresh:  ( )  { 
 
			
		
	
		
		
			
				
					
					                  _onRefresh ( false ) ; 
 
			
		
	
		
		
			
				
					
					                } , 
                } , 
 
			
		
	
		
		
			
				
					
					              ) , 
                child:  SingleChildScrollView ( 
 
			
				
				
			
		
	
		
		
			
				
					
					              Image . asset ( " assets/images/logos/main_mohemm_logo.png " ,  width:  134 ,  height:  28 ) . expanded , 
                  child:  Column ( 
 
			
				
				
			
		
	
		
		
			
				
					
					              SvgPicture . asset ( " assets/images/announcements.svg " ,  matchTextDirection:  true ) . onPress ( ( )  async  { 
                    children:  [ 
 
			
				
				
			
		
	
		
		
			
				
					
					                await  Navigator . pushNamed ( context ,  AppRoutes . announcements ) ; 
                      Column ( 
 
			
				
				
			
		
	
		
		
			
				
					
					              } ) , 
                        crossAxisAlignment:  CrossAxisAlignment . start , 
 
			
				
				
			
		
	
		
		
			
				
					
					            ] , 
                        children:  < Widget > [ 
 
			
				
				
			
		
	
		
		
			
				
					
					          ) . paddingOnly ( left:  21 ,  right:  21 ,  top:  48 ,  bottom:  7 ) , 
                          LocaleKeys . welcomeBack . tr ( ) . toText14 ( color:  MyColors . grey77Color ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					          Expanded ( 
                          ( AppState ( ) . memberInformationList ! . eMPLOYEENAME  ? ?  " " ) . toText24 ( isBold:  true ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					            child:  SmartRefresher ( 
                          16. height , 
 
			
				
				
			
		
	
		
		
			
				
					
					              enablePullDown:  true , 
                          Row ( 
 
			
				
				
			
		
	
		
		
			
				
					
					              enablePullUp:  false , 
                            children:  [ 
 
			
				
				
			
		
	
		
		
			
				
					
					              header:  const  MaterialClassicHeader ( color:  MyColors . gradiantEndColor ) , 
                              Expanded ( 
 
			
				
				
			
		
	
		
		
			
				
					
					              controller:  _refreshController , 
                                child:  AspectRatio ( 
 
			
				
				
			
		
	
		
		
			
				
					
					              onRefresh:  ( )  { 
                                  aspectRatio:  159  /  159 , 
 
			
				
				
			
		
	
		
		
			
				
					
					                _onRefresh ( false ) ; 
                                  child:  Consumer < DashboardProviderModel > ( 
 
			
				
				
			
		
	
		
		
			
				
					
					              } , 
                                    builder:  ( BuildContext  context ,  DashboardProviderModel  model ,  Widget ?  child )  { 
 
			
				
				
			
		
	
		
		
			
				
					
					              child:  SingleChildScrollView ( 
                                      return  ( model . isAttendanceTrackingLoading 
 
			
				
				
			
		
	
		
		
			
				
					
					                child:  Column ( 
                                              ?  GetAttendanceTrackingShimmer ( ) 
 
			
				
				
			
		
	
		
		
			
				
					
					                  children:  [ 
                                              :  Container ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                    Column ( 
                                                decoration:  BoxDecoration ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                      crossAxisAlignment:  CrossAxisAlignment . start , 
                                                  borderRadius:  BorderRadius . circular ( 15 ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                      children:  < Widget > [ 
                                                  gradient:  const  LinearGradient ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                        LocaleKeys . welcomeBack . tr ( ) . toText14 ( color:  MyColors . grey77Color ) , 
                                                    transform:  GradientRotation ( . 46 ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                        ( AppState ( ) . memberInformationList ! . eMPLOYEENAME  ? ?  " " ) . toText24 ( isBold:  true ) , 
                                                    begin:  Alignment . topRight , 
 
			
				
				
			
		
	
		
		
			
				
					
					                        16. height , 
                                                    end:  Alignment . bottomLeft , 
 
			
				
				
			
		
	
		
		
			
				
					
					                        Row ( 
                                                    colors:  [ MyColors . gradiantEndColor ,  MyColors . gradiantStartColor ] , 
 
			
				
				
			
		
	
		
		
			
				
					
					                          children:  [ 
                                                  ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            Expanded ( 
 
			
		
	
		
		
			
				
					
					                              child:  AspectRatio ( 
 
			
		
	
		
		
			
				
					
					                                aspectRatio:  159  /  159 , 
 
			
		
	
		
		
			
				
					
					                                child:  Consumer < DashboardProviderModel > ( 
 
			
		
	
		
		
			
				
					
					                                  builder:  ( BuildContext  context ,  DashboardProviderModel  model ,  Widget ?  child )  { 
 
			
		
	
		
		
			
				
					
					                                    return  ( model . isAttendanceTrackingLoading 
 
			
		
	
		
		
			
				
					
					                                            ?  GetAttendanceTrackingShimmer ( ) 
 
			
		
	
		
		
			
				
					
					                                            :  Container ( 
 
			
		
	
		
		
			
				
					
					                                              decoration:  BoxDecoration ( 
 
			
		
	
		
		
			
				
					
					                                                borderRadius:  BorderRadius . circular ( 15 ) , 
 
			
		
	
		
		
			
				
					
					                                                gradient:  const  LinearGradient ( 
 
			
		
	
		
		
			
				
					
					                                                  transform:  GradientRotation ( . 46 ) , 
 
			
		
	
		
		
			
				
					
					                                                  begin:  Alignment . topRight , 
 
			
		
	
		
		
			
				
					
					                                                  end:  Alignment . bottomLeft , 
 
			
		
	
		
		
			
				
					
					                                                  colors:  [ MyColors . gradiantEndColor ,  MyColors . gradiantStartColor ] , 
 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					                                                ) , 
                                                ) , 
 
			
		
	
		
		
			
				
					
					                                              ) , 
                                                child:  Stack ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                                              child:  Stack ( 
                                                  alignment:  Alignment . center , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                alignment:  Alignment . center , 
                                                  children:  [ 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                children:  [ 
                                                    if  ( model . isTimeRemainingInSeconds  = =  0 )  SvgPicture . asset ( " assets/images/thumb.svg " ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                  if  ( model . isTimeRemainingInSeconds  = =  0 )  SvgPicture . asset ( " assets/images/thumb.svg " ) , 
                                                    Column ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                  Column ( 
                                                      crossAxisAlignment:  CrossAxisAlignment . start , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                    crossAxisAlignment:  CrossAxisAlignment . start , 
                                                      children:  [ 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                    children:  [ 
                                                        Expanded ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                      Expanded ( 
                                                          child:  Column ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                        child:  Column ( 
                                                            mainAxisSize:  MainAxisSize . min , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                          mainAxisSize:  MainAxisSize . min , 
                                                            crossAxisAlignment:  CrossAxisAlignment . start , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                          crossAxisAlignment:  CrossAxisAlignment . start , 
                                                            children:  [ 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					                                                              LocaleKeys . markAttendance . tr ( ) . toText14 ( color:  Colors . white ,  isBold:  true ) , 
 
			
		
	
		
		
			
				
					
					                                                              if  ( model . isTimeRemainingInSeconds  = =  0 )  DateTime . now ( ) . toString ( ) . split ( "   " ) [ 0 ] . toText12 ( color:  Colors . white ) , 
 
			
		
	
		
		
			
				
					
					                                                              if  ( model . isTimeRemainingInSeconds  ! =  0 ) 
 
			
		
	
		
		
			
				
					
					                                                                Column ( 
 
			
		
	
		
		
			
				
					
					                                                                  mainAxisSize:  MainAxisSize . min , 
 
			
		
	
		
		
			
				
					
					                                                                  crossAxisAlignment:  CrossAxisAlignment . start , 
 
			
		
	
		
		
			
				
					
					                                                                  children:  [ 
 
			
		
	
		
		
			
				
					
					                                                                    9. height , 
 
			
		
	
		
		
			
				
					
					                                                                    Directionality ( 
 
			
		
	
		
		
			
				
					
					                                                                      textDirection:  ui . TextDirection . ltr , 
 
			
		
	
		
		
			
				
					
					                                                                      child:  CountdownTimer ( 
 
			
		
	
		
		
			
				
					
					                                                                        endTime:  model . endTime , 
 
			
		
	
		
		
			
				
					
					                                                                        onEnd:  null , 
 
			
		
	
		
		
			
				
					
					                                                                        endWidget:  " 00:00:00 " . toText14 ( color:  Colors . white ,  isBold:  true ) , 
 
			
		
	
		
		
			
				
					
					                                                                        textStyle:  const  TextStyle ( color:  Colors . white ,  fontSize:  14 ,  letterSpacing:  - 0.48 ,  fontWeight:  FontWeight . bold ) , 
 
			
		
	
		
		
			
				
					
					                                                                      ) , 
 
			
		
	
		
		
			
				
					
					                                                                    ) , 
 
			
		
	
		
		
			
				
					
					                                                                    LocaleKeys . timeLeftToday . tr ( ) . toText12 ( color:  Colors . white ) , 
 
			
		
	
		
		
			
				
					
					                                                                    9. height , 
 
			
		
	
		
		
			
				
					
					                                                                    ClipRRect ( 
 
			
		
	
		
		
			
				
					
					                                                                      borderRadius:  const  BorderRadius . all ( Radius . circular ( 20 ) ) , 
 
			
		
	
		
		
			
				
					
					                                                                      child:  LinearProgressIndicator ( 
 
			
		
	
		
		
			
				
					
					                                                                        value:  model . progress , 
 
			
		
	
		
		
			
				
					
					                                                                        minHeight:  8 , 
 
			
		
	
		
		
			
				
					
					                                                                        valueColor:  const  AlwaysStoppedAnimation < Color > ( Colors . white ) , 
 
			
		
	
		
		
			
				
					
					                                                                        backgroundColor:  const  Color ( 0xff196D73 ) , 
 
			
		
	
		
		
			
				
					
					                                                                      ) , 
 
			
		
	
		
		
			
				
					
					                                                                    ) , 
 
			
		
	
		
		
			
				
					
					                                                                  ] , 
 
			
		
	
		
		
			
				
					
					                                                                ) , 
 
			
		
	
		
		
			
				
					
					                                                            ] , 
 
			
		
	
		
		
			
				
					
					                                                          ) . paddingOnly ( top:  12 ,  right:  15 ,  left:  12 ) , 
 
			
		
	
		
		
			
				
					
					                                                        ) , 
 
			
		
	
		
		
			
				
					
					                                                        Row ( 
 
			
		
	
		
		
			
				
					
					                                                          children:  [ 
                                                          children:  [ 
 
			
		
	
		
		
			
				
					
					                                                            LocaleKeys . markAttendance . tr ( ) . toText14 ( color:  Colors . white ,  isBold:  true ) , 
                                                            Expanded ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                            if  ( model . isTimeRemainingInSeconds  = =  0 )  DateTime . now ( ) . toString ( ) . split ( "   " ) [ 0 ] . toText12 ( color:  Colors . white ) , 
                                                              child:  Column ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                            if  ( model . isTimeRemainingInSeconds  ! =  0 ) 
 
			
		
	
		
		
			
				
					
					                                                              Column ( 
 
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					                                                                mainAxisSize:  MainAxisSize . min , 
                                                                mainAxisSize:  MainAxisSize . min , 
 
			
		
	
		
		
			
				
					
					                                                                crossAxisAlignment:  CrossAxisAlignment . start , 
                                                                crossAxisAlignment:  CrossAxisAlignment . start , 
 
			
		
	
		
		
			
				
					
					                                                                children:  [ 
                                                                children:  [ 
 
			
		
	
		
		
			
				
					
					                                                                  9. height , 
                                                                  LocaleKeys . checkIn . tr ( ) . toText12 ( color:  Colors . white ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                                  Directionality ( 
                                                                  ( model . attendanceTracking ! . pSwipeIn  = =  null  ?  " --:-- "  :  model . attendanceTracking ! . pSwipeIn ) . toString ( ) . toText14 ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                                    textDirection:  ui . TextDirection . ltr , 
                                                                    color:  Colors . white , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                                    child:  CountdownTimer ( 
                                                                    isBold:  true , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                                      endTime:  model . endTime , 
 
			
		
	
		
		
			
				
					
					                                                                      onEnd:  null , 
 
			
		
	
		
		
			
				
					
					                                                                      endWidget:  " 00:00:00 " . toText14 ( color:  Colors . white ,  isBold:  true ) , 
 
			
		
	
		
		
			
				
					
					                                                                      textStyle:  const  TextStyle ( color:  Colors . white ,  fontSize:  14 ,  letterSpacing:  - 0.48 ,  fontWeight:  FontWeight . bold ) , 
 
			
		
	
		
		
			
				
					
					                                                                    ) , 
 
			
		
	
		
		
			
				
					
					                                                                  ) , 
 
			
		
	
		
		
			
				
					
					                                                                  LocaleKeys . timeLeftToday . tr ( ) . toText12 ( color:  Colors . white ) , 
 
			
		
	
		
		
			
				
					
					                                                                  9. height , 
 
			
		
	
		
		
			
				
					
					                                                                  ClipRRect ( 
 
			
		
	
		
		
			
				
					
					                                                                    borderRadius:  const  BorderRadius . all ( Radius . circular ( 20 ) ) , 
 
			
		
	
		
		
			
				
					
					                                                                    child:  LinearProgressIndicator ( 
 
			
		
	
		
		
			
				
					
					                                                                      value:  model . progress , 
 
			
		
	
		
		
			
				
					
					                                                                      minHeight:  8 , 
 
			
		
	
		
		
			
				
					
					                                                                      valueColor:  const  AlwaysStoppedAnimation < Color > ( Colors . white ) , 
 
			
		
	
		
		
			
				
					
					                                                                      backgroundColor:  const  Color ( 0xff196D73 ) , 
 
			
		
	
		
		
			
				
					
					                                                                    ) , 
 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					                                                                  ) , 
                                                                  ) , 
 
			
		
	
		
		
			
				
					
					                                                                  4. height , 
 
			
		
	
		
		
			
				
					
					                                                                ] , 
                                                                ] , 
 
			
		
	
		
		
			
				
					
					                                                              ) . paddingOnly ( left:  12 ,  right:  12 ) , 
 
			
		
	
		
		
			
				
					
					                                                            ) , 
 
			
		
	
		
		
			
				
					
					                                                            Container ( 
 
			
		
	
		
		
			
				
					
					                                                              margin:  EdgeInsets . only ( top:  AppState ( ) . isArabic ( context )  ?  6  :  0 ) , 
 
			
		
	
		
		
			
				
					
					                                                              width:  45 , 
 
			
		
	
		
		
			
				
					
					                                                              height:  45 , 
 
			
		
	
		
		
			
				
					
					                                                              padding:  const  EdgeInsets . only ( left:  10 ,  right:  10 ) , 
 
			
		
	
		
		
			
				
					
					                                                              decoration:  BoxDecoration ( 
 
			
		
	
		
		
			
				
					
					                                                                color:  const  Color ( 0xff259EA4 ) , 
 
			
		
	
		
		
			
				
					
					                                                                borderRadius:  BorderRadius . only ( 
 
			
		
	
		
		
			
				
					
					                                                                  bottomRight:  AppState ( ) . isArabic ( context )  ?  const  Radius . circular ( 0 )  :  const  Radius . circular ( 15 ) , 
 
			
		
	
		
		
			
				
					
					                                                                  bottomLeft:  AppState ( ) . isArabic ( context )  ?  const  Radius . circular ( 15 )  :  const  Radius . circular ( 0 ) , 
 
			
		
	
		
		
			
				
					
					                                                                ) , 
 
			
		
	
		
		
			
				
					
					                                                              ) , 
                                                              ) , 
 
			
		
	
		
		
			
				
					
					                                                              child:  SvgPicture . asset ( model . isTimeRemainingInSeconds  = =  0  ?  " assets/images/biometrics.svg "  :  " assets/images/biometrics.svg " ) , 
 
			
		
	
		
		
			
				
					
					                                                            ) . onPress ( ( )  { 
 
			
		
	
		
		
			
				
					
					                                                              showMyBottomSheet ( context ,  callBackFunc:  ( )  { } ,  child:  MarkAttendanceWidget ( model ,  isFromDashboard:  true ) ) ; 
 
			
		
	
		
		
			
				
					
					                                                            } ) , 
 
			
		
	
		
		
			
				
					
					                                                          ] , 
                                                          ] , 
 
			
		
	
		
		
			
				
					
					                                                        ) . paddingOnly ( top:  12 ,  right:  15 ,  left:  12 ) , 
                                                        ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                      ) , 
                                                      ] , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                      Row ( 
                                                    ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                        children:  [ 
                                                  ] , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                          Expanded ( 
                                                ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                            child:  Column ( 
                                              ) . onPress ( ( )  { 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                              mainAxisSize:  MainAxisSize . min , 
                                                Navigator . pushNamed ( context ,  AppRoutes . todayAttendance ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                              crossAxisAlignment:  CrossAxisAlignment . start , 
                                              } ) ) 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					                                          . animatedSwither ( ) ; 
 
			
		
	
		
		
			
				
					
					                                    } , 
 
			
		
	
		
		
			
				
					
					                                  ) , 
 
			
		
	
		
		
			
				
					
					                                ) , 
 
			
		
	
		
		
			
				
					
					                              ) , 
 
			
		
	
		
		
			
				
					
					                              9. width , 
 
			
		
	
		
		
			
				
					
					                              Expanded ( child:  MenusWidget ( ) ) , 
 
			
		
	
		
		
			
				
					
					                            ] , 
 
			
		
	
		
		
			
				
					
					                          ) , 
 
			
		
	
		
		
			
				
					
					                        ] , 
 
			
		
	
		
		
			
				
					
					                      ) . paddingOnly ( left:  21 ,  right:  21 ,  top:  7 ,  bottom:  21 ) , 
 
			
		
	
		
		
			
				
					
					                      eventActivityWidget ( context ) , 
 
			
		
	
		
		
			
				
					
					                      Column ( 
 
			
		
	
		
		
			
				
					
					                        mainAxisSize:  MainAxisSize . min , 
 
			
		
	
		
		
			
				
					
					                        crossAxisAlignment:  CrossAxisAlignment . start , 
 
			
		
	
		
		
			
				
					
					                        children:  [ 
 
			
		
	
		
		
			
				
					
					                          Directionality ( 
 
			
		
	
		
		
			
				
					
					                            textDirection:  AppState ( ) . isArabic ( context )  ?  ui . TextDirection . rtl  :  ui . TextDirection . ltr , 
 
			
		
	
		
		
			
				
					
					                            child:  Container ( 
 
			
		
	
		
		
			
				
					
					                              decoration:  BoxDecoration ( 
 
			
		
	
		
		
			
				
					
					                                borderRadius:  BorderRadius . circular ( 20 ) , 
 
			
		
	
		
		
			
				
					
					                                gradient:  const  LinearGradient ( colors:  [ Color ( 0xFF91C481 ) ,  Color ( 0xFF7CCED7 ) ] ,  begin:  Alignment . centerLeft ,  end:  Alignment . centerRight ) , 
 
			
		
	
		
		
			
				
					
					                              ) , 
 
			
		
	
		
		
			
				
					
					                              child:  Padding ( 
 
			
		
	
		
		
			
				
					
					                                padding:  const  EdgeInsets . all ( 3.0 ) ,  / /  This  creates  the  border  width 
 
			
		
	
		
		
			
				
					
					                                child:  Container ( 
 
			
		
	
		
		
			
				
					
					                                  decoration:  BoxDecoration ( 
 
			
		
	
		
		
			
				
					
					                                    color:  Colors . white , 
 
			
		
	
		
		
			
				
					
					                                    borderRadius:  BorderRadius . circular ( 17 ) ,  / /  Slightly  less  than  outer  radius 
 
			
		
	
		
		
			
				
					
					                                  ) , 
 
			
		
	
		
		
			
				
					
					                                  child:  Row ( 
 
			
		
	
		
		
			
				
					
					                                    mainAxisAlignment:  MainAxisAlignment . spaceBetween , 
 
			
		
	
		
		
			
				
					
					                                    crossAxisAlignment:  CrossAxisAlignment . start , 
 
			
		
	
		
		
			
				
					
					                                    children:  [ 
 
			
		
	
		
		
			
				
					
					                                      Expanded ( 
 
			
		
	
		
		
			
				
					
					                                        flex:  4 , 
 
			
		
	
		
		
			
				
					
					                                        child:  Column ( 
 
			
		
	
		
		
			
				
					
					                                          crossAxisAlignment:  CrossAxisAlignment . start , 
 
			
		
	
		
		
			
				
					
					                                          mainAxisAlignment:  MainAxisAlignment . start , 
 
			
		
	
		
		
			
				
					
					                                          children:  [ 
 
			
		
	
		
		
			
				
					
					                                            Row ( 
 
			
		
	
		
		
			
				
					
					                                              children:  [ 
 
			
		
	
		
		
			
				
					
					                                                Expanded ( 
 
			
		
	
		
		
			
				
					
					                                                  flex:  2 , 
 
			
		
	
		
		
			
				
					
					                                                  child:  RichText ( 
 
			
		
	
		
		
			
				
					
					                                                    text: 
 
			
		
	
		
		
			
				
					
					                                                        AppState ( ) . isArabic ( context ) 
 
			
		
	
		
		
			
				
					
					                                                            ?   TextSpan ( 
 
			
		
	
		
		
			
				
					
					                                                              children:  [ 
                                                              children:  [ 
 
			
		
	
		
		
			
				
					
					                                                                LocaleKeys . checkIn . tr ( ) . toText12 ( color:  Colors . white ) , 
                                                                TextSpan ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                                ( model . attendanceTracking ! . pSwipeIn  = =  null  ?  " --:-- "  :  model . attendanceTracking ! . pSwipeIn ) . toString ( ) . toText14 ( 
                                                                  text:  ' اطلع على مميزات ' , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                                  color:  Colors . white , 
                                                                  style:  TextStyle ( fontSize:  16 ,  letterSpacing:  - 0.2 ,  fontFamily:  AppState ( ) . isArabic ( context )  ?  ' Cairo '  :  ' Poppins ' ,  fontWeight:  FontWeight . w700 ,  height:  24  /  16 ,  color:  Color ( 0xFF5D5E5E ) ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                                                  isBold:  true , 
                                                                ) , 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					                                                                TextSpan ( 
 
			
		
	
		
		
			
				
					
					                                                                  text:  '  مزايا ' , 
 
			
		
	
		
		
			
				
					
					                                                                  style:  TextStyle ( 
 
			
		
	
		
		
			
				
					
					                                                                    fontSize:  16 , 
 
			
		
	
		
		
			
				
					
					                                                                    fontFamily:  AppState ( ) . isArabic ( context )  ?  ' Cairo '  :  ' Poppins ' , 
 
			
		
	
		
		
			
				
					
					                                                                    fontWeight:  FontWeight . w700 , 
 
			
		
	
		
		
			
				
					
					                                                                    letterSpacing:  - 0.2 , 
 
			
		
	
		
		
			
				
					
					                                                                    height:  24  /  16 , 
 
			
		
	
		
		
			
				
					
					                                                                    color:  MyColors . mazayaRedColor ,  / /  Use  your  MAZAYA  red  color  here  if  defined ,  e . g .  MyColors . mazayaRed 
 
			
		
	
		
		
			
				
					
					                                                                  ) , 
 
			
		
	
		
		
			
				
					
					                                                                ) , 
 
			
		
	
		
		
			
				
					
					                                                              ] , 
 
			
		
	
		
		
			
				
					
					                                                            ) 
 
			
		
	
		
		
			
				
					
					                                                            :  TextSpan ( 
 
			
		
	
		
		
			
				
					
					                                                              children:  [ 
 
			
		
	
		
		
			
				
					
					                                                                TextSpan ( 
 
			
		
	
		
		
			
				
					
					                                                                  text:  LocaleKeys . explore . tr ( )  +  '   ' , 
 
			
		
	
		
		
			
				
					
					                                                                  style:  const  TextStyle ( fontSize:  16 ,  letterSpacing:  - 0.2 ,  fontFamily:  ' Poppins ' ,  fontWeight:  FontWeight . w700 ,  height:  24  /  16 ,  color:  Color ( 0xFF5D5E5E ) ) , 
 
			
		
	
		
		
			
				
					
					                                                                ) , 
 
			
		
	
		
		
			
				
					
					                                                                TextSpan ( 
 
			
		
	
		
		
			
				
					
					                                                                  text:  LocaleKeys . mazaya . tr ( ) , 
 
			
		
	
		
		
			
				
					
					                                                                  style:  const  TextStyle ( 
 
			
		
	
		
		
			
				
					
					                                                                    fontSize:  16 , 
 
			
		
	
		
		
			
				
					
					                                                                    fontWeight:  FontWeight . w700 , 
 
			
		
	
		
		
			
				
					
					                                                                    fontFamily:  ' Poppins ' , 
 
			
		
	
		
		
			
				
					
					                                                                    letterSpacing:  - 0.2 , 
 
			
		
	
		
		
			
				
					
					                                                                    height:  24  /  16 , 
 
			
		
	
		
		
			
				
					
					                                                                    color:  MyColors . mazayaRedColor ,  / /  Use  your  MAZAYA  red  color  here  if  defined ,  e . g .  MyColors . mazayaRed 
 
			
		
	
		
		
			
				
					
					                                                                  ) , 
 
			
		
	
		
		
			
				
					
					                                                                ) , 
 
			
		
	
		
		
			
				
					
					                                                                TextSpan ( 
 
			
		
	
		
		
			
				
					
					                                                                  text:  '   '  +  LocaleKeys . benefits . tr ( ) , 
 
			
		
	
		
		
			
				
					
					                                                                  style:  const  TextStyle ( fontSize:  16 ,  letterSpacing:  - 0.2 , 
 
			
		
	
		
		
			
				
					
					                                                                      fontFamily:  ' Poppins ' , fontWeight:  FontWeight . w700 ,  height:  24  /  16 ,  color:  Color ( 0xFF5D5E5E ) ) , 
 
			
		
	
		
		
			
				
					
					                                                                ) , 
                                                                ) , 
 
			
		
	
		
		
			
				
					
					                                                                4. height , 
 
			
		
	
		
		
			
				
					
					                                                              ] , 
                                                              ] , 
 
			
		
	
		
		
			
				
					
					                                                            ) . paddingOnly ( left:  12 ,  right:  12 ) , 
 
			
		
	
		
		
			
				
					
					                                                          ) , 
 
			
		
	
		
		
			
				
					
					                                                          Container ( 
 
			
		
	
		
		
			
				
					
					                                                            margin:  EdgeInsets . only ( top:  AppState ( ) . isArabic ( context )  ?  6  :  0 ) , 
 
			
		
	
		
		
			
				
					
					                                                            width:  45 , 
 
			
		
	
		
		
			
				
					
					                                                            height:  45 , 
 
			
		
	
		
		
			
				
					
					                                                            padding:  const  EdgeInsets . only ( left:  10 ,  right:  10 ) , 
 
			
		
	
		
		
			
				
					
					                                                            decoration:  BoxDecoration ( 
 
			
		
	
		
		
			
				
					
					                                                              color:  Color ( 0xff259EA4 ) , 
 
			
		
	
		
		
			
				
					
					                                                              borderRadius:  BorderRadius . only ( 
 
			
		
	
		
		
			
				
					
					                                                                bottomRight:  AppState ( ) . isArabic ( context )  ?  Radius . circular ( 0 )  :  Radius . circular ( 15 ) , 
 
			
		
	
		
		
			
				
					
					                                                                bottomLeft:  AppState ( ) . isArabic ( context )  ?  Radius . circular ( 15 )  :  Radius . circular ( 0 ) , 
 
			
		
	
		
		
			
				
					
					                                                              ) , 
 
			
		
	
		
		
			
				
					
					                                                            ) , 
                                                            ) , 
 
			
		
	
		
		
			
				
					
					                                                            child:  SvgPicture . asset ( model . isTimeRemainingInSeconds  = =  0  ?  " assets/images/biometrics.svg "  :  " assets/images/biometrics.svg " ) , 
 
			
		
	
		
		
			
				
					
					                                                          ) . onPress ( ( )  { 
 
			
		
	
		
		
			
				
					
					                                                            showMyBottomSheet ( context ,  callBackFunc:  ( )  { } ,  child:  MarkAttendanceWidget ( model ,  isFromDashboard:  true ) ) ; 
 
			
		
	
		
		
			
				
					
					                                                          } ) , 
 
			
		
	
		
		
			
				
					
					                                                        ] , 
 
			
		
	
		
		
			
				
					
					                                                      ) , 
 
			
		
	
		
		
			
				
					
					                                                    ] , 
 
			
		
	
		
		
			
				
					
					                                                  ) , 
                                                  ) , 
 
			
		
	
		
		
			
				
					
					                                                ] , 
                                                ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                              ) , 
                                                const  Expanded ( flex:  1 ,  child:  SizedBox ( ) ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                            ) . onPress ( ( )  { 
                                              ] , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                              Navigator . pushNamed ( context ,  AppRoutes . todayAttendance ) ; 
                                            ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                            } ) ) 
                                            const  SizedBox ( height:  8 ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                        . animatedSwither ( ) ; 
                                            LocaleKeys . mazayaDesc . tr ( ) . toText11 ( color:  const  Color ( 0xFF5D5E5E ) ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                  } , 
                                          ] , 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					                                        ) , 
 
			
		
	
		
		
			
				
					
					                                      ) , 
 
			
		
	
		
		
			
				
					
					                                      Expanded ( 
 
			
		
	
		
		
			
				
					
					                                        flex:  2 , 
 
			
		
	
		
		
			
				
					
					                                        child:  Column ( 
 
			
		
	
		
		
			
				
					
					                                          crossAxisAlignment:  CrossAxisAlignment . end , 
 
			
		
	
		
		
			
				
					
					                                          mainAxisAlignment:  MainAxisAlignment . end , 
 
			
		
	
		
		
			
				
					
					                                          children:  [ 
 
			
		
	
		
		
			
				
					
					                                            SvgPicture . asset ( " assets/icons/mazaya_brand.svg " ,  width:  90 ,  height:  47 ) , 
 
			
		
	
		
		
			
				
					
					                                            const  SizedBox ( height:  28 ) , 
 
			
		
	
		
		
			
				
					
					                                            LocaleKeys . viewallofferMazaya . tr ( ) . toText12 ( isUnderLine:  true ,  color:  const  Color ( 0xFF3B3D4A ) ) . onPress ( ( )  { 
 
			
		
	
		
		
			
				
					
					                                              Navigator . pushNamed ( context ,  AppRoutes . offersAndDiscounts ) ; 
 
			
		
	
		
		
			
				
					
					                                            } ) , 
 
			
		
	
		
		
			
				
					
					                                          ] , 
 
			
		
	
		
		
			
				
					
					                                        ) , 
 
			
		
	
		
		
			
				
					
					                                      ) , 
 
			
		
	
		
		
			
				
					
					                                    ] , 
 
			
		
	
		
		
			
				
					
					                                  ) . paddingOnly ( left:  21 ,  right:  21 ,  top:  14 ,  bottom:  14 ) , 
 
			
		
	
		
		
			
				
					
					                                ) , 
                                ) , 
 
			
		
	
		
		
			
				
					
					                              ) , 
                              ) , 
 
			
		
	
		
		
			
				
					
					                            ) , 
                            ) . paddingOnly ( left:  21 ,  right:  21 ,  top:  0 ,  bottom:  21 ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            9. width , 
                          ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            Expanded ( child:  MenusWidget ( ) ) , 
                        ] , 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					                      ) , 
 
			
		
	
		
		
			
				
					
					                      Container ( 
 
			
		
	
		
		
			
				
					
					                        width:  double . infinity , 
 
			
		
	
		
		
			
				
					
					                        padding:  const  EdgeInsets . only ( top:  31 ) , 
 
			
		
	
		
		
			
				
					
					                        decoration:  BoxDecoration ( 
 
			
		
	
		
		
			
				
					
					                          color:  Colors . white , 
 
			
		
	
		
		
			
				
					
					                          borderRadius:  const  BorderRadius . only ( topRight:  Radius . circular ( 50 ) ,  topLeft:  Radius . circular ( 50 ) ) , 
 
			
		
	
		
		
			
				
					
					                          border:  Border . all ( color:  MyColors . lightGreyEDColor ,  width:  1 ) , 
 
			
		
	
		
		
			
				
					
					                        ) , 
 
			
		
	
		
		
			
				
					
					                        child:  Column ( 
 
			
		
	
		
		
			
				
					
					                          mainAxisSize:  MainAxisSize . min , 
 
			
		
	
		
		
			
				
					
					                          children:  [ 
 
			
		
	
		
		
			
				
					
					                            ServicesWidget ( ) , 
 
			
		
	
		
		
			
				
					
					                            context . watch < MarathonProvider > ( ) . isLoading  ?  const  MarathonBannerShimmer ( ) . paddingAll ( 20 )  :  const  MarathonBanner ( ) . paddingOnly ( left:  21 ,  right:  21 ,  bottom:  8 ,  top:  8 ) , 
 
			
		
	
		
		
			
				
					
					                            / /  context . watch < MarathonProvider > ( ) . isTutorialLoading 
 
			
		
	
		
		
			
				
					
					                            / /      ?  const  MarathonBannerShimmer ( ) . paddingAll ( 20 ) 
 
			
		
	
		
		
			
				
					
					                            / /      :  Container ( 
 
			
		
	
		
		
			
				
					
					                            / /          padding:  EdgeInsets . only ( bottom:  12 ,  top:  12 ) , 
 
			
		
	
		
		
			
				
					
					                            / /          margin:  EdgeInsets . only ( left:  21 ,  right:  21 ,  bottom:  21 ,  top:  8 ) , 
 
			
		
	
		
		
			
				
					
					                            / /          width:  double . infinity , 
 
			
		
	
		
		
			
				
					
					                            / /          alignment:  Alignment . center , 
 
			
		
	
		
		
			
				
					
					                            / /          decoration:  BoxDecoration ( 
 
			
		
	
		
		
			
				
					
					                            / /            color:  MyColors . backgroundBlackColor , 
 
			
		
	
		
		
			
				
					
					                            / /            borderRadius:  BorderRadius . circular ( 20 ) , 
 
			
		
	
		
		
			
				
					
					                            / /            border:  Border . all ( color:  MyColors . lightGreyEDColor ,  width:  1 ) , 
 
			
		
	
		
		
			
				
					
					                            / /          ) , 
 
			
		
	
		
		
			
				
					
					                            / /          child:  Column ( 
 
			
		
	
		
		
			
				
					
					                            / /            crossAxisAlignment:  CrossAxisAlignment . start , 
 
			
		
	
		
		
			
				
					
					                            / /            mainAxisSize:  MainAxisSize . min , 
 
			
		
	
		
		
			
				
					
					                            / /            children:  [ 
 
			
		
	
		
		
			
				
					
					                            / /              Text ( 
 
			
		
	
		
		
			
				
					
					                            / /                " Tutorial: " , 
 
			
		
	
		
		
			
				
					
					                            / /                style:  TextStyle ( 
 
			
		
	
		
		
			
				
					
					                            / /                  fontSize:  11 , 
 
			
		
	
		
		
			
				
					
					                            / /                  fontStyle:  FontStyle . italic , 
 
			
		
	
		
		
			
				
					
					                            / /                  fontWeight:  FontWeight . w600 , 
 
			
		
	
		
		
			
				
					
					                            / /                  color:  MyColors . white . withOpacity ( 0.83 ) , 
 
			
		
	
		
		
			
				
					
					                            / /                  letterSpacing:  - 0.4 , 
 
			
		
	
		
		
			
				
					
					                            / /                ) , 
 
			
		
	
		
		
			
				
					
					                            / /              ) , 
 
			
		
	
		
		
			
				
					
					                            / /              Text ( 
 
			
		
	
		
		
			
				
					
					                            / /                context . read < MarathonProvider > ( ) . tutorial ? . tutorialName  ? ?  " " , 
 
			
		
	
		
		
			
				
					
					                            / /                overflow:  TextOverflow . ellipsis , 
 
			
		
	
		
		
			
				
					
					                            / /                style:  TextStyle ( 
 
			
		
	
		
		
			
				
					
					                            / /                  fontStyle:  FontStyle . italic , 
 
			
		
	
		
		
			
				
					
					                            / /                  fontSize:  19 , 
 
			
		
	
		
		
			
				
					
					                            / /                  fontWeight:  FontWeight . bold , 
 
			
		
	
		
		
			
				
					
					                            / /                  color:  MyColors . white , 
 
			
		
	
		
		
			
				
					
					                            / /                  height:  32  /  22 , 
 
			
		
	
		
		
			
				
					
					                            / /                ) , 
 
			
		
	
		
		
			
				
					
					                            / /              ) , 
 
			
		
	
		
		
			
				
					
					                            / /            ] , 
 
			
		
	
		
		
			
				
					
					                            / /          ) , 
 
			
		
	
		
		
			
				
					
					                            / /        ) . onPress ( ( )  { 
 
			
		
	
		
		
			
				
					
					                            / /          checkERMChannel ( ) ; 
 
			
		
	
		
		
			
				
					
					                            / /          / /  Navigator . pushNamed ( context ,  AppRoutes . marathonTutorialScreen ) ; 
 
			
		
	
		
		
			
				
					
					                            / /        } ) , 
 
			
		
	
		
		
			
				
					
					                          ] , 
                          ] , 
 
			
		
	
		
		
			
				
					
					                        ) , 
                        ) , 
 
			
		
	
		
		
			
				
					
					                      ] , 
                      ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                    ) . paddingOnly ( left:  21 ,  right:  21 ,  top:  7 ,  bottom:  21 ) , 
                    ] , 
 
			
				
				
			
		
	
		
		
			
				
					
					                    eventActivityWidget ( context ) , 
                  ) , 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					                ) , 
 
			
		
	
		
		
			
				
					
					              ) , 
 
			
		
	
		
		
			
				
					
					            ) , 
 
			
		
	
		
		
			
				
					
					          ] , 
 
			
		
	
		
		
			
				
					
					        ) , 
 
			
		
	
		
		
			
				
					
					        drawer:  AppDrawer ( onLanguageChange:  _onRefresh ) , 
 
			
		
	
		
		
			
				
					
					        bottomNavigationBar:  SizedBox ( 
 
			
		
	
		
		
			
				
					
					          height:  Platform . isAndroid  ?  70  :  100 , 
 
			
		
	
		
		
			
				
					
					          child:  BottomNavigationBar ( 
 
			
		
	
		
		
			
				
					
					            items:  < BottomNavigationBarItem > [ 
 
			
		
	
		
		
			
				
					
					              BottomNavigationBarItem ( icon:  SvgPicture . asset ( " assets/icons/home.svg " ,  color:  currentIndex  = =  0  ?  MyColors . grey3AColor  :  MyColors . grey98Color ) . paddingAll ( 4 ) ,  label:  LocaleKeys . home . tr ( ) ) , 
 
			
		
	
		
		
			
				
					
					              BottomNavigationBarItem ( 
 
			
		
	
		
		
			
				
					
					                icon:  SvgPicture . asset ( " assets/icons/create_req.svg " ,  color:  currentIndex  = =  1  ?  MyColors . grey3AColor  :  MyColors . grey98Color ) . paddingAll ( 4 ) , 
 
			
		
	
		
		
			
				
					
					                label:  LocaleKeys . mowadhafhiRequest . tr ( ) , 
 
			
		
	
		
		
			
				
					
					              ) , 
 
			
		
	
		
		
			
				
					
					              BottomNavigationBarItem ( 
 
			
		
	
		
		
			
				
					
					                icon:  Stack ( 
 
			
		
	
		
		
			
				
					
					                  alignment:  Alignment . centerLeft , 
 
			
		
	
		
		
			
				
					
					                  children:  [ 
 
			
		
	
		
		
			
				
					
					                    SvgPicture . asset ( " assets/icons/work_list.svg " ,  color:  currentIndex  = =  2  ?  MyColors . grey3AColor  :  MyColors . grey98Color ) . paddingAll ( 4 ) , 
 
			
		
	
		
		
			
				
					
					                    Consumer < DashboardProviderModel > ( 
                    Consumer < DashboardProviderModel > ( 
 
			
		
	
		
		
			
				
					
					                      builder:  ( BuildContext  context ,  DashboardProviderModel  model ,  Widget ?  child )  { 
                      builder:  ( BuildContext  c xt,  DashboardProviderModel  data ,  Widget ?  child )  { 
 
			
				
				
			
		
	
		
		
			
				
					
					                        if  ( ! model . isOffersLoading  & &  model . getOffersList . isEmpty )  { 
                        if  ( data . workListCounter  = =  0 )  { 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					                          return  const  SizedBox ( ) ; 
                          return  const  SizedBox ( ) ; 
 
			
		
	
		
		
			
				
					
					                        } 
                        } 
 
			
		
	
		
		
			
				
					
					                        return  Column ( 
                        return  Positioned ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                          mainAxisSize:  MainAxisSize . min , 
                          right:  0 , 
 
			
				
				
			
		
	
		
		
			
				
					
					                          crossAxisAlignment:  CrossAxisAlignment . start , 
                          top:  0 , 
 
			
				
				
			
		
	
		
		
			
				
					
					                          children:  [ 
                          child:  Container ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                            Row ( 
                            padding:  const  EdgeInsets . only ( left:  4 ,  right:  4 ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                              crossAxisAlignment:  CrossAxisAlignment . center , 
                            alignment:  Alignment . center , 
 
			
				
				
			
		
	
		
		
			
				
					
					                              children:  [ 
                            decoration:  BoxDecoration ( color:  MyColors . redColor ,  borderRadius:  BorderRadius . circular ( 17 ) ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                Expanded ( 
                            child:  data . workListCounter . toString ( ) . toText10 ( color:  Colors . white ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                  child:  Column ( 
                          ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                                    crossAxisAlignment:  CrossAxisAlignment . start , 
 
			
		
	
		
		
			
				
					
					                                    mainAxisSize:  MainAxisSize . min , 
 
			
		
	
		
		
			
				
					
					                                    children:  [ 
 
			
		
	
		
		
			
				
					
					                                      LocaleKeys . offers . tr ( ) . toText12 ( ) , 
 
			
		
	
		
		
			
				
					
					                                      Row ( 
 
			
		
	
		
		
			
				
					
					                                        children:  [ 
 
			
		
	
		
		
			
				
					
					                                          LocaleKeys . discounts . tr ( ) . toText24 ( isBold:  true ) , 
 
			
		
	
		
		
			
				
					
					                                          6. width , 
 
			
		
	
		
		
			
				
					
					                                          Container ( 
 
			
		
	
		
		
			
				
					
					                                            padding:  const  EdgeInsets . only ( left:  8 ,  right:  8 ) , 
 
			
		
	
		
		
			
				
					
					                                            decoration:  BoxDecoration ( color:  MyColors . yellowColor ,  borderRadius:  BorderRadius . circular ( 10 ) ) , 
 
			
		
	
		
		
			
				
					
					                                            child:  LocaleKeys . newString . tr ( ) . toText10 ( isBold:  true ) , 
 
			
		
	
		
		
			
				
					
					                                          ) , 
 
			
		
	
		
		
			
				
					
					                                        ] , 
 
			
		
	
		
		
			
				
					
					                                      ) , 
 
			
		
	
		
		
			
				
					
					                                    ] , 
 
			
		
	
		
		
			
				
					
					                                  ) , 
 
			
		
	
		
		
			
				
					
					                                ) , 
 
			
		
	
		
		
			
				
					
					                                LocaleKeys . viewAllOffers . tr ( ) . toText12 ( isUnderLine:  true ) . onPress ( ( )  { 
 
			
		
	
		
		
			
				
					
					                                  Navigator . pushNamed ( context ,  AppRoutes . offersAndDiscounts ) ; 
 
			
		
	
		
		
			
				
					
					                                } ) , 
 
			
		
	
		
		
			
				
					
					                              ] , 
 
			
		
	
		
		
			
				
					
					                            ) . paddingOnly ( left:  21 ,  right:  21 ) , 
 
			
		
	
		
		
			
				
					
					                            Consumer < DashboardProviderModel > ( 
 
			
		
	
		
		
			
				
					
					                              builder:  ( BuildContext  context ,  DashboardProviderModel  model ,  Widget ?  child )  { 
 
			
		
	
		
		
			
				
					
					                                return  SizedBox ( 
 
			
		
	
		
		
			
				
					
					                                  height:  103  +  33 , 
 
			
		
	
		
		
			
				
					
					                                  child:  ListView . separated ( 
 
			
		
	
		
		
			
				
					
					                                    shrinkWrap:  true , 
 
			
		
	
		
		
			
				
					
					                                    physics:  const  BouncingScrollPhysics ( ) , 
 
			
		
	
		
		
			
				
					
					                                    padding:  const  EdgeInsets . only ( left:  21 ,  right:  21 ,  top:  13 ) , 
 
			
		
	
		
		
			
				
					
					                                    scrollDirection:  Axis . horizontal , 
 
			
		
	
		
		
			
				
					
					                                    itemBuilder:  ( BuildContext  cxt ,  int  index )  { 
 
			
		
	
		
		
			
				
					
					                                      return  model . isOffersLoading 
 
			
		
	
		
		
			
				
					
					                                          ?  const  OffersShimmerWidget ( ) 
 
			
		
	
		
		
			
				
					
					                                          :  InkWell ( 
 
			
		
	
		
		
			
				
					
					                                            onTap:  ( )  { 
 
			
		
	
		
		
			
				
					
					                                              navigateToDetails ( data . getOffersList [ index ] ) ; 
 
			
		
	
		
		
			
				
					
					                                            } , 
 
			
		
	
		
		
			
				
					
					                                            child:  SizedBox ( 
 
			
		
	
		
		
			
				
					
					                                              width:  73 , 
 
			
		
	
		
		
			
				
					
					                                              child:  Column ( 
 
			
		
	
		
		
			
				
					
					                                                crossAxisAlignment:  CrossAxisAlignment . center , 
 
			
		
	
		
		
			
				
					
					                                                children:  [ 
 
			
		
	
		
		
			
				
					
					                                                  Container ( 
 
			
		
	
		
		
			
				
					
					                                                    width:  73 , 
 
			
		
	
		
		
			
				
					
					                                                    height:  73 , 
 
			
		
	
		
		
			
				
					
					                                                    decoration:  BoxDecoration ( 
 
			
		
	
		
		
			
				
					
					                                                      color:  Colors . white , 
 
			
		
	
		
		
			
				
					
					                                                      borderRadius:  const  BorderRadius . all ( Radius . circular ( 100 ) ) , 
 
			
		
	
		
		
			
				
					
					                                                      border:  Border . all ( color:  MyColors . lightGreyE3Color ,  width:  1 ) , 
 
			
		
	
		
		
			
				
					
					                                                    ) , 
 
			
		
	
		
		
			
				
					
					                                                    child:  ClipRRect ( 
 
			
		
	
		
		
			
				
					
					                                                      borderRadius:  const  BorderRadius . all ( Radius . circular ( 50 ) ) , 
 
			
		
	
		
		
			
				
					
					                                                      child:  Hero ( 
 
			
		
	
		
		
			
				
					
					                                                        tag:  " ItemImage "  +  data . getOffersList [ index ] . offersDiscountId . toString ( ) ! , 
 
			
		
	
		
		
			
				
					
					                                                        transitionOnUserGestures:  true , 
 
			
		
	
		
		
			
				
					
					                                                        child:  Image . network ( data . getOffersList [ index ] . logo  ? ?  " " ,  fit:  BoxFit . contain ) , 
 
			
		
	
		
		
			
				
					
					                                                      ) , 
 
			
		
	
		
		
			
				
					
					                                                    ) , 
 
			
		
	
		
		
			
				
					
					                                                  ) , 
 
			
		
	
		
		
			
				
					
					                                                  4. height , 
 
			
		
	
		
		
			
				
					
					                                                  Expanded ( 
 
			
		
	
		
		
			
				
					
					                                                    child: 
 
			
		
	
		
		
			
				
					
					                                                        AppState ( ) . isArabic ( context ) 
 
			
		
	
		
		
			
				
					
					                                                            ?  data . getOffersList [ index ] . titleAr ! . toText12 ( isCenter:  true ,  maxLine:  1 ) 
 
			
		
	
		
		
			
				
					
					                                                            :  data . getOffersList [ index ] . titleEn ! . toText12 ( isCenter:  true ,  maxLine:  1 ) , 
 
			
		
	
		
		
			
				
					
					                                                  ) , 
 
			
		
	
		
		
			
				
					
					                                                ] , 
 
			
		
	
		
		
			
				
					
					                                              ) , 
 
			
		
	
		
		
			
				
					
					                                            ) , 
 
			
		
	
		
		
			
				
					
					                                          ) ; 
 
			
		
	
		
		
			
				
					
					                                    } , 
 
			
		
	
		
		
			
				
					
					                                    separatorBuilder:  ( BuildContext  cxt ,  int  index )  = >  8. width , 
 
			
		
	
		
		
			
				
					
					                                    itemCount:  9 , 
 
			
		
	
		
		
			
				
					
					                                  ) , 
 
			
		
	
		
		
			
				
					
					                                ) ; 
 
			
		
	
		
		
			
				
					
					                              } , 
 
			
		
	
		
		
			
				
					
					                            ) , 
 
			
		
	
		
		
			
				
					
					                          ] , 
 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					                        ) ; 
                        ) ; 
 
			
		
	
		
		
			
				
					
					                      } , 
                      } , 
 
			
		
	
		
		
			
				
					
					                    ) , 
                    ) , 
 
			
		
	
		
		
			
				
					
					                    Container ( 
 
			
		
	
		
		
			
				
					
					                      width:  double . infinity , 
 
			
		
	
		
		
			
				
					
					                      padding:  const  EdgeInsets . only ( top:  31 ) , 
 
			
		
	
		
		
			
				
					
					                      decoration:  BoxDecoration ( 
 
			
		
	
		
		
			
				
					
					                        color:  Colors . white , 
 
			
		
	
		
		
			
				
					
					                        borderRadius:  const  BorderRadius . only ( topRight:  Radius . circular ( 50 ) ,  topLeft:  Radius . circular ( 50 ) ) , 
 
			
		
	
		
		
			
				
					
					                        border:  Border . all ( color:  MyColors . lightGreyEDColor ,  width:  1 ) , 
 
			
		
	
		
		
			
				
					
					                      ) , 
 
			
		
	
		
		
			
				
					
					                      child:  Column ( 
 
			
		
	
		
		
			
				
					
					                        mainAxisSize:  MainAxisSize . min , 
 
			
		
	
		
		
			
				
					
					                        children:  [ 
 
			
		
	
		
		
			
				
					
					                          ServicesWidget ( ) , 
 
			
		
	
		
		
			
				
					
					                          context . watch < MarathonProvider > ( ) . isLoading  ?  const  MarathonBannerShimmer ( ) . paddingAll ( 20 )  :  const  MarathonBanner ( ) . paddingOnly ( left:  21 ,  right:  21 ,  bottom:  8 ,  top:  8 ) , 
 
			
		
	
		
		
			
				
					
					                          / /  context . watch < MarathonProvider > ( ) . isTutorialLoading 
 
			
		
	
		
		
			
				
					
					                          / /      ?  const  MarathonBannerShimmer ( ) . paddingAll ( 20 ) 
 
			
		
	
		
		
			
				
					
					                          / /      :  Container ( 
 
			
		
	
		
		
			
				
					
					                          / /          padding:  EdgeInsets . only ( bottom:  12 ,  top:  12 ) , 
 
			
		
	
		
		
			
				
					
					                          / /          margin:  EdgeInsets . only ( left:  21 ,  right:  21 ,  bottom:  21 ,  top:  8 ) , 
 
			
		
	
		
		
			
				
					
					                          / /          width:  double . infinity , 
 
			
		
	
		
		
			
				
					
					                          / /          alignment:  Alignment . center , 
 
			
		
	
		
		
			
				
					
					                          / /          decoration:  BoxDecoration ( 
 
			
		
	
		
		
			
				
					
					                          / /            color:  MyColors . backgroundBlackColor , 
 
			
		
	
		
		
			
				
					
					                          / /            borderRadius:  BorderRadius . circular ( 20 ) , 
 
			
		
	
		
		
			
				
					
					                          / /            border:  Border . all ( color:  MyColors . lightGreyEDColor ,  width:  1 ) , 
 
			
		
	
		
		
			
				
					
					                          / /          ) , 
 
			
		
	
		
		
			
				
					
					                          / /          child:  Column ( 
 
			
		
	
		
		
			
				
					
					                          / /            crossAxisAlignment:  CrossAxisAlignment . start , 
 
			
		
	
		
		
			
				
					
					                          / /            mainAxisSize:  MainAxisSize . min , 
 
			
		
	
		
		
			
				
					
					                          / /            children:  [ 
 
			
		
	
		
		
			
				
					
					                          / /              Text ( 
 
			
		
	
		
		
			
				
					
					                          / /                " Tutorial: " , 
 
			
		
	
		
		
			
				
					
					                          / /                style:  TextStyle ( 
 
			
		
	
		
		
			
				
					
					                          / /                  fontSize:  11 , 
 
			
		
	
		
		
			
				
					
					                          / /                  fontStyle:  FontStyle . italic , 
 
			
		
	
		
		
			
				
					
					                          / /                  fontWeight:  FontWeight . w600 , 
 
			
		
	
		
		
			
				
					
					                          / /                  color:  MyColors . white . withOpacity ( 0.83 ) , 
 
			
		
	
		
		
			
				
					
					                          / /                  letterSpacing:  - 0.4 , 
 
			
		
	
		
		
			
				
					
					                          / /                ) , 
 
			
		
	
		
		
			
				
					
					                          / /              ) , 
 
			
		
	
		
		
			
				
					
					                          / /              Text ( 
 
			
		
	
		
		
			
				
					
					                          / /                context . read < MarathonProvider > ( ) . tutorial ? . tutorialName  ? ?  " " , 
 
			
		
	
		
		
			
				
					
					                          / /                overflow:  TextOverflow . ellipsis , 
 
			
		
	
		
		
			
				
					
					                          / /                style:  TextStyle ( 
 
			
		
	
		
		
			
				
					
					                          / /                  fontStyle:  FontStyle . italic , 
 
			
		
	
		
		
			
				
					
					                          / /                  fontSize:  19 , 
 
			
		
	
		
		
			
				
					
					                          / /                  fontWeight:  FontWeight . bold , 
 
			
		
	
		
		
			
				
					
					                          / /                  color:  MyColors . white , 
 
			
		
	
		
		
			
				
					
					                          / /                  height:  32  /  22 , 
 
			
		
	
		
		
			
				
					
					                          / /                ) , 
 
			
		
	
		
		
			
				
					
					                          / /              ) , 
 
			
		
	
		
		
			
				
					
					                          / /            ] , 
 
			
		
	
		
		
			
				
					
					                          / /          ) , 
 
			
		
	
		
		
			
				
					
					                          / /        ) . onPress ( ( )  { 
 
			
		
	
		
		
			
				
					
					                          / /          checkERMChannel ( ) ; 
 
			
		
	
		
		
			
				
					
					                          / /          / /  Navigator . pushNamed ( context ,  AppRoutes . marathonTutorialScreen ) ; 
 
			
		
	
		
		
			
				
					
					                          / /        } ) , 
 
			
		
	
		
		
			
				
					
					                        ] , 
 
			
		
	
		
		
			
				
					
					                      ) , 
 
			
		
	
		
		
			
				
					
					                    ) , 
 
			
		
	
		
		
			
				
					
					                  ] , 
                  ] , 
 
			
		
	
		
		
			
				
					
					                ) , 
                ) , 
 
			
		
	
		
		
			
				
					
					                label:  LocaleKeys . workList . tr ( ) , 
 
			
		
	
		
		
			
				
					
					              ) , 
              ) , 
 
			
		
	
		
		
			
				
					
					            ) , 
              BottomNavigationBarItem ( 
 
			
				
				
			
		
	
		
		
			
				
					
					          ) , 
                icon:  SvgPicture . asset ( " assets/icons/item_for_sale.svg " ,  color:  currentIndex  = =  3  ?  MyColors . grey3AColor  :  MyColors . grey98Color ) . paddingAll ( 4 ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					        ] , 
                label:  LocaleKeys . itemsForSale . tr ( ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					      ) , 
 
			
		
	
		
		
			
				
					
					      drawer:  SafeArea ( child:  AppDrawer ( onLanguageChange:  _onRefresh ) ) , 
 
			
		
	
		
		
			
				
					
					      bottomNavigationBar:  SizedBox ( 
 
			
		
	
		
		
			
				
					
					        height:  Platform . isAndroid  ?  70  :  100 , 
 
			
		
	
		
		
			
				
					
					        child:  BottomNavigationBar ( 
 
			
		
	
		
		
			
				
					
					          items:  < BottomNavigationBarItem > [ 
 
			
		
	
		
		
			
				
					
					            BottomNavigationBarItem ( icon:  SvgPicture . asset ( " assets/icons/home.svg " ,  color:  currentIndex  = =  0  ?  MyColors . grey3AColor  :  MyColors . grey98Color ) . paddingAll ( 4 ) ,  label:  LocaleKeys . home . tr ( ) ) , 
 
			
		
	
		
		
			
				
					
					            BottomNavigationBarItem ( 
 
			
		
	
		
		
			
				
					
					              icon:  SvgPicture . asset ( " assets/icons/create_req.svg " ,  color:  currentIndex  = =  1  ?  MyColors . grey3AColor  :  MyColors . grey98Color ) . paddingAll ( 4 ) , 
 
			
		
	
		
		
			
				
					
					              label:  LocaleKeys . mowadhafhiRequest . tr ( ) , 
 
			
		
	
		
		
			
				
					
					            ) , 
 
			
		
	
		
		
			
				
					
					            BottomNavigationBarItem ( 
 
			
		
	
		
		
			
				
					
					              icon:  Stack ( 
 
			
		
	
		
		
			
				
					
					                alignment:  Alignment . centerLeft , 
 
			
		
	
		
		
			
				
					
					                children:  [ 
 
			
		
	
		
		
			
				
					
					                  SvgPicture . asset ( " assets/icons/work_list.svg " ,  color:  currentIndex  = =  2  ?  MyColors . grey3AColor  :  MyColors . grey98Color ) . paddingAll ( 4 ) , 
 
			
		
	
		
		
			
				
					
					                  Consumer < DashboardProviderModel > ( 
 
			
		
	
		
		
			
				
					
					                    builder:  ( BuildContext  cxt ,  DashboardProviderModel  data ,  Widget ?  child )  { 
 
			
		
	
		
		
			
				
					
					                      if  ( data . workListCounter  = =  0 )  { 
 
			
		
	
		
		
			
				
					
					                        return  const  SizedBox ( ) ; 
 
			
		
	
		
		
			
				
					
					                      } 
 
			
		
	
		
		
			
				
					
					                      return  Positioned ( 
 
			
		
	
		
		
			
				
					
					                        right:  0 , 
 
			
		
	
		
		
			
				
					
					                        top:  0 , 
 
			
		
	
		
		
			
				
					
					                        child:  Container ( 
 
			
		
	
		
		
			
				
					
					                          padding:  const  EdgeInsets . only ( left:  4 ,  right:  4 ) , 
 
			
		
	
		
		
			
				
					
					                          alignment:  Alignment . center , 
 
			
		
	
		
		
			
				
					
					                          decoration:  BoxDecoration ( color:  MyColors . redColor ,  borderRadius:  BorderRadius . circular ( 17 ) ) , 
 
			
		
	
		
		
			
				
					
					                          child:  data . workListCounter . toString ( ) . toText10 ( color:  Colors . white ) , 
 
			
		
	
		
		
			
				
					
					                        ) , 
 
			
		
	
		
		
			
				
					
					                      ) ; 
 
			
		
	
		
		
			
				
					
					                    } , 
 
			
		
	
		
		
			
				
					
					                  ) , 
 
			
		
	
		
		
			
				
					
					                ] , 
 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					              ) , 
              ) , 
 
			
		
	
		
		
			
				
					
					              label:  LocaleKeys . workList . tr ( ) , 
              BottomNavigationBarItem ( 
 
			
				
				
			
		
	
		
		
			
				
					
					            ) , 
                icon:  Stack ( 
 
			
				
				
			
		
	
		
		
			
				
					
					            BottomNavigationBarItem ( 
                  alignment:  Alignment . centerLeft , 
 
			
				
				
			
		
	
		
		
			
				
					
					              icon:  SvgPicture . asset ( " assets/icons/item_for_sale.svg " ,  color:  currentIndex  = =  3  ?  MyColors . grey3AColor  :  MyColors . grey98Color ) . paddingAll ( 4 ) , 
                  children:  [ 
 
			
				
				
			
		
	
		
		
			
				
					
					              label:  LocaleKeys . itemsForSale . tr ( ) , 
                    SvgPicture . asset ( 
 
			
				
				
			
		
	
		
		
			
				
					
					            ) , 
                      " assets/icons/chat/chat.svg " , 
 
			
				
				
			
		
	
		
		
			
				
					
					            BottomNavigationBarItem ( 
                      color: 
 
			
				
				
			
		
	
		
		
			
				
					
					              icon:  Stack ( 
                          ! checkIfPrivilegedForChat ( ) 
 
			
				
				
			
		
	
		
		
			
				
					
					                alignment:  Alignment . centerLeft , 
                              ?  MyColors . lightGreyE3Color 
 
			
				
				
			
		
	
		
		
			
				
					
					                children:  [ 
                              :  currentIndex  = =  4 
 
			
				
				
			
		
	
		
		
			
				
					
					                  SvgPicture . asset ( 
                              ?  MyColors . grey3AColor 
 
			
				
				
			
		
	
		
		
			
				
					
					                    " assets/icons/chat/chat.svg " , 
                              :  cProvider . disbaleChatForThisUser 
 
			
				
				
			
		
	
		
		
			
				
					
					                    color: 
                              ?  MyColors . lightGreyE3Color 
 
			
				
				
			
		
	
		
		
			
				
					
					                        ! checkIfPrivilegedForChat ( ) 
                              :  MyColors . grey98Color , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            ?  MyColors . lightGreyE3Color 
                    ) . paddingAll ( 4 ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            :  currentIndex  = =  4 
                    Consumer < ChatProviderModel > ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                            ?  MyColors . grey3AColor 
                      builder:  ( BuildContext  cxt ,  ChatProviderModel  data ,  Widget ?  child )  { 
 
			
				
				
			
		
	
		
		
			
				
					
					                            :  cProvider . disbaleChatForThisUser 
                        return  ! checkIfPrivilegedForChat ( ) 
 
			
				
				
			
		
	
		
		
			
				
					
					                            ?  MyColors . lightGreyE3Color 
                            ?  const  SizedBox ( ) 
 
			
				
				
			
		
	
		
		
			
				
					
					                            :  MyColors . grey98Color , 
                            :  Positioned ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                  ) . paddingAll ( 4 ) , 
                              right:  0 , 
 
			
				
				
			
		
	
		
		
			
				
					
					                  Consumer < ChatProviderModel > ( 
                              top:  0 , 
 
			
				
				
			
		
	
		
		
			
				
					
					                    builder:  ( BuildContext  cxt ,  ChatProviderModel  data ,  Widget ?  child )  { 
                              child:  Container ( 
 
			
				
				
			
		
	
		
		
			
				
					
					                      return  ! checkIfPrivilegedForChat ( ) 
                                padding:  const  EdgeInsets . only ( left:  4 ,  right:  4 ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                          ?  const  SizedBox ( ) 
                                alignment:  Alignment . center , 
 
			
				
				
			
		
	
		
		
			
				
					
					                          :  Positioned ( 
                                decoration:  BoxDecoration ( color:  cProvider . disbaleChatForThisUser  ?  MyColors . pinkDarkColor  :  MyColors . redColor ,  borderRadius:  BorderRadius . circular ( 17 ) ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            right:  0 , 
                                child:  data . chatUConvCounter . toString ( ) . toText10 ( color:  Colors . white ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            top:  0 , 
                              ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            child:  Container ( 
                            ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
					                              padding:  const  EdgeInsets . only ( left:  4 ,  right:  4 ) , 
                      } , 
 
			
				
				
			
		
	
		
		
			
				
					
					                              alignment:  Alignment . center , 
                    ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                              decoration:  BoxDecoration ( color:  cProvider . disbaleChatForThisUser  ?  MyColors . pinkDarkColor  :  MyColors . redColor ,  borderRadius:  BorderRadius . circular ( 17 ) ) , 
                  ] , 
 
			
				
				
			
		
	
		
		
			
				
					
					                              child:  data . chatUConvCounter . toString ( ) . toText10 ( color:  Colors . white ) , 
                ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                            ) , 
                label:  LocaleKeys . chat . tr ( ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					                          ) ; 
 
			
		
	
		
		
			
				
					
					                    } , 
 
			
		
	
		
		
			
				
					
					                  ) , 
 
			
		
	
		
		
			
				
					
					                ] , 
 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					              ) , 
              ) , 
 
			
		
	
		
		
			
				
					
					              label:  LocaleKeys . chat . tr ( ) , 
            ] , 
 
			
				
				
			
		
	
		
		
			
				
					
					            ) , 
            currentIndex:  currentIndex , 
 
			
				
				
			
		
	
		
		
			
				
					
					          ] , 
            selectedLabelStyle:  const  TextStyle ( fontSize:  10 ,  color:  MyColors . grey3AColor ,  fontWeight:  FontWeight . w600 ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					          currentIndex:  currentIndex , 
            unselectedLabelStyle:  const  TextStyle ( fontSize:  10 ,  color:  MyColors . grey98Color ,  fontWeight:  FontWeight . w600 ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					          selectedLabelStyle:  const  TextStyle ( fontSize:  10 ,  color:  MyColors . grey3AColor ,  fontWeight:  FontWeight . w600 ) , 
            type:  BottomNavigationBarType . fixed , 
 
			
				
				
			
		
	
		
		
			
				
					
					          unselectedLabelStyle:  const  TextStyle ( fontSize:  10 ,  color:  MyColors . grey98Color ,  fontWeight:  FontWeight . w600 ) , 
            selectedItemColor:  MyColors . grey3AColor , 
 
			
				
				
			
		
	
		
		
			
				
					
					          type:  BottomNavigationBarType . fixed , 
            backgroundColor:  MyColors . backgroundColor , 
 
			
				
				
			
		
	
		
		
			
				
					
					          selectedItemColor:  MyColors . grey3AColor , 
            selectedIconTheme:  const  IconThemeData ( color:  MyColors . grey3AColor ,  size:  28 ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					          backgroundColor:  MyColors . backgroundColor , 
            unselectedIconTheme:  const  IconThemeData ( color:  MyColors . grey98Color ,  size:  28 ) , 
 
			
				
				
			
		
	
		
		
			
				
					
					          selectedIconTheme:  const  IconThemeData ( color:  MyColors . grey3AColor ,  size:  28 ) , 
            onTap:  ( int  index )  { 
 
			
				
				
			
		
	
		
		
			
				
					
					          unselectedIconTheme:  const  IconThemeData ( color:  MyColors . grey98Color ,  size:  28 ) , 
              if  ( index  = =  1 )  { 
 
			
				
				
			
		
	
		
		
			
				
					
					          onTap:  ( int  index )  { 
                Navigator . pushNamed ( context ,  AppRoutes . mowadhafhi ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
					            if  ( index  = =  1 )  { 
              }  else  if  ( index  = =  2 )  { 
 
			
				
				
			
		
	
		
		
			
				
					
					              Navigator . pushNamed ( context ,  AppRoutes . mowadhafhi ) ; 
                Navigator . pushNamed ( context ,  AppRoutes . workList ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
					            }  else  if  ( index  = =  2 )  { 
              }  else  if  ( index  = =  3 )  { 
 
			
				
				
			
		
	
		
		
			
				
					
					              Navigator . pushNamed ( context ,  AppRoutes . workList ) ; 
                Navigator . pushNamed ( context ,  AppRoutes . itemsForSale ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
					            }  else  if  ( index  = =  3 )  { 
              }  else  if  ( index  = =  4 )  { 
 
			
				
				
			
		
	
		
		
			
				
					
					              Navigator . pushNamed ( context ,  AppRoutes . itemsForSale ) ; 
                if  ( ! cProvider . disbaleChatForThisUser  & &  checkIfPrivilegedForChat ( ) )  { 
 
			
				
				
			
		
	
		
		
			
				
					
					            }  else  if  ( index  = =  4 )  { 
                  Navigator . pushNamed ( context ,  AppRoutes . chat ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
					              if  ( ! cProvider . disbaleChatForThisUser  & &  checkIfPrivilegedForChat ( ) )  { 
                } 
 
			
				
				
			
		
	
		
		
			
				
					
					                Navigator . pushNamed ( context ,  AppRoutes . chat ) ; 
 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					              } 
              } 
 
			
		
	
		
		
			
				
					
					            } 
            } , 
 
			
				
				
			
		
	
		
		
			
				
					
					          } , 
          ) , 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					        ) , 
        ) , 
 
			
		
	
		
		
			
				
					
					      ) , 
      ) , 
 
			
		
	
		
		
			
				
					
					    ) ; 
    ) ;