Skip to content

[Web][iOS][Safari]: Free space is shown at the bottom of screen when focussing a textfield #95010

Closed

Description

@bw-flagship

Steps to Reproduce

  1. Execute flutter run -d chrome on the code sample
  2. Open the local website on an iOS Simulator in Safari
  3. Click in the textfield.
  4. Observe the bottom area of the screen

Expected results:
I expected the yellow area to expand.

Actual results:
A blue bar appears. This area will never go away, not even after leaving the textfield or navigating to a new screen.

safari demo

It is pretty bad Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const Scaffold(
        backgroundColor: Colors.yellow,
        body: Center(
          child: TextField(),
        ),
      ),
    );
  }
}
Logs

Sadly there are no logs when opening flutter web from ios simulator.

No issues found! (ran in 2.0s)
[✓] Flutter (Channel stable, 2.8.0, on macOS 12.0.1 21A559 darwin-arm, locale en-DE)
    • Flutter version 2.8.0 at /opt/homebrew/Caskroom/flutter/2.5.3/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision cf44000065 (2 days ago), 2021-12-08 14:06:50 -0800
    • Engine revision 40a99c5951
    • Dart version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc5)
    • Android SDK at /Users/bweber/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0-rc5
    • Java binary at: /opt/homebrew/opt/openjdk/bin/java
    • Java version OpenJDK Runtime Environment Homebrew (build 17+0)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio
    • Android Studio at /Users/bweber/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-2/212.5457.46.2112.7905983/And
      roid Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[!] Android Studio
    • Android Studio at /Users/bweber/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-2/212.5284.40.2112.7855545/And
      roid Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.63.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (5 available)
    • FP3 (mobile)           • A209HADM0202                         • android-arm64
      • Android 10 (API 29)
    • iPad (2) (mobile)      • 00008020-000E20311A29402E            • ios
      • iOS 14.8.1 18H107
    • iPhone 8 Plus (mobile) • 8F31D98F-D219-4F30-B1CB-0D8D6B7A8494 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64
      • macOS 12.0.1 21A559 darwin-arm
    • Chrome (web)           • chrome                               • web-javascript
      • Google Chrome 96.0.4664.93
    ! Error: iPad (2) is busy: Fetching debug symbols for iPad (2). Xcode will
      continue when iPad (2) is finished. (code -10)
    ! Error: MyRealiPhone is not connected. Xcode will continue when MyRealiPhone is
      connected. (code -13)

! Doctor found issues in 2 categories.

Activity

  1. darshankawar commented on Dec 13, 2021

    @darshankawar
    Member

    @bw-flagship
    Thanks for the report. I tried the code sample on latest stable and master on iOS simulator, but didn't notice the issue, as below:

    95010.mov
    stable, master flutter doctor -v
    [✓] Flutter (Channel stable, 2.8.0, on Mac OS X 10.15.4 19E2269 darwin-x64,
        locale en-GB)
        • Flutter version 2.8.0 at /Users/dhs/documents/fluttersdk/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision cf44000065 (10 hours ago), 2021-12-08 14:06:50 -0800
        • Engine revision 40a99c5951
        • Dart version 2.15.0
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 30)
        • Android SDK at /Users/dhs/Library/Android/sdk
        • Platform android-30, build-tools 30.0.3
        • ANDROID_HOME = /Users/dhs/Library/Android/sdk
        • Java binary at: /Users/dhs/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/Android
          Studio.app/Contents/jre/jdk/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
        • All Android licenses accepted.    
    
    [✓] Xcode - develop for iOS and macOS
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Xcode 12.3, Build version 12C33
        • CocoaPods version 1.10.1
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 4.1)
        • Android Studio at /Users/dhs/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/Android
          Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build
          1.8.0_242-release-1644-b3-6915495)        
    
    [✓] VS Code (version 1.57.1)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.21.0
    
    [✓] Connected device (4 available)
        • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
          ios            • iOS 14.4.1 18D61
        • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
          ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
        • macOS (desktop)            • macos                                    •
          darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
        • Chrome (web)               • chrome                                   •
          web-javascript • Google Chrome 93.0.4577.82
    
    
    • No issues found!
    
    [[✓] Flutter (Channel master, 2.6.0-12.0.pre.1002, on Mac OS X 10.15.4 19E2269
        darwin-x64, locale en-GB)
        • Flutter version 2.6.0-12.0.pre.1002 at
          /Users/dhs/documents/fluttersdk/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 9de8849905 (3 hours ago), 2021-12-12 20:54:15 -0500
        • Engine revision f16c96c31f
        • Dart version 2.16.0 (build 2.16.0-85.0.dev)
        • DevTools version 2.9.1
        
    [✓] Android toolchain - develop for Android devices (Android SDK version 30)
        • Android SDK at /Users/dhs/Library/Android/sdk
        • Platform android-30, build-tools 30.0.3
        • ANDROID_HOME = /Users/dhs/Library/Android/sdk
        • Java binary at: /Users/dhs/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/Android
          Studio.app/Contents/jre/jdk/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
        • All Android licenses accepted.    
    
    [✓] Xcode - develop for iOS and macOS
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Xcode 12.5.1, Build version 12E507
        • CocoaPods version 1.10.1
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 4.1)
        • Android Studio at /Users/dhs/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/Android
          Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build
          1.8.0_242-release-1644-b3-6915495)        
    
    [✓] VS Code (version 1.57.1)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.21.0
    
    [[✓] Connected device (4 available)
        • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
          ios            • iOS 14.4.1 18D61
        • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
          ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
        • macOS (desktop)            • macos                                    •
          darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
        • Chrome (web)               • chrome                                   •
          web-javascript • Google Chrome 93.0.4577.82
    
    
    • No issues found!
    
    
    
    
  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 13, 2021
  3. bw-flagship commented on Dec 13, 2021

    @bw-flagship
    Author

    @darshankawar thanks for the response! I figured out that this only occurs if the URL-Bar in safari is at the bottom (default since iOS 15). It occurs both on simulators and on real devices.
    To reproduce, you can configure the url bar to be at the bottom in the iOS safari settings.

    2021-12-13_18-18-07

  4. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 13, 2021
  5. darshankawar commented on Dec 14, 2021

    @darshankawar
    Member

    Thanks for the pointer. I am on 14.3 and the option to change address bar position isn't available in it and seems to be specific to iOS 15, so I'll go ahead and label per the report.

  6. changed the title [-]Ugly free space when focussing a textfield[/-] [+][Web][iOS][Safari]: Free space is shown when focussing a textfield[/+] on Dec 14, 2021
  7. added
    platform-iosiOS applications specifically
    platform-webWeb applications specifically
    a: qualityA truly polished experience
    a: text inputEntering text in a text field or keyboard related problems
    a: layoutSystemChrome and Framework's Layout Issues
    and removed
    platform-iosiOS applications specifically
    on Dec 14, 2021
  8. 28 remaining items

  9. added
    team-webOwned by Web platform team
    and removed
    team-designOwned by Design Languages team
    on Mar 7, 2024
  10. added
    triaged-webTriaged by Web platform team
    P2Important issues not at the top of the work list
    and removed
    P3Issues that are less important to the Flutter project
    on Mar 21, 2024
  11. htoor3 commented on Mar 21, 2024

    @htoor3
    Contributor

    Is this issue still occurring? I can't reproduce this, even with the url bar on the bottom.

    Screen.Recording.2024-03-21.at.12.20.08.PM.mov
  12. bldev2473 commented on Jun 11, 2025

    @bldev2473

    Any Updates on this? problem has been not solved

  13. flutter-zl commented on Oct 6, 2026

    @flutter-zl
    Contributor

    I retested this on iOS 27 with the code sample from this issue, in Safari with the address bar at the bottom, and as a home-screen web app:

    • Focus the TextField, type, and close the keyboard
    • Pan the page while the keyboard is open, then close the keyboard
    • Repeat a few times

    In all cases the view returns to its full height and no strip remains, on current master: https://flutter-demo-72-before.web.app

    If you still see the strip, please share your iOS version, whether it happens in Safari or as a home-screen app, your flutter doctor -v, and a screen recording. Without a repro on current iOS, we'll close this issue in a few weeks.

  14. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Oct 6, 2026
  15. github-actions commented on Oct 27, 2026

    @github-actions

    Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.

    If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones.

    Thanks for your contribution.

  16. github-actions commented on Nov 10, 2026

    @github-actions

    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.

  17. locked as resolved and limited conversation to collaborators on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: layoutSystemChrome and Framework's Layout Issuesa: qualityA truly polished experiencea: text inputEntering text in a text field or keyboard related problemsassigned for triageissue is assigned to a domain expert for further triagebrowser: safari-iosonly manifests in Safari on iOSe: OS-version specificAffects only some versions of the relevant operating systemframeworkflutter/packages/flutter repository. See also f: labels.platform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform teamwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions