Skip to content

Material TimePicker scales poorly #82661

@Avendo07

Description

@Avendo07

Expected results:

Actual results:

Steps to Reproduce

  1. Use the showTimePicker() function from material.dart package.
  2. Adjust the text size of android devce to small
  3. Enter the text edit mode by pressing the keyboard icon in the widget

Expected results:
Screenshot_20210517_024003

Actual results:
Screenshot_20210517_024243

Logs

flutter run --verbose
[ +48 ms] executing: [/home/avendo/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +22 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] c5a4b40
[ ] executing: [/home/avendo/flutter/] git tag --points-at c5a4b40
[ +14 ms] Exit code 0 from: git tag --points-at c5a4b40
[ ] 2.0.1
[ +23 ms] executing: [/home/avendo/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +3 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [/home/avendo/flutter/] git ls-remote --get-url origin
[ +2 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +23 ms] executing: [/home/avendo/flutter/] git rev-parse --abbrev-ref HEAD
[ +3 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +26 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +30 ms] executing: /home/avendo/Android/Sdk/platform-tools/adb devices -l
[ +22 ms] List of devices attached
192.168.64.101:5555 device product:vbox86p model:Google device:vbox86p transport_id:1
[ +4 ms] /home/avendo/Android/Sdk/platform-tools/adb -s 192.168.64.101:5555 shell getprop
[ +20 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +69 ms] Skipping pub get: version match.
[ +69 ms] Generating /home/avendo/AndroidStudioProjects/testmod/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +32 ms] ro.hardware = vbox86
[ ] ro.build.characteristics = nosdcard
[ +20 ms] Initializing file store
[ +13 ms] Skipping target: gen_localizations
[ +3 ms] complete
[ +2 ms] Launching lib/main.dart on Google in debug mode...
[ +3 ms] /home/avendo/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/avendo/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/avendo/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/
--incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata --output-dill /tmp/flutter_tools.LZNKCP/flutter_tool.BUZPBC/app.dill --packages /home/avendo/AndroidStudioProjects/testmod/.dart_tool/package_config.json
-Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/cache.dill.track.dill
[ +7 ms] executing: /home/avendo/Android/Sdk/build-tools/30.0.3/aapt dump xmltree /home/avendo/AndroidStudioProjects/testmod/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[ +3 ms] Exit code 0 from: /home/avendo/Android/Sdk/build-tools/30.0.3/aapt dump xmltree /home/avendo/AndroidStudioProjects/testmod/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
A: package="com.example.testmod" (Raw: "com.example.testmod")
A: platformBuildVersionCode=(type 0x10)0x1e
A: platformBuildVersionName=(type 0x10)0xb
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
E: uses-permission (line=14)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: application (line=16)
A: android:label(0x01010001)="testmod" (Raw: "testmod")
A: android:icon(0x01010002)=@0x7f080000
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: activity (line=21)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="com.example.testmod.MainActivity" (Raw: "com.example.testmod.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=35)
A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
A: android:resource(0x01010025)=@0x7f0a0001
E: meta-data (line=45)
A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
A: android:resource(0x01010025)=@0x7f040000
E: intent-filter (line=49)
E: action (line=50)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=52)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=59)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
[ +4 ms] executing: /home/avendo/Android/Sdk/platform-tools/adb -s 192.168.64.101:5555 shell -x logcat -v time -t 1
[ +8 ms] <- compile package:testmod/main.dart
[ +10 ms] --------- beginning of main
05-17 02:45:19.145 W/adbd ( 401): timeout expired while flushing socket, closing
[ +7 ms] executing: /home/avendo/Android/Sdk/platform-tools/adb version
[ +7 ms] Android Debug Bridge version 1.0.41
Version 31.0.2-7242960
Installed as /home/avendo/Android/Sdk/platform-tools/adb
[ +1 ms] executing: /home/avendo/Android/Sdk/platform-tools/adb start-server
[ +4 ms] Building APK
[ +10 ms] Running Gradle task 'assembleDebug'...
[ +1 ms] Using gradle from /home/avendo/AndroidStudioProjects/testmod/android/gradlew.
[ ] /home/avendo/AndroidStudioProjects/testmod/android/gradlew mode: 33261 rwxr-xr-x.
[ +4 ms] executing: /opt/android-studio/jre/bin/java -version
[ +62 ms] Exit code 0 from: /opt/android-studio/jre/bin/java -version
[ ] openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)
OpenJDK 64-Bit Server VM (build 11.0.8+0-b944-6842174, mixed mode)
[ +1 ms] executing: [/home/avendo/AndroidStudioProjects/testmod/android/] /home/avendo/AndroidStudioProjects/testmod/android/gradlew -Pverbose=true -Ptarget-platform=android-x86 -Ptarget=/home/avendo/AndroidStudioProjects/testmod/lib/main.dart
-Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[ +721 ms] > Task :app:compileFlutterBuildDebug UP-TO-DATE
[ ] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[ ] > Task :app:preBuild UP-TO-DATE
[ ] > Task :app:preDebugBuild UP-TO-DATE
[ ] > Task :app:compileDebugAidl NO-SOURCE
[ ] > Task :app:compileDebugRenderscript NO-SOURCE
[ ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[ ] > Task :app:checkDebugAarMetadata UP-TO-DATE
[ ] > Task :app:cleanMergeDebugAssets
[ ] > Task :app:mergeDebugShaders UP-TO-DATE
[ ] > Task :app:compileDebugShaders NO-SOURCE
[ ] > Task :app:generateDebugAssets UP-TO-DATE
[ ] > Task :app:mergeDebugAssets
[ +90 ms] > Task :app:copyFlutterAssetsDebug
[ ] > Task :app:generateDebugResValues UP-TO-DATE
[ ] > Task :app:generateDebugResources UP-TO-DATE
[ ] > Task :app:mergeDebugResources UP-TO-DATE
[ ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[ ] > Task :app:extractDeepLinksDebug UP-TO-DATE
[ ] > Task :app:processDebugMainManifest UP-TO-DATE
[ ] > Task :app:processDebugManifest UP-TO-DATE
[ ] > Task :app:processDebugManifestForPackage UP-TO-DATE
[ +99 ms] > Task :app:processDebugResources UP-TO-DATE
[ ] > Task :app:compileDebugKotlin UP-TO-DATE
[ ] > Task :app:javaPreCompileDebug UP-TO-DATE
[ ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[ ] > Task :app:compileDebugSources UP-TO-DATE
[ ] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[ ] > Task :app:compressDebugAssets UP-TO-DATE
[ ] > Task :app:processDebugJavaRes NO-SOURCE
[ ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[ ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[ ] > Task :app:dexBuilderDebug UP-TO-DATE
[ ] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[ ] > Task :app:mergeExtDexDebug UP-TO-DATE
[ ] > Task :app:mergeDexDebug UP-TO-DATE
[ ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[ ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[ ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[ ] > Task :app:validateSigningDebug UP-TO-DATE
[ ] > Task :app:packageDebug UP-TO-DATE
[ +158 ms] > Task :app:assembleDebug
[ ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[ ] Use '--warning-mode all' to show the individual deprecation warnings.
[ ] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
[ ] BUILD SUCCESSFUL in 1s
[ ] 32 actionable tasks: 4 executed, 28 up-to-date
[ +322 ms] Running Gradle task 'assembleDebug'... (completed in 1,462ms)
[ +160 ms] calculateSha: LocalDirectory: '/home/avendo/AndroidStudioProjects/testmod/build/app/outputs/flutter-apk'/app.apk
[ +13 ms] calculateSha: reading file took 12us
[ +307 ms] calculateSha: computing sha took 306us
[ +3 ms] ✓ Built build/app/outputs/flutter-apk/app-debug.apk.
[ +2 ms] executing: /home/avendo/Android/Sdk/build-tools/30.0.3/aapt dump xmltree /home/avendo/AndroidStudioProjects/testmod/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[ +5 ms] Exit code 0 from: /home/avendo/Android/Sdk/build-tools/30.0.3/aapt dump xmltree /home/avendo/AndroidStudioProjects/testmod/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
A: package="com.example.testmod" (Raw: "com.example.testmod")
A: platformBuildVersionCode=(type 0x10)0x1e
A: platformBuildVersionName=(type 0x10)0xb
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
E: uses-permission (line=14)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: application (line=16)
A: android:label(0x01010001)="testmod" (Raw: "testmod")
A: android:icon(0x01010002)=@0x7f080000
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: activity (line=21)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="com.example.testmod.MainActivity" (Raw: "com.example.testmod.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=35)
A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
A: android:resource(0x01010025)=@0x7f0a0001
E: meta-data (line=45)
A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
A: android:resource(0x01010025)=@0x7f040000
E: intent-filter (line=49)
E: action (line=50)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=52)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=59)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
[ ] Stopping app 'app.apk' on Google.
[ ] executing: /home/avendo/Android/Sdk/platform-tools/adb -s 192.168.64.101:5555 shell am force-stop com.example.testmod
[ +24 ms] executing: /home/avendo/Android/Sdk/platform-tools/adb -s 192.168.64.101:5555 shell pm list packages com.example.testmod
[ +21 ms] package:com.example.testmod
[ +1 ms] executing: /home/avendo/Android/Sdk/platform-tools/adb -s 192.168.64.101:5555 shell cat /data/local/tmp/sky.com.example.testmod.sha1
[ +10 ms] b1e8517c36068839d8a42c07e43b9c000f16855c
[ ] Latest build already installed.
[ ] executing: /home/avendo/Android/Sdk/platform-tools/adb -s 192.168.64.101:5555 shell -x logcat -v time -t 1
[ +11 ms] --------- beginning of main
05-17 02:45:25.156 I/libprocessgroup( 652): Successfully killed process cgroup uid 10105 pid 9548 in 44ms
[ +5 ms] executing: /home/avendo/Android/Sdk/platform-tools/adb -s 192.168.64.101:5555 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez
verify-entry-points true com.example.testmod/com.example.testmod.MainActivity
[ +20 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.testmod/.MainActivity (has extras) }
[ ] Waiting for observatory port to be available...
[ +351 ms] Observatory URL on device: http://127.0.0.1:42520/fi_wuWlNtUk=/
[ ] executing: /home/avendo/Android/Sdk/platform-tools/adb -s 192.168.64.101:5555 forward tcp:0 tcp:42520
[ +4 ms] 34847
[ ] Forwarded host port 34847 to device port 42520 for Observatory
[ +3 ms] Caching compiled dill
[ +130 ms] Connecting to service protocol: http://127.0.0.1:34847/fi_wuWlNtUk=/
[ +182 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:34847/fi_wuWlNtUk=/.
[ +112 ms] DDS is listening at http://127.0.0.1:32783/L0S8rNJ0dLs=/.
[ +30 ms] Successfully connected to service protocol: http://127.0.0.1:34847/fi_wuWlNtUk=/
[ +560 ms] DevFS: Creating new filesystem on the device (null)
[ +11 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.testmod/code_cache/testmodOIDNIP/testmod/)
[ +2 ms] Updating assets
[ +42 ms] Syncing files to device Google...
[ ] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +1 ms] <- recompile package:testmod/main.dart 97b8bb6e-4364-4cd3-8ffe-819096a6d25e
[ ] <- 97b8bb6e-4364-4cd3-8ffe-819096a6d25e
[ +31 ms] Updating files.
[ ] DevFS: Sync finished
[ ] Syncing files to device Google... (completed in 34ms)
[ ] Synced 0.0MB.
[ ] <- accept
[ +3 ms] Connected to _flutterView/0xd8e95410.
[ ] Flutter run key commands.
[ ] r Hot reload. 🔥🔥🔥
[ ] R Hot restart.
[ ] h Repeat this help message.
[ ] d Detach (terminate "flutter run" but leave application running).
[ ] c Clear the screen
[ ] q Quit (terminate the application on the device).
[ ] An Observatory debugger and profiler on Google is available at: http://127.0.0.1:32783/L0S8rNJ0dLs=/
[ ]
Flutter DevTools, a Flutter debugger and profiler, on Google is available at: http://127.0.0.1:9100?uri=http%3A%2F%2F127.0.0.1%3A32783%2FL0S8rNJ0dLs%3D%2F
[ ] Running with unsound null safety
[ ] For more information see https://dart.dev/null-safety/unsound-null-safety

flutter doctor -v
[✓] Flutter (Channel stable, 2.0.1, on Linux, locale en_IN)
• Flutter version 2.0.1 at /home/avendo/flutter
• Framework revision c5a4b40 (2 months ago), 2021-03-04 09:47:48 -0800
• Engine revision 40441de
• Dart version 2.12.0

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /home/avendo/Android/Sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/linux#android-setup for more details.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio
• Android Studio at /opt/android-studio
• 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.8+0-b944-P17168821)

[✓] Connected device (1 available)
• Google (mobile) • 192.168.64.101:5555 • android-x86 • Android 10 (API 29)

! Doctor found issues in 2 categories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)f: date/time pickerDate or time picker widgetsf: material designflutter/packages/flutter/material repository.found in release: 2.2Found to occur in 2.2found in release: 2.3Found to occur in 2.3frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages teamworkaround availableThere is a workaround available to overcome the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions