fix: Keyboard hides imagePicker buttons on iOS

This commit is contained in:
Christian Pauly 2021-07-13 10:30:53 +02:00
commit 18e5ebbdfa
2 changed files with 4 additions and 2 deletions

View file

@ -288,6 +288,7 @@ class ChatController extends State<Chat> {
}
void openCameraAction() async {
inputFocus.unfocus();
final file = await ImagePicker().getImage(source: ImageSource.camera);
if (file == null) return;
final bytes = await file.readAsBytes();