Merge branch 'main' of gitlab.com:famedly/fluffychat

This commit is contained in:
Christian Pauly 2021-07-18 12:37:03 +02:00
commit bfa6e653e8
4 changed files with 37 additions and 2 deletions

View file

@ -290,7 +290,8 @@ class ChatController extends State<Chat> {
}
void openCameraAction() async {
inputFocus.unfocus();
// Make sure the textfield is unfocused before opening the camera
FocusScope.of(context).requestFocus(FocusNode());
final file = await ImagePicker().getImage(source: ImageSource.camera);
if (file == null) return;
final bytes = await file.readAsBytes();