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
163.15k stars 26.86k forks source link

Slider label clips the screen #63293

Open lucasmaffazioli opened 3 years ago

lucasmaffazioli commented 3 years ago

Steps to Reproduce

Put a long text in the label property of a Slider and the text will clip

Expected results: All the text visible in the screen

Actual results: The text shows incomplete: WhatsApp Image 2020-08-08 at 12 22 41

Logs `flutter run --verbose [ +28 ms] executing: [C:\Flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +133 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ +2 ms] 8af6b2f038c1172e61d418869363a28dffec3cb4 [ +1 ms] executing: [C:\Flutter/] git tag --contains HEAD [ +567 ms] Exit code 0 from: git tag --contains HEAD [ +2 ms] 1.17.5 [ +20 ms] executing: [C:\Flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +136 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ +1 ms] origin/stable [ ] executing: [C:\Flutter/] git ls-remote --get-url origin [ +100 ms] Exit code 0 from: git ls-remote --get-url origin [ +1 ms] https://github.com/flutter/flutter.git [ +238 ms] executing: [C:\Flutter/] git rev-parse --abbrev-ref HEAD [ +78 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ +1 ms] stable [ +79 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +33 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +23 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. [ +27 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l [ +65 ms] List of devices attached 11ea830e device product:lavender_eea model:Redmi_Note_7 device:lavender transport_id:1 [ +9 ms] C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe -s 11ea830e shell getprop [ +307 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ +6 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ +19 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ +21 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +318 ms] Generating C:\Users\lucas\Documents\Coding\Flutter\test_slider\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java [ +63 ms] ro.hardware = qcom [ +90 ms] Launching lib\main.dart on Redmi Note 7 in debug mode... [ +16 ms] C:\Flutter\bin\cache\dart-sdk\bin\dart.exe C:\Flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root C:\Flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names -Ddart.developer.causal_async_stacks=true --output-dill C:\Users\lucas\AppData\Local\Temp\flutter_tool.a103c43c-d98b-11ea-94c3-f46d04750e26\app.dill --packages C:\Users\lucas\Documents\Coding\Flutter\test_slider\.packages -Ddart.vm.profile=false -Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root [ +61 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\build-tools\29.0.2\aapt dump xmltree C:\Users\lucas\Documents\Coding\Flutter\test_slider\build\app\outputs\apk\app.apk AndroidManifest.xml [ +45 ms] Exit code 0 from: C:\Users\lucas\AppData\Local\Android\sdk\build-tools\29.0.2\aapt dump xmltree C:\Users\lucas\Documents\Coding\Flutter\test_slider\build\app\outputs\apk\app.apk AndroidManifest.xml [ +35 ms] 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)0x1c A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9") A: package="com.example.test_slider" (Raw: "com.example.test_slider") A: platformBuildVersionCode=(type 0x10)0x1c A: platformBuildVersionName=(type 0x10)0x9 E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c E: uses-permission (line=14) A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET") E: application (line=22) A: android:label(0x01010001)="test_slider" (Raw: "test_slider") A: android:icon(0x01010002)=@0x7f080000 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication") A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory") E: activity (line=28) A: android:theme(0x01010000)=@0x7f0a0000 A: android:name(0x01010003)="com.example.test_slider.MainActivity" (Raw: "com.example.test_slider.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=42) A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") A: android:resource(0x01010025)=@0x7f0a0001 E: meta-data (line=52) A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable") A: android:resource(0x01010025)=@0x7f040000 E: intent-filter (line=56) E: action (line=57) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=59) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=66) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 [ +148 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe -s 11ea830e shell -x logcat -v time -t 1 [ +278 ms] Exit code 0 from: C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe -s 11ea830e shell -x logcat -v time -t 1 [ +1 ms] --------- beginning of main 08-08 12:27:13.278 D/NetworkController.MobileSignalController(1)( 2509): 4G level = 4 [ +21 ms] <- compile package:test_slider/main.dart [ +23 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe version [ +139 ms] Android Debug Bridge version 1.0.41 Version 29.0.5-5949299 Installed as C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe [ +4 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe start-server [ +78 ms] Building APK [ +51 ms] Running Gradle task 'assembleDebug'... [ +4 ms] gradle.properties already sets `android.enableR8` [ +12 ms] Using gradle from C:\Users\lucas\Documents\Coding\Flutter\test_slider\android\gradlew.bat. [ +54 ms] C:\Users\lucas\Documents\Coding\Flutter\test_slider\android\gradlew.bat mode: 33279 rwxrwxrwx. [ +43 ms] executing: C:\Program Files\Android\Android Studio2\jre\bin\java -version [ +172 ms] Exit code 0 from: C:\Program Files\Android\Android Studio2\jre\bin\java -version [ +1 ms] openjdk version "1.8.0_212-release" OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04) OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode) [ +28 ms] executing: [C:\Users\lucas\Documents\Coding\Flutter\test_slider\android/] C:\Users\lucas\Documents\Coding\Flutter\test_slider\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm64 -Ptarget=C:\Users\lucas\Documents\Coding\Flutter\test_slider\lib\main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug [+4976 ms] > Task :app:compileFlutterBuildDebug [ +12 ms] [ +33 ms] executing: [C:\Flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +81 ms] [ +139 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ +48 ms] [ +2 ms] 8af6b2f038c1172e61d418869363a28dffec3cb4 [ +49 ms] [ +1 ms] executing: [C:\Flutter/] git tag --contains HEAD [ +1 ms] [ +415 ms] Exit code 0 from: git tag --contains HEAD [ +2 ms] [ ] 1.17.5 [ +86 ms] [ +23 ms] executing: [C:\Flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +1 ms] [ +108 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] [ ] origin/stable [ +1 ms] [ ] executing: [C:\Flutter/] git ls-remote --get-url origin [ ] [ +63 ms] Exit code 0 from: git ls-remote --get-url origin [ ] [ ] https://github.com/flutter/flutter.git [ +1 ms] [ +190 ms] executing: [C:\Flutter/] git rev-parse --abbrev-ref HEAD [ +1 ms] [ +207 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ +2 ms] [ ] stable [ ] [ +40 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ +1 ms] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ +2 ms] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ +40 ms] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +1 ms] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +1 ms] [ +7 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ +1 ms] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ +1 ms] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ +4 ms] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ +41 ms] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ +2 ms] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +1 ms] [ +28 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ +3 ms] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update. [ +36 ms] [ ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ +2 ms] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ +2 ms] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ +1 ms] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +1 ms] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +1 ms] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update. [ +3 ms] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ +42 ms] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ +3 ms] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ +59 ms] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ +1 ms] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ +2 ms] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ +2 ms] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +74 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +86 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +1 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +1 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +1 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +1 ms] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update. [ +1 ms] [ +144 ms] Initializing file store [ +4 ms] [ +37 ms] kernel_snapshot: Starting due to {} [ +103 ms] [ +30 ms] C:\Flutter\bin\cache\dart-sdk\bin\dart.exe C:\Flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root C:\Flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter -Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --no-link-platform --packages C:\Users\lucas\Documents\Coding\Flutter\test_slider\.packages --output-dill C:\Users\lucas\Documents\Coding\Flutter\test_slider\.dart_tool\flutter_build\d06f4e4939017841cd7c8c7fd604c093\app.dill --depfile C:\Users\lucas\Documents\Coding\Flutter\test_slider\.dart_tool\flutter_build\d06f4e4939017841cd7c8c7fd604c093\kernel_snapshot.d package:test_slider/main.dart [+10722 ms] [+11086 ms] kernel_snapshot: Complete [+1911 ms] [+1853 ms] debug_android_application: Starting due to {} [ +191 ms] [ +210 ms] debug_android_application: Complete [ +602 ms] [ +575 ms] Persisting file store [ +1 ms] [ +24 ms] Done persisting file store [ +1 ms] [ +4 ms] build succeeded. [ +62 ms] [ +28 ms] "flutter assemble" took 14.292ms. [ +327 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE [ +1 ms] > Task :app:preBuild UP-TO-DATE [ +1 ms] > Task :app:preDebugBuild UP-TO-DATE [ +56 ms] > Task :app:compileDebugAidl NO-SOURCE [ +1 ms] > Task :app:checkDebugManifest UP-TO-DATE [ +1 ms] > Task :app:generateDebugBuildConfig UP-TO-DATE [ +1 ms] > Task :app:compileDebugRenderscript NO-SOURCE [ +49 ms] > Task :app:cleanMergeDebugAssets [ +43 ms] > Task :app:mergeDebugShaders UP-TO-DATE [ +1 ms] > Task :app:compileDebugShaders UP-TO-DATE [ ] > Task :app:generateDebugAssets UP-TO-DATE [ +1 ms] > Task :app:mergeDebugAssets [ +371 ms] > Task :app:copyFlutterAssetsDebug [ +1 ms] > Task :app:mainApkListPersistenceDebug UP-TO-DATE [ +83 ms] > Task :app:generateDebugResValues UP-TO-DATE [ +40 ms] > Task :app:generateDebugResources UP-TO-DATE [ +1 ms] > Task :app:mergeDebugResources UP-TO-DATE [ +2 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE [ +49 ms] > Task :app:processDebugManifest UP-TO-DATE [ +2 ms] > Task :app:processDebugResources UP-TO-DATE [ +2 ms] > Task :app:compileDebugKotlin UP-TO-DATE [ +2 ms] > Task :app:javaPreCompileDebug UP-TO-DATE [ +17 ms] > Task :app:compileDebugJavaWithJavac UP-TO-DATE [ +345 ms] > Task :app:compileDebugSources UP-TO-DATE [ +270 ms] > Task :app:processDebugJavaRes NO-SOURCE [ +72 ms] > Task :app:mergeDebugJavaResource UP-TO-DATE [ +10 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE [ +1 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE [ +2 ms] > Task :app:mergeExtDexDebug UP-TO-DATE [ +2 ms] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE [ +2 ms] > Task :app:mergeDexDebug UP-TO-DATE [ +2 ms] > Task :app:validateSigningDebug UP-TO-DATE [ +1 ms] > Task :app:signingConfigWriterDebug UP-TO-DATE [ +1 ms] > Task :app:mergeDebugJniLibFolders UP-TO-DATE [ +41 ms] > Task :app:mergeDebugNativeLibs UP-TO-DATE [ +1 ms] > Task :app:stripDebugDebugSymbols UP-TO-DATE [ +8 ms] Compatible side by side NDK version was not found. [+1895 ms] > Task :app:packageDebug [ +264 ms] > Task :app:assembleDebug [ +1 ms] BUILD SUCCESSFUL in 23s [ +1 ms] 31 actionable tasks: 6 executed, 25 up-to-date [ +545 ms] Running Gradle task 'assembleDebug'... (completed in 24,1s) [ +84 ms] calculateSha: LocalDirectory: 'C:\Users\lucas\Documents\Coding\Flutter\test_slider\build\app\outputs\apk'/app.apk [ +74 ms] calculateSha: reading file took 73us [ +846 ms] calculateSha: computing sha took 844us [ +21 ms] √ Built build\app\outputs\apk\debug\app-debug.apk. [ +20 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\build-tools\29.0.2\aapt dump xmltree C:\Users\lucas\Documents\Coding\Flutter\test_slider\build\app\outputs\apk\app.apk AndroidManifest.xml [ +46 ms] Exit code 0 from: C:\Users\lucas\AppData\Local\Android\sdk\build-tools\29.0.2\aapt dump xmltree C:\Users\lucas\Documents\Coding\Flutter\test_slider\build\app\outputs\apk\app.apk AndroidManifest.xml [ +7 ms] 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)0x1c A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9") A: package="com.example.test_slider" (Raw: "com.example.test_slider") A: platformBuildVersionCode=(type 0x10)0x1c A: platformBuildVersionName=(type 0x10)0x9 E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c E: uses-permission (line=14) A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET") E: application (line=22) A: android:label(0x01010001)="test_slider" (Raw: "test_slider") A: android:icon(0x01010002)=@0x7f080000 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication") A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory") E: activity (line=28) A: android:theme(0x01010000)=@0x7f0a0000 A: android:name(0x01010003)="com.example.test_slider.MainActivity" (Raw: "com.example.test_slider.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=42) A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") A: android:resource(0x01010025)=@0x7f0a0001 E: meta-data (line=52) A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable") A: android:resource(0x01010025)=@0x7f040000 E: intent-filter (line=56) E: action (line=57) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=59) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=66) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 [ +31 ms] Stopping app 'app.apk' on Redmi Note 7. [ +1 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe -s 11ea830e shell am force-stop com.example.test_slider [ +286 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe -s 11ea830e shell pm list packages com.example.test_slider [ +172 ms] package:com.example.test_slider [ +4 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe -s 11ea830e shell cat /data/local/tmp/sky.com.example.test_slider.sha1 [ +116 ms] c0adb1bb1bb87481a1c1d3b77fb4a25c040bdff9 [ +1 ms] Installing APK. [ +3 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe version [ +55 ms] Android Debug Bridge version 1.0.41 Version 29.0.5-5949299 Installed as C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe [ +3 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe start-server [ +29 ms] Installing build\app\outputs\apk\app.apk... [ +13 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe -s 11ea830e install -t -r C:\Users\lucas\Documents\Coding\Flutter\test_slider\build\app\outputs\apk\app.apk [+10959 ms] Performing Streamed Install Success [ +1 ms] Installing build\app\outputs\apk\app.apk... (completed in 11,0s) [ +10 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe -s 11ea830e shell echo -n 339c1080685e2b130329db3c66653b545859ba0a > /data/local/tmp/sky.com.example.test_slider.sha1 [ +226 ms] Redmi Note 7 startApp [ +4 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe -s 11ea830e 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.test_slider/com.example.test_slider.MainActivity [ +487 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.test_slider/.MainActivity (has extras) } [ +1 ms] Waiting for observatory port to be available... [+2182 ms] Observatory URL on device: http://127.0.0.1:41332/GeiFK7pM9cQ=/ [ +3 ms] executing: C:\Users\lucas\AppData\Local\Android\sdk\platform-tools\adb.exe -s 11ea830e forward tcp:0 tcp:41332 [ +37 ms] 10308 [ +1 ms] Forwarded host port 10308 to device port 41332 for Observatory [ +19 ms] Connecting to service protocol: http://127.0.0.1:10308/GeiFK7pM9cQ=/ [ +339 ms] Successfully connected to service protocol: http://127.0.0.1:10308/GeiFK7pM9cQ=/ [ +8 ms] Sending to VM service: getVM({}) [ +38 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc SDM660, operatingSystem: android, targetCPU: arm64, version: 2.8.4 (stable) (Wed Jun 3 12:26:04 2020 +0200) on "android_arm64", _profilerMode: VM, _nativeZoneMemoryUsag... [ +7 ms] Sending to VM service: _flutter.listViews({}) [ +30 ms] Result: {type: FlutterViewList, views: []} [ +75 ms] Sending to VM service: getVM({}) [ +25 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc SDM660, operatingSystem: android, targetCPU: arm64, version: 2.8.4 (stable) (Wed Jun 3 12:26:04 2020 +0200) on "android_arm64", _profilerMode: VM, _nativeZoneMemoryUsag... [ +18 ms] Sending to VM service: _flutter.listViews({}) [ +12 ms] Result: {type: FlutterViewList, views: []} [ +78 ms] Sending to VM service: getVM({}) [ +12 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc SDM660, operatingSystem: android, targetCPU: arm64, version: 2.8.4 (stable) (Wed Jun 3 12:26:04 2020 +0200) on "android_arm64", _profilerMode: VM, _nativeZoneMemoryUsag... [ +1 ms] Sending to VM service: _flutter.listViews({}) [ +12 ms] Result: {type: FlutterViewList, views: []} [ +85 ms] Sending to VM service: getVM({}) [ +10 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc SDM660, operatingSystem: android, targetCPU: arm64, version: 2.8.4 (stable) (Wed Jun 3 12:26:04 2020 +0200) on "android_arm64", _profilerMode: VM, _nativeZoneMemoryUsag... [ +21 ms] Sending to VM service: _flutter.listViews({}) [ +7 ms] Result: {type: FlutterViewList, views: []} [ +56 ms] Sending to VM service: getVM({}) [ +14 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc SDM660, operatingSystem: android, targetCPU: arm64, version: 2.8.4 (stable) (Wed Jun 3 12:26:04 2020 +0200) on "android_arm64", _profilerMode: VM, _nativeZoneMemoryUsag... [ +22 ms] Sending to VM service: _flutter.listViews({}) [ +13 ms] Result: {type: FlutterViewList, views: []} [ +21 ms] Flutter is taking longer than expected to report its views. Still trying... [ +52 ms] Sending to VM service: getVM({}) [ +24 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc SDM660, operatingSystem: android, targetCPU: arm64, version: 2.8.4 (stable) (Wed Jun 3 12:26:04 2020 +0200) on "android_arm64", _profilerMode: VM, _nativeZoneMemoryUsag... [ +20 ms] Sending to VM service: _flutter.listViews({}) [ +7 ms] Result: {type: FlutterViewList, views: []} [ +56 ms] Sending to VM service: getVM({}) [ +16 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc SDM660, operatingSystem: android, targetCPU: arm64, version: 2.8.4 (stable) (Wed Jun 3 12:26:04 2020 +0200) on "android_arm64", _profilerMode: VM, _nativeZoneMemoryUsag... [ +18 ms] Sending to VM service: _flutter.listViews({}) [ +8 ms] Result: {type: FlutterViewList, views: []} [ +65 ms] Sending to VM service: getVM({}) [ +27 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc SDM660, operatingSystem: android, targetCPU: arm64, version: 2.8.4 (stable) (Wed Jun 3 12:26:04 2020 +0200) on "android_arm64", _profilerMode: VM, _nativeZoneMemoryUsag... [ +18 ms] Sending to VM service: _flutter.listViews({}) [ +14 ms] Result: {type: FlutterViewList, views: []} [ +79 ms] Sending to VM service: getVM({}) [ +10 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc SDM660, operatingSystem: android, targetCPU: arm64, version: 2.8.4 (stable) (Wed Jun 3 12:26:04 2020 +0200) on "android_arm64", _profilerMode: VM, _nativeZoneMemoryUsag... [ +16 ms] Sending to VM service: _flutter.listViews({}) [ +17 ms] Result: {type: FlutterViewList, views: []} [ +67 ms] Sending to VM service: getVM({}) [ +7 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc SDM660, operatingSystem: android, targetCPU: arm64, version: 2.8.4 (stable) (Wed Jun 3 12:26:04 2020 +0200) on "android_arm64", _profilerMode: VM, _nativeZoneMemoryUsag... [ +22 ms] Sending to VM service: getIsolate({isolateId: isolates/3385430346204191}) [ +1 ms] Sending to VM service: _flutter.listViews({}) [ +13 ms] Result: {type: Isolate, id: isolates/3385430346204191, name: main, number: 3385430346204191, _originNumber: 3385430346204191, startTime: 1596900475985, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 0, avgCollectionPeriodMillis... [ +25 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x74bf851920, isolate: {type: @Isolate, fixedId: true, id: isolates/3385430346204191, name: main.dart$main-3385430346204191, number: 3385430346204191}}]} [ +33 ms] DevFS: Creating new filesystem on the device (null) [ +25 ms] Sending to VM service: _createDevFS({fsName: test_slider}) [ +88 ms] W/ple.test_slide(25583): Accessing hidden method Landroid/view/accessibility/AccessibilityNodeInfo;->getSourceNodeId()J (light greylist, reflection) [ +1 ms] W/ple.test_slide(25583): Accessing hidden method Landroid/view/accessibility/AccessibilityRecord;->getSourceNodeId()J (light greylist, reflection) [ +1 ms] W/ple.test_slide(25583): Accessing hidden field Landroid/view/accessibility/AccessibilityNodeInfo;->mChildNodeIds:Landroid/util/LongArray; (light greylist, reflection) [ +1 ms] W/ple.test_slide(25583): Accessing hidden method Landroid/util/LongArray;->get(I)J (light greylist, reflection) [ +80 ms] W/Activity(25583): Slow Operation: Activity com.example.test_slider/.MainActivity onCreate took 2523ms [ +31 ms] Result: {type: FileSystem, name: test_slider, uri: file:///data/user/0/com.example.test_slider/code_cache/test_sliderQNEISK/test_slider/} [ +10 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.test_slider/code_cache/test_sliderQNEISK/test_slider/) [ +2 ms] Updating assets [ +133 ms] Syncing files to device Redmi Note 7... [ +4 ms] Scanning asset files [ +27 ms] <- reset [ ] Compiling dart to kernel with 0 updated files [ +3 ms] <- recompile package:test_slider/main.dart f1522e08-2ba7-48bd-8a3d-d9d0c241c704 [ +26 ms] <- f1522e08-2ba7-48bd-8a3d-d9d0c241c704 [ +1 ms] W/Looper (25583): Slow Looper main: Activity com.example.test_slider/.MainActivity is 802ms late (wall=2725ms running=0ms ClientTransaction{ callbacks=[android.app.servertransaction.LaunchActivityItem] lifecycleRequest=android.app.servertransaction.ResumeActivityItem }) because of 1 msg, msg 1 took 906ms (h=android.app.ActivityThread$H w=110) [ +1 ms] I/OpenGLRenderer(25583): Initialized EGL, version 1.4 [ ] D/OpenGLRenderer(25583): Swap behavior 2 [ +127 ms] Updating files [ +203 ms] DevFS: Sync finished [ +2 ms] Syncing files to device Redmi Note 7... (completed in 397ms) [ +2 ms] Synced 0.9MB. [ +30 ms] Sending to VM service: _flutter.listViews({}) [ +12 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x74bf851920, isolate: {type: @Isolate, fixedId: true, id: isolates/3385430346204191, name: main.dart$main-3385430346204191, number: 3385430346204191}}]} [ +19 ms] <- accept [ +1 ms] Connected to _flutterView/0x74bf851920. [ +3 ms] Flutter run key commands. [ +28 ms] r Hot reload. [ +1 ms] R Hot restart. [ +1 ms] h Repeat this help message. [ +1 ms] d Detach (terminate "flutter run" but leave application running). [ +24 ms] c Clear the screen [ +1 ms] q Quit (terminate the application on the device). [ ] An Observatory debugger and profiler on Redmi Note 7 is available at: http://127.0.0.1:10308/GeiFK7pM9cQ=/ [+4605 ms] I/ple.test_slide(25583): ProcessProfilingInfo new_methods=564 is saved saved_to_disk=1 resolve_classes_delay=8000 ` ``` ``` ``` flutter analyze Analyzing test_slider... No issues found! (ran in 26.0s) ``` ``` ``` flutter doctor -v flutter doctor -v [√] Flutter (Channel stable, v1.17.5, on Microsoft Windows [versão 10.0.19041.388], locale pt-BR) • Flutter version 1.17.5 at C:\Flutter • Framework revision 8af6b2f038 (6 weeks ago), 2020-06-30 12:53:55 -0700 • Engine revision ee76268252 • Dart version 2.8.4 [√] Android toolchain - develop for Android devices (Android SDK version 29.0.2) • Android SDK at C:\Users\lucas\AppData\Local\Android\sdk • Platform android-29, build-tools 29.0.2 • Java binary at: C:\Program Files\Android\Android Studio2\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04) • All Android licenses accepted. [!] Android Studio (version 4.0) • Android Studio at C:\Program Files\Android\Android Studio2 X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04) [√] VS Code (version 1.47.3) • VS Code at C:\Users\lucas\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.13.2 [√] Connected device (1 available) • Redmi Note 7 • 11ea830e • android-arm64 • Android 9 (API 28) ! Doctor found issues in 1 category. ``` ```

My code:


import 'package:flutter/material.dart';

void main() => runApp(SliderExample());

class SliderExample extends StatefulWidget {
  @override
  _SliderExampleState createState() {
    return _SliderExampleState();
  }
}

class _SliderExampleState extends State {
  int _value = 6;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Slider Tutorial',
        home: Scaffold(
          body: Padding(
            padding: EdgeInsets.all(15.0),
            child: Center(
              child: Slider(
                  value: _value.toDouble(),
                  min: 1.0,
                  max: 10.0,
                  divisions: 10,
                  activeColor: Colors.red,
                  inactiveColor: Colors.black,
                  label:
                      'Set a value aaaaaaaaaaabbbbbbbbbbbbbbbbccccccccccccccccddddddddddddddddddddddeeeeeeeeeeeeee',
                  onChanged: (double newValue) {
                    setState(() {
                      _value = newValue.round();
                    });
                  },
                  semanticFormatterCallback: (double newValue) {
                    return '${newValue.round()} dollars';
                  }),
            ),
          ),
        ));
  }
}
pedromassangocode commented 3 years ago

Able to reproduce on latest stable channel.

flutter doctor -v ``` [✓] Flutter (Channel stable, 1.20.1, on Mac OS X 10.15.6 19G73, locale en) • Flutter version 1.20.1 at /Users/pedromassango/dev/SDKs/flutter_stable • Framework revision 2ae34518b8 (4 days ago), 2020-08-05 19:53:19 -0700 • Engine revision c8e3b94853 • Dart version 2.9.0 • Pub download mirror https://pub.flutter-io.cn • Flutter download mirror https://storage.flutter-io.cn [!] Android toolchain - develop for Android devices (Android SDK version 30.0.1) • Android SDK at /Users/pedromassango/Library/Android/sdk • Platform android-30, build-tools 30.0.1 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [✓] Xcode - develop for iOS and macOS (Xcode 11.6) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.6, Build version 11E708 • CocoaPods version 1.9.3 [!] Android Studio (version 4.0) • Android Studio at /Applications/Android Studio.app/Contents ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) [✓] IntelliJ IDEA Community Edition (version 2020.2) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 48.0.4 • Dart plugin version 202.6397.47 [✓] Connected device (1 available) • sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator) ! Doctor found issues in 2 categories. ```
HansMuller commented 3 years ago

CC @clocksmith

TahaTesser commented 3 years ago
code sample ```dart import 'dart:ffi'; import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Material App', theme: ThemeData.dark(), home: Home(), ); } } class Home extends StatefulWidget { @override _HomeState createState() => _HomeState(); } class _HomeState extends State { double _value = 0.0; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('Material App Bar'), ), body: Center( child: Container( child: Slider( value: _value, min: 0, max: 100, divisions: 10, focusNode: FocusNode(), label: 'test message is very very very very very very long - $_value', onChanged: (value) { setState( () { _value = value; }, ); }, ), ), ), floatingActionButton: FloatingActionButton( child: Icon(Icons.add), onPressed: () {}, ), ); } } ```
flutter doctor -v ```bash [✓] Flutter (Channel stable, 2.0.4, on macOS 11.2.3 20D91 darwin-x64, locale en-GB) • Flutter version 2.0.4 at /Users/tahatesser/Code/flutter_stable • Framework revision b1395592de (7 days ago), 2021-04-01 14:25:01 -0700 • Engine revision 2dce47073a • Dart version 2.12.2 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Volumes/Extreme/SDK • Platform android-30, build-tools 30.0.3 • ANDROID_HOME = /Volumes/Extreme/SDK • Java binary at: /Applications/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 /Volumes/Extreme/Xcode.app/Contents/Developer • Xcode 12.4, Build version 12D4e • 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 /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 1.8.0_242-release-1644-b3-6915495) [✓] VS Code (version 1.55.0) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.21.0 [✓] Connected device (3 available) • iPhone 12 (mobile) • 83060656-28E7-44CD-801E-B11EC3EC89BA • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator) • macOS (desktop) • macos • darwin-x64 • macOS 11.2.3 20D91 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.114 • No issues found! ``` ```bash [✓] Flutter (Channel master, 2.1.0-13.0.pre.524, on macOS 11.2.3 20D91 darwin-x64, locale en-GB) • Flutter version 2.1.0-13.0.pre.524 at /Users/tahatesser/Code/flutter_master • Framework revision 98a9618993 (7 hours ago), 2021-04-07 22:34:03 -0700 • Engine revision cf86823971 • Dart version 2.13.0 (build 2.13.0-213.0.dev) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Volumes/Extreme/SDK • Platform android-30, build-tools 30.0.3 • ANDROID_HOME = /Volumes/Extreme/SDK • Java binary at: /Applications/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 /Volumes/Extreme/Xcode.app/Contents/Developer • Xcode 12.4, Build version 12D4e • 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 /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 1.8.0_242-release-1644-b3-6915495) [✓] VS Code (version 1.55.0) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.21.0 [✓] Connected device (3 available) • iPhone 12 (mobile) • 83060656-28E7-44CD-801E-B11EC3EC89BA • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator) • macOS (desktop) • macos • darwin-x64 • macOS 11.2.3 20D91 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.114 • No issues found! ```
MohamedRisaldarTA commented 2 years ago

Hi All, do we have any update on this thread