added unfocus when tapping on background image
This commit is contained in:
		| @@ -108,7 +108,11 @@ class _ChatViewState extends State<ChatView> { | ||||
|               ), | ||||
|             ), | ||||
|           ), | ||||
|           body: Container( | ||||
|           body: GestureDetector( | ||||
|             onTap: () { | ||||
|               FocusScope.of(context).requestFocus(FocusNode()); | ||||
|             }, | ||||
|             child: Container( | ||||
|               decoration: BoxDecoration( | ||||
|                   image: DecorationImage( | ||||
|                       image: const AssetImage('assets/background/chat.png'), | ||||
| @@ -137,6 +141,7 @@ class _ChatViewState extends State<ChatView> { | ||||
|                 ], | ||||
|               ), | ||||
|             ), | ||||
|           ), | ||||
|         ); | ||||
|       }, | ||||
|     ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user