Skip to content

[iOS]: Scrolling is not smooth when the keyboard popup in release mode. #98115

@MiaYi

Description

@MiaYi

Details

Just put a TextField on the bottom of the screen and some Container for observing the animation as below code.

import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      body: SingleChildScrollView(
        child: Column(
          children: [
            Column(
              children: List.generate(
                  4,
                  (_) => Padding(
                        padding: const EdgeInsets.all(8.0),
                        child: Container(
                          height: 150,
                          color: Colors.black12,
                        ),
                      )),
            ),
            const TextField(),
          ],
        ),
      ),
    ),
  ));
}

The animation is not smooth when tapping the TextField to trigger the keyboard.

RPReplay_Final1644404216.MP4

Target Platform: iOS
Target OS version/browser: iOS15.3
Devices: iPhoneX (Physical device)

Logs

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 2.11.0-0.0.pre.492, on macOS 11.6 20G165 darwin-arm, locale zh-Hant-TW)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] IntelliJ IDEA Community Edition (version 2021.2.2)
[✓] VS Code (version 1.64.0)
[✓] Connected device (2 available)
    ! Error: iPad (2) is not connected. Xcode will continue when iPad (2) is connected. (code -13)
    ! Error: YI de iPhone (2) is not connected. Xcode will continue when YI de iPhone (2) is connected. (code -13)
[✓] HTTP Host Availability

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)engineflutter/engine related. See also e: labels.f: scrollingViewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.platform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions