Skip to content

DatePicker dialog contents are hidden when using smaller text size #139120

@KoheiKanagu

Description

@KoheiKanagu

Is there an existing issue for this?

Steps to reproduce

Please run the code sample on an iOS physical device.

I have tested the issue on my iPhone 11 Pro with iOS 17.1.1 and iPhone 14 Pro with iOS 17.2.
The issue was not reproducible on the iOS simulator.

The issue also occurs in release mode.

Expected results

Keyboard appears and date can be entered.

Actual results

Keyboard does not appear and date cannot be entered.

Code sample

Code sample

https://github.com/KoheiKanagu/date_picker_dialog

import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: FilledButton(
          onPressed: () {
            showDatePicker(
              context: context,
              firstDate: DateTime(2023),
              lastDate: DateTime(2024),
            );
          },
          child: const Text("Show Date Picker"),
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
RPReplay_Final1701153736.MP4

Logs

Logs

Nothing is output

Flutter Doctor output

Doctor output
flutter doctor -v
[✓] Flutter (Channel stable, 3.16.1, on macOS 14.1.1 23B81 darwin-arm64, locale ja-JP)
    • Flutter version 3.16.1 on channel stable at /opt/homebrew/Caskroom/flutter/3.13.4/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7f20e5d18c (13 hours ago), 2023-11-27 09:47:30 -0800
    • Engine revision 22b600f240
    • Dart version 3.2.1
    • DevTools version 2.28.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/kingu/Library/Android/sdk
    • Platform android-34-ext8, build-tools 34.0.0
    • ANDROID_HOME = /Users/kingu/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/kingu/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.14.3

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Users/kingu/Develop/global/dotfiles/google-chrome-unsafe.sh

[✓] Android Studio (version 2022.3)
    • 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 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.85.0-insider)
    • VS Code at /Applications/Visual Studio Code - Insiders.app/Contents
    • Flutter extension version 3.76.0

[✓] Connected device (6 available)
    • KingPad K10 (mobile)    • VKK104GJP0000443                     • android-arm64  • Android 10 (API 29)
    • KiPhone 11 Pro (mobile) • 00008030-00111C983630802E            • ios            • iOS 17.1.1 21B91
    • KiPhone 14 Pro (mobile) • 00008120-001159C40CEB401E            • ios            • iOS 17.2 21C5046c
    • iPhone 15 Pro (mobile)  • 3FAE5DA3-24C3-4431-95B6-13F1CE5E2F3A • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)
    • macOS (desktop)         • macos                                • darwin-arm64   • macOS 14.1.1 23B81 darwin-arm64
    • Chrome (web)            • chrome                               • web-javascript • Google Chrome 119.0.6045.159

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: regressionIt was better in the past than it is nowf: date/time pickerDate or time picker widgetsf: material designflutter/packages/flutter/material repository.found in release: 3.16Found to occur in 3.16found in release: 3.17Found to occur in 3.17frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions