fix: Keyboard hides imagePicker buttons on iOS
This commit is contained in:
parent
7f7b05b6f4
commit
18e5ebbdfa
2 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue