-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
resizeToAvoidBottomInset:false
is not working
#116851
Comments
@hello-nico-chan I don't experience the same behavior full code sampleimport 'package:flutter/material.dart';
void main() => runApp(const MaterialApp(home: TestWidget()));
class TestWidget extends StatelessWidget {
const TestWidget({super.key});
@override
Widget build(context) => Scaffold(
resizeToAvoidBottomInset: false,
body: Padding(
padding: const EdgeInsets.all(50),
child: Column(
children: const [
Expanded(
flex: 3,
child: Center(
child: Text(
'Hello! 👏',
style: TextStyle(fontSize: 20),
),
),
),
Expanded(
flex: 3,
child: Center(
child: Text(
'Hello! 👏',
style: TextStyle(fontSize: 20),
),
),
),
Expanded(
flex: 3,
child: TextField(
decoration: InputDecoration(labelText: 'username'),
),
),
Expanded(
flex: 3,
child: Center(
child: Text(
'Hello! 👏',
style: TextStyle(fontSize: 20),
),
),
),
],
),
),
);
}
doctor[✓] Flutter (Channel stable, 3.3.9, on macOS 13.0.1 22A400 darwin-arm, locale en-EE)
• Flutter version 3.3.9 on channel stable at /Users/yakforward/fvm/versions/stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision b8f7f1f986 (3 weeks ago), 2022-11-23 06:43:51 +0900
• Engine revision 8f2221fbef
• Dart version 2.18.5
• DevTools version 2.15.0
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14B47b
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[✓] VS Code (version 1.74.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.54.0
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.0.1 22A400 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 108.0.5359.98
[✓] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 2 categories. xcode versionxcode-select --version
xcode-select version 2396. |
Thanks for the reply @iapicca, but it's so weird I remember it worked several weeks ago but now it doesn't work after some flutter upgrades. My flutter is v3.3.9 and dart v2.18.5 |
@hello-nico-chan 116851.movWhat version of iOS you are using ? Is it a physical device or simulator ? |
I have the same issue, using Simulator, iOS16 |
Hi @darshankawar , my OS is iOS 16.1.2, and I have this issue both on my physical device (iOS 16.1.2) and simulator (iOS 16.1) 2022-12-12.17.14.05.mov |
@hello-nico-chan |
@hello-nico-chan |
Oh @iapicca, the code sample you mentioned works for me! My
Then, thanks for @gillhad 's tips, I added My problem is solved!! Thank you all!!!! (I'm new to flutter, I don't very clear about many principles and I'm still learning.😄) |
Hello people!. I had the same problem. In my case it was the other way around, I needed the behavior of the first video in this issue (@hello-nico-chan). The version I was using was Flutter 3.3.9 (global) with Dart 2.18.5 (stable). In my pubspec.yaml file the sdk was at ">=2.18.2 <3.0.0", by changing to sdk: ">=2.17.0 <3.0.0" I managed to get the results. Just to comment I handle the versions with fvm. |
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 |
Steps to Reproduce
flutter run
on the code sampleresizeToAvoidBottomInset: false;
.Expected results: All of the widgets keep their position.
Actual results: All of them are resized.
Code sample
Logs
RPReplay_Final1670753822.mp4
The text was updated successfully, but these errors were encountered: