added unfocus when tapping on background image

This commit is contained in:
Lars Neuhaus 2024-04-02 14:32:37 +02:00
parent 1b407562df
commit 42574583ed

View File

@ -108,7 +108,11 @@ class _ChatViewState extends State<ChatView> {
), ),
), ),
), ),
body: Container( body: GestureDetector(
onTap: () {
FocusScope.of(context).requestFocus(FocusNode());
},
child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
image: DecorationImage( image: DecorationImage(
image: const AssetImage('assets/background/chat.png'), image: const AssetImage('assets/background/chat.png'),
@ -137,6 +141,7 @@ class _ChatViewState extends State<ChatView> {
], ],
), ),
), ),
),
); );
}, },
); );