| 
					
					
						
							
						
					
					
				 | 
				@ -5,6 +5,8 @@ import 'package:go_router/go_router.dart'; | 
			
		
		
	
		
			
				 | 
				 | 
				import 'package:hadi_hoda_flutter/common_ui/resources/my_assets.dart'; | 
				 | 
				 | 
				import 'package:hadi_hoda_flutter/common_ui/resources/my_assets.dart'; | 
			
		
		
	
		
			
				 | 
				 | 
				import 'package:hadi_hoda_flutter/common_ui/resources/my_colors.dart'; | 
				 | 
				 | 
				import 'package:hadi_hoda_flutter/common_ui/resources/my_colors.dart'; | 
			
		
		
	
		
			
				 | 
				 | 
				import 'package:hadi_hoda_flutter/common_ui/resources/my_spaces.dart'; | 
				 | 
				 | 
				import 'package:hadi_hoda_flutter/common_ui/resources/my_spaces.dart'; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				import 'package:hadi_hoda_flutter/common_ui/resources/my_text_style.dart'; | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				import 'package:hadi_hoda_flutter/core/utils/my_localization.dart'; | 
			
		
		
	
		
			
				 | 
				 | 
				import 'package:hadi_hoda_flutter/core/utils/set_platform_size.dart'; | 
				 | 
				 | 
				import 'package:hadi_hoda_flutter/core/utils/set_platform_size.dart'; | 
			
		
		
	
		
			
				 | 
				 | 
				import 'package:hadi_hoda_flutter/core/widgets/dialog/styles/dialog_background.dart'; | 
				 | 
				 | 
				import 'package:hadi_hoda_flutter/core/widgets/dialog/styles/dialog_background.dart'; | 
			
		
		
	
		
			
				 | 
				 | 
				import 'package:hadi_hoda_flutter/core/widgets/images/my_image.dart'; | 
				 | 
				 | 
				import 'package:hadi_hoda_flutter/core/widgets/images/my_image.dart'; | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
						
							
						
					
					
				 | 
				@ -46,7 +48,10 @@ class HadithDialog extends StatelessWidget { | 
			
		
		
	
		
			
				 | 
				 | 
				              clipBehavior: Clip.none, | 
				 | 
				 | 
				              clipBehavior: Clip.none, | 
			
		
		
	
		
			
				 | 
				 | 
				              children: [ | 
				 | 
				 | 
				              children: [ | 
			
		
		
	
		
			
				 | 
				 | 
				                DialogBackground( | 
				 | 
				 | 
				                DialogBackground( | 
			
		
		
	
		
			
				 | 
				 | 
				                  child: ListView.separated( | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                  child: Builder( | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    builder: (context) { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                      if(hadith.isNotEmpty){ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                        return ListView.separated( | 
			
		
		
	
		
			
				 | 
				 | 
				                          itemCount: hadith.length, | 
				 | 
				 | 
				                          itemCount: hadith.length, | 
			
		
		
	
		
			
				 | 
				 | 
				                          separatorBuilder: (context, index) => Divider( | 
				 | 
				 | 
				                          separatorBuilder: (context, index) => Divider( | 
			
		
		
	
		
			
				 | 
				 | 
				                            height: 40, | 
				 | 
				 | 
				                            height: 40, | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -55,13 +60,38 @@ class HadithDialog extends StatelessWidget { | 
			
		
		
	
		
			
				 | 
				 | 
				                            indent: MySpaces.s20, | 
				 | 
				 | 
				                            indent: MySpaces.s20, | 
			
		
		
	
		
			
				 | 
				 | 
				                            color: Color(0xFFC2BDE4), | 
				 | 
				 | 
				                            color: Color(0xFFC2BDE4), | 
			
		
		
	
		
			
				 | 
				 | 
				                          ), | 
				 | 
				 | 
				                          ), | 
			
		
		
	
		
			
				 | 
				 | 
				                    itemBuilder: (context, index) => Text( | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                      hadith[index].hadithText ?? '', | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                          itemBuilder: (context, index) => Text.rich( | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                            TextSpan( | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                              text: '${hadith[index].narratorName ?? ''}:\n', | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                              style: MYTextStyle.titr1.copyWith( | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                                color: Color(0XFF494178), | 
			
		
		
	
		
			
				 | 
				 | 
				                              ), | 
				 | 
				 | 
				                              ), | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                              children: [ | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                                TextSpan( | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                                  text: hadith[index].hadithText, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                                  style: MYTextStyle.matn1.copyWith( | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                                    color: Color(0XFF494178), | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                                  ), | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                                ), | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                              ], | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                            ), | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                          ), | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                        ); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                      } else { | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                        return Center( | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                          child: Text( | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                            context.translate.no_hadith, | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                            style: MYTextStyle.titr4.copyWith( | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                              color: Color(0XFF494178), | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                            ), | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                          ), | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                        ); | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                      } | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                    }, | 
			
		
		
	
		
			
				 | 
				 | 
				                  ), | 
				 | 
				 | 
				                  ), | 
			
		
		
	
		
			
				 | 
				 | 
				                ), | 
				 | 
				 | 
				                ), | 
			
		
		
	
		
			
				 | 
				 | 
				                Positioned( | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				                  right: setSize(context: context, mobile: 30, tablet: 40), | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                PositionedDirectional( | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				                  end: setSize(context: context, mobile: 30, tablet: 40), | 
			
		
		
	
		
			
				 | 
				 | 
				                  top: -12, | 
				 | 
				 | 
				                  top: -12, | 
			
		
		
	
		
			
				 | 
				 | 
				                  child: GestureDetector( | 
				 | 
				 | 
				                  child: GestureDetector( | 
			
		
		
	
		
			
				 | 
				 | 
				                    onTap: context.pop, | 
				 | 
				 | 
				                    onTap: context.pop, | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |