Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Scaffold resizes when you come from an app with the keyboard open #43804

Closed
jamesblasco opened this issue Oct 30, 2019 · 6 comments
Closed
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. platform-ios iOS applications specifically

Comments

@jamesblasco
Copy link
Contributor

jamesblasco commented Oct 30, 2019

This problem occurs whenever the keyboard is raised in other apps and return to the app

Steps to Reproduce

Open an app like messages and tap in a field, when the keyboard is on the screen, slide back to your app. The flutter app will resize weirdly for a moment.

Demo with gallery app

Target Platform: iOS
Target OS version/browser: 12/13
Devices: Simulator/iPhone X

[✓] Flutter (Channel master, v1.10.15-pre.205, on Mac OS X 10.15 19A602, locale es-ES)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] Connected device (4 available)
@jamesblasco
Copy link
Contributor Author

The workaround to avoid this is: in your Scaffold, set resizeToAvoidBottomInset property to false.
It desactives the resize of the scaffold when the keyboard pop ups. You should be careful in the scaffolds where you want to use the keyboard

@HansMuller HansMuller added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. platform-ios iOS applications specifically labels Oct 30, 2019
@sroddy
Copy link
Contributor

sroddy commented Nov 3, 2019

I think this is the real cause of this other observed issue:
#41679

@ChinaFishNews
Copy link

The workaround to avoid this is: in your Scaffold, set resizeToAvoidBottomInset property to false.
It desactives the resize of the scaffold when the keyboard pop ups. You should be careful in the scaffolds where you want to use the keyboard

Resolved, thanks

This problem occurs whenever the keyboard is raised in other apps and return to the app

@jamesblasco
Copy link
Contributor Author

This is fixed at 16270

@josh-burton
Copy link
Contributor

I'm running an app from the latest Flutter dev branch and still seeing this issue.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. platform-ios iOS applications specifically
Projects
None yet
Development

No branches or pull requests

5 participants