| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -5,12 +5,14 @@ class ExceptionWidget extends StatelessWidget { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    this.exception, { | 
					 | 
					 | 
					 | 
					    this.exception, { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    required this.onRetry, | 
					 | 
					 | 
					 | 
					    required this.onRetry, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    this.onlyIcon = false, | 
					 | 
					 | 
					 | 
					    this.onlyIcon = false, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    this.iconSize = 30, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    super.key, | 
					 | 
					 | 
					 | 
					    super.key, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  }); | 
					 | 
					 | 
					 | 
					  }); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  final dynamic exception; | 
					 | 
					 | 
					 | 
					  final dynamic exception; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  final Function() onRetry; | 
					 | 
					 | 
					 | 
					  final Function() onRetry; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  final bool onlyIcon; | 
					 | 
					 | 
					 | 
					  final bool onlyIcon; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  final double iconSize; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  static void showSnackbar(final BuildContext context, final dynamic exception) { | 
					 | 
					 | 
					 | 
					  static void showSnackbar(final BuildContext context, final dynamic exception) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    final details = _getExceptionDetails(context, exception); | 
					 | 
					 | 
					 | 
					    final details = _getExceptionDetails(context, exception); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -31,28 +33,28 @@ class ExceptionWidget extends StatelessWidget { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  @override | 
					 | 
					 | 
					 | 
					  @override | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  Widget build(final BuildContext context) => exception == null | 
					 | 
					 | 
					 | 
					  Widget build(final BuildContext context) => exception == null | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      ? Container() | 
					 | 
					 | 
					 | 
					      ? Container() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      : Padding( | 
					 | 
					 | 
					 | 
					      : Container( | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          padding: const EdgeInsets.all(5), | 
					 | 
					 | 
					 | 
					          padding: !onlyIcon ? const EdgeInsets.all(5) : null, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          child: Builder( | 
					 | 
					 | 
					 | 
					          child: Builder( | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            builder: (final context) { | 
					 | 
					 | 
					 | 
					            builder: (final context) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              final details = _getExceptionDetails(context, exception); | 
					 | 
					 | 
					 | 
					              final details = _getExceptionDetails(context, exception); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              const errorIcon = Icon( | 
					 | 
					 | 
					 | 
					              final errorIcon = Icon( | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                Icons.error_outline, | 
					 | 
					 | 
					 | 
					                Icons.error_outline, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                size: 30, | 
					 | 
					 | 
					 | 
					                size: iconSize, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                color: Colors.red, | 
					 | 
					 | 
					 | 
					                color: Colors.red, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              ); | 
					 | 
					 | 
					 | 
					              ); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              if (onlyIcon) { | 
					 | 
					 | 
					 | 
					              if (onlyIcon) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                return IconButton( | 
					 | 
					 | 
					 | 
					                return InkWell( | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  onPressed: () async { | 
					 | 
					 | 
					 | 
					                  child: errorIcon, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                  onTap: () async { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    if (details.isUnauthorized) { | 
					 | 
					 | 
					 | 
					                    if (details.isUnauthorized) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                      await _openLoginPage(context); | 
					 | 
					 | 
					 | 
					                      await _openLoginPage(context); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    } else { | 
					 | 
					 | 
					 | 
					                    } else { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                      onRetry(); | 
					 | 
					 | 
					 | 
					                      onRetry(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    } | 
					 | 
					 | 
					 | 
					                    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  }, | 
					 | 
					 | 
					 | 
					                  }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  icon: errorIcon, | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                ); | 
					 | 
					 | 
					 | 
					                ); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              } | 
					 | 
					 | 
					 | 
					              } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |