added unfocus when tapping on background image
This commit is contained in:
parent
1b407562df
commit
42574583ed
@ -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> {
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user