refactor login error message
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
		
							parent
							
								
									0c8ca1a4fc
								
							
						
					
					
						commit
						d45224dfd8
					
				| @ -197,24 +197,25 @@ class _WidgetOPState extends State<WidgetOP> { | |||||||
|             _failedMsg = ''; |             _failedMsg = ''; | ||||||
|           } |           } | ||||||
|           return Offstage( |           return Offstage( | ||||||
|               offstage: |             offstage: | ||||||
|                   _failedMsg.isEmpty && widget.curOP.value != widget.config.op, |                 _failedMsg.isEmpty && widget.curOP.value != widget.config.op, | ||||||
|               child: Row( |             child: RichText( | ||||||
|                 children: [ |               text: TextSpan( | ||||||
|                   Text( |                 text: '$_stateMsg  ', | ||||||
|                     _stateMsg, |                 style: | ||||||
|                     style: TextStyle(fontSize: 12), |                     DefaultTextStyle.of(context).style.copyWith(fontSize: 12), | ||||||
|                   ), |                 children: <TextSpan>[ | ||||||
|                   SizedBox(width: 8), |                   TextSpan( | ||||||
|                   Text( |                     text: _failedMsg, | ||||||
|                     _failedMsg, |                     style: DefaultTextStyle.of(context).style.copyWith( | ||||||
|                     style: TextStyle( |                           fontSize: 14, | ||||||
|                       fontSize: 14, |                           color: Colors.red, | ||||||
|                       color: Colors.red, |                         ), | ||||||
|                     ), |  | ||||||
|                   ), |                   ), | ||||||
|                 ], |                 ], | ||||||
|               )); |               ), | ||||||
|  |             ), | ||||||
|  |           ); | ||||||
|         }), |         }), | ||||||
|         Obx( |         Obx( | ||||||
|           () => Offstage( |           () => Offstage( | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user