flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
166.14k stars 27.46k forks source link

[iOS Simulator] Multiple taps on status bar required to activate scroll to top #109439

Open JoeCiou opened 2 years ago

JoeCiou commented 2 years ago

Steps to Reproduce

if there is no app bar for Scaffold, need to tap the status bar twice or more times to scroll list to top.

Expected results: Tap the status bar once to scroll list to top.

Actual results: Tap the status bar twice or more times to scroll list to top.

Flutter version: 2.10.4

Code sample ```dart class _MyHomePageState extends State { @override Widget build(BuildContext context) { return Scaffold( body: ListView.builder( itemCount: 20, itemBuilder: (context, index) { final colors = [Colors.red, Colors.blue, Colors.green]; return Container( height: 100, color: colors[index % 3], ); }, ), ); } } ```
danagbemava-nc commented 2 years ago

Hi @JoeCiou, you appear to be on an older version of flutter. Kindly upgrade to the latest version of stable to see if you can still reproduce this issue.

Thank you

JoeCiou commented 2 years ago

@danagbemava-nc I tried Flutter 3.0.5 with the same example and still have this issue.

danagbemava-nc commented 2 years ago

Hi @JoeCiou, do you experience this issue on the iOS simulator only or both the simulator and physical devices?

JoeCiou commented 2 years ago

@danagbemava-nc I found it only occur on simulator, physical device is working properly.

danagbemava-nc commented 2 years ago

Issue is reproducible on stable and master only on the iOS simulator. Physical devices work just fine.

videos | SwiftUI | Flutter | | -- | -- | |
code sample ```dart 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 const MaterialApp( title: 'Flutter Demo', home: MyHomePage(), ); } } class MyHomePage extends StatelessWidget { const MyHomePage({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Scaffold( body: ListView.builder( itemCount: 20, itemBuilder: (context, index) { final colors = [Colors.red, Colors.blue, Colors.green]; return Container( height: 100, color: colors[index % 3], ); }, ), ); } } ```
flutter doctor -v ``` [✓] Flutter (Channel stable, 3.0.5, on macOS 12.5 21G72 darwin-arm, locale en-GB) • Flutter version 3.0.5 at /Users/nexus/dev/sdks/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision f1875d570e (5 weeks ago), 2022-07-13 11:24:16 -0700 • Engine revision e85ea0e79c • Dart version 2.17.6 • DevTools version 2.12.2 [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at /Users/nexus/Library/Android/sdk • Platform android-33, build-tools 33.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 13.4.1) • Xcode at /Applications/Xcode.app/Contents/Developer • CocoaPods version 1.11.3 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2021.2) • Android Studio at /Applications/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 11.0.12+0-b1504.28-7817840) [✓] VS Code (version 1.70.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.46.0 [✓] Connected device (5 available) • M2007J20CG (mobile) • 5dd3be00 • android-arm64 • Android 11 (API 30) • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 13 (API 33) (emulator) • Nexus (mobile) • 00008020-001875E83A38002E • ios • iOS 15.6 19G71 • macOS (desktop) • macos • darwin-arm64 • macOS 12.5 21G72 darwin-arm • Chrome (web) • chrome • web-javascript • Google Chrome 104.0.5112.79 [✓] HTTP Host Availability • All required HTTP hosts are available • No issues found! ``` ``` [✓] Flutter (Channel master, 3.1.0-0.0.pre.2346, on macOS 12.5 21G72 darwin-arm, locale en-GB) • Flutter version 3.1.0-0.0.pre.2346 on channel master at /Users/nexus/dev/sdks/flutters • Upstream repository https://github.com/flutter/flutter.git • Framework revision adda088bcc (4 hours ago), 2022-08-17 22:59:07 -0400 • Engine revision a77ead45a8 • Dart version 2.19.0 (build 2.19.0-108.0.dev) • DevTools version 2.16.0 [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at /Users/nexus/Library/Android/sdk • Platform android-33, build-tools 33.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 13.4.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 13F100 • CocoaPods version 1.11.3 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2021.2) • Android Studio at /Applications/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 11.0.12+0-b1504.28-7817840) [✓] VS Code (version 1.70.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.46.0 [✓] Connected device (5 available) • M2007J20CG (mobile) • 5dd3be00 • android-arm64 • Android 11 (API 30) • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 13 (API 33) (emulator) • Nexus (mobile) • 00008020-001875E83A38002E • ios • iOS 15.6 19G71 • macOS (desktop) • macos • darwin-arm64 • macOS 12.5 21G72 darwin-arm • Chrome (web) • chrome • web-javascript • Google Chrome 104.0.5112.79 [✓] HTTP Host Availability • All required HTTP hosts are available • No issues found! ```
goderbauer commented 2 years ago

@Piinks

Piinks commented 2 years ago

Has this been tested on a physical device? I think I recall a past issue or two where the simulator was interfering...

danagbemava-nc commented 2 years ago

@Piinks yes, on a physical device everything works as expected

devunt commented 5 months ago

I'm having the same issue with the simulator. Physical device works as expected.