Skip to content

TextFormField is auto-validating itself without updating its content #56363

Description

@pedromassango

TextFormField is auto-validating itself without updating its content causing the user to see red fields after he enter in a page containing +6 TextFormFields.

Steps to Reproduce

Run the following code:

import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  String _validateSample(String value) {
    if (value.trim().isEmpty) {
      return 'This field should not be empty';
    } else if (value.length < 4) {
      return 'Minimum allowed is 6 charaters';
    }
    return null;
  }

  @override
  Widget build(BuildContext context) {
    final style = TextStyle(color: Colors.green);

    return Scaffold(
        appBar: AppBar(
          title: Text(widget.title),
        ),
        body: Padding(
          padding: const EdgeInsets.all(32),
          child: Column(
            children: <Widget>[
              TextFormField(
                autovalidate: true,
                controller: TextEditingController(),
                keyboardType: TextInputType.number,
                decoration: InputDecoration(
                  hintText: 'With autovalidate: true',
                  border: OutlineInputBorder(
                      borderRadius: BorderRadius.circular(8)),
                ),
                validator: _validateSample,
              ),
              Padding(
                padding: const EdgeInsets.symmetric(vertical: 16),
                child: TextFormField(
                  autovalidate: true,
                  controller: TextEditingController(),
                  keyboardType: TextInputType.number,
                  decoration: InputDecoration(
                    hintText: 'With autovalidate: true',
                    border: OutlineInputBorder(
                        borderRadius: BorderRadius.circular(8)),
                  ),
                  validator: _validateSample,
                ),
              ),
              TextFormField(
                autovalidate: true,
                controller: TextEditingController(),
                keyboardType: TextInputType.number,
                decoration: InputDecoration(
                  hintText: 'With autovalidate: true',
                  border: OutlineInputBorder(
                      borderRadius: BorderRadius.circular(8)),
                ),
                validator: _validateSample,
              ),
              Padding(
                padding: const EdgeInsets.only(top: 16),
                child: TextFormField(
                  controller: TextEditingController(),
                  keyboardType: TextInputType.number,
                  decoration: InputDecoration(
                    hintText: 'With autovalidate: false',
                    border: OutlineInputBorder(
                        borderRadius: BorderRadius.circular(8)),
                  ),
                  validator: _validateSample,
                ),
              ),
            ],
          ),
        ));
  }
}
  1. Without changing TextField values note
  2. That the first three TextFields are showing validation error, and
  3. Note that the last TextField is not showing the validation error.

Expected results:

We expect that all TextFormFields don't show validation error since the user did not change its content.

Actual results:

We see that the Fields with autovalidate set to true are showing validation error without its content being changed.

Logs
C:\IdeaProjects\ftest>flutter run --verbose
[  +21 ms] executing: [C:\src\flutter\] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +69 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] f139b11009aeb8ed2a3a3aa8b0066e482709dde3
[        ] executing: [C:\src\flutter\] git describe --match v*.*.* --first-parent --long --tags
[ +244 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[   +2 ms] v1.12.13+hotfix.9-0-gf139b1100
[   +7 ms] executing: [C:\src\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[  +33 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\src\flutter\] git ls-remote --get-url origin
[  +32 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +68 ms] executing: [C:\src\flutter\] git rev-parse --abbrev-ref HEAD
[  +34 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +45 ms] Malformed line in ndk source.properties: "Pkg.UserSrc=false".
[   +2 ms] Malformed line in ndk source.properties: "Pkg.Revision=30.0.0".
[  +61 ms] executing: C:\src\android\platform-tools\adb.exe devices -l
[  +24 ms] Exit code 0 from: C:\src\android\platform-tools\adb.exe devices -l
[        ] List of devices attached
           192.168.68.101:5555    device product:vbox86p model:Galaxy_S9 device:vbox86p transport_id:5
[  +12 ms] C:\src\android\platform-tools\adb.exe -s 192.168.68.101:5555 shell getprop
[  +57 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +7 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.
[   +4 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.
[ +147 ms] Generating C:\IdeaProjects\ftest\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +46 ms] ro.hardware = vbox86
[        ] ro.build.characteristics = nosdcard
[  +56 ms] Launching lib\main.dart on Galaxy S9 in debug mode...
[   +7 ms] executing: C:\src\android\build-tools\29.0.3\aapt dump xmltree C:\IdeaProjects\ftest\build\app\outputs\apk\app.apk AndroidManifest.xml
[  +14 ms] Exit code 0 from: C:\src\android\build-tools\29.0.3\aapt dump xmltree C:\IdeaProjects\ftest\build\app\outputs\apk\app.apk
AndroidManifest.xml
[   +3 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.pedromassango.ftest" (Raw: "com.pedromassango.ftest")
               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)="ftest" (Raw: "ftest")
                 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.pedromassango.ftest.MainActivity" (Raw: "com.pedromassango.ftest.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: intent-filter (line=35)
                     E: action (line=36)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=38)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=45)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +8 ms] executing: C:\src\android\platform-tools\adb.exe -s 192.168.68.101:5555 shell -x logcat -v time -t 1
[  +50 ms] Exit code 0 from: C:\src\android\platform-tools\adb.exe -s 192.168.68.101:5555 shell -x logcat -v time -t 1
[        ] --------- beginning of main
           05-05 13:08:11.333 I/adbd    ( 5240): type=1400 audit(0.0:1583): avc: denied { ioctl } for path="/dev/pts/0" dev="devpts" ino=3
           ioctlcmd=540e scontext=u:r:init:s0 tcontext=u:object_r:devpts:s0 tclass=chr_file permissive=1
[   +6 ms] executing: C:\src\android\platform-tools\adb.exe version
[   +1 ms] executing: C:\src\android\platform-tools\adb.exe -s 192.168.68.101:5555 logcat -v time -T 05-05 13:08:11.333
[  +35 ms] Android Debug Bridge version 1.0.41
           Version 30.0.0-6374843
           Installed as C:\src\android\platform-tools\adb.exe
[   +4 ms] executing: C:\src\android\platform-tools\adb.exe start-server
[  +25 ms] Building APK
[  +21 ms] Running Gradle task 'assembleDebug'...
[   +3 ms] gradle.properties already sets `android.enableR8`
[   +7 ms] Using gradle from C:\IdeaProjects\ftest\android\gradlew.bat.
[   +4 ms] executing: [C:\IdeaProjects\ftest\android\] C:\IdeaProjects\ftest\android\gradlew.bat -Pverbose=true
-Ptarget=C:\IdeaProjects\ftest\lib\main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-x86
assembleDebug
[+6414 ms] > Task :app:compileFlutterBuildDebug
[        ] [  +18 ms] executing: [C:\src\flutter\] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +55 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] f139b11009aeb8ed2a3a3aa8b0066e482709dde3
[        ] [        ] executing: [C:\src\flutter\] git describe --match v*.*.* --first-parent --long --tags
[        ] [  +73 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] [        ] v1.12.13+hotfix.9-0-gf139b1100
[        ] [   +7 ms] executing: [C:\src\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [  +33 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [C:\src\flutter\] git ls-remote --get-url origin
[        ] [  +29 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +68 ms] executing: [C:\src\flutter\] git rev-parse --abbrev-ref HEAD
[        ] [  +36 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[   +1 ms] [  +19 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] 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.
[        ] [   +3 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.
[   +1 ms] [        ] 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.
[   +1 ms] [  +77 ms] Initializing file store
[   +1 ms] [  +14 ms] Done initializing file store
[ +460 ms] [+1333 ms] kernel_snapshot: Starting due to {InvalidatedReason.inputChanged}
[   +1 ms] [  +11 ms] C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe
C:\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\src\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:\IdeaProjects\ftest\.packages --output-dill
C:\IdeaProjects\ftest\.dart_tool\flutter_build\eb3ce4e56593fe36d8eeaccfe6dc95ab\app.dill --depfile
C:\IdeaProjects\ftest\.dart_tool\flutter_build\eb3ce4e56593fe36d8eeaccfe6dc95ab\kernel_snapshot.d package:ftest/main.dart
[+5699 ms] [+5666 ms] kernel_snapshot: Complete
[ +298 ms] [ +351 ms] debug_android_application: Starting due to {InvalidatedReason.inputChanged, InvalidatedReason.outputMissing}
[ +201 ms] [ +155 ms] debug_android_application: Complete
[   +1 ms] [  +37 ms] Persisting file store
[        ] [  +13 ms] Done persisting file store
[        ] [   +3 ms] build succeeded.
[        ] [  +20 ms] "flutter assemble" took 7,745ms.
[ +207 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[   +6 ms] > Task :app:preBuild UP-TO-DATE
[   +1 ms] > Task :app:preDebugBuild UP-TO-DATE
[   +1 ms] > Task :app:checkDebugManifest UP-TO-DATE
[   +1 ms] > Task :app:generateDebugBuildConfig UP-TO-DATE
[  +78 ms] > Task :app:compileDebugRenderscript NO-SOURCE
[   +1 ms] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:cleanMergeDebugAssets
[   +1 ms] > Task :app:mergeDebugShaders UP-TO-DATE
[   +1 ms] > Task :app:compileDebugShaders UP-TO-DATE
[   +1 ms] > Task :app:generateDebugAssets UP-TO-DATE
[  +93 ms] > Task :app:mergeDebugAssets
[ +400 ms] > Task :app:copyFlutterAssetsDebug
[   +1 ms] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[   +1 ms] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :app:mergeDebugResources UP-TO-DATE
[  +95 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[   +1 ms] > Task :app:processDebugManifest UP-TO-DATE
[   +1 ms] > Task :app:processDebugResources UP-TO-DATE
[   +1 ms] > Task :app:compileDebugKotlin UP-TO-DATE
[   +1 ms] > Task :app:javaPreCompileDebug UP-TO-DATE
[  +96 ms] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[   +4 ms] > Task :app:compileDebugSources UP-TO-DATE
[   +1 ms] > Task :app:processDebugJavaRes NO-SOURCE
[   +1 ms] > Task :app:mergeDebugJavaResource UP-TO-DATE
[   +1 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[  +89 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[   +1 ms] > Task :app:mergeExtDexDebug UP-TO-DATE
[   +1 ms] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[  +96 ms] > Task :app:mergeDexDebug UP-TO-DATE
[ +101 ms] > Task :app:validateSigningDebug UP-TO-DATE
[   +2 ms] > Task :app:signingConfigWriterDebug UP-TO-DATE
[   +1 ms] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[   +1 ms] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[+1894 ms] > Task :app:packageDebug
[   +1 ms] > Task :app:assembleDebug
[  +49 ms] BUILD SUCCESSFUL in 16s
[   +1 ms] 30 actionable tasks: 5 executed, 25 up-to-date
[ +364 ms] Running Gradle task 'assembleDebug'... (completed in 16.7s)
[  +22 ms] calculateSha: LocalDirectory: 'C:\IdeaProjects\ftest\build\app\outputs\apk'/app.apk
[  +59 ms] calculateSha: reading file took 57us
[ +439 ms] calculateSha: computing sha took 438us
[   +8 ms] √ Built build\app\outputs\apk\debug\app-debug.apk.
[   +6 ms] executing: C:\src\android\build-tools\29.0.3\aapt dump xmltree C:\IdeaProjects\ftest\build\app\outputs\apk\app.apk AndroidManifest.xml
[  +25 ms] Exit code 0 from: C:\src\android\build-tools\29.0.3\aapt dump xmltree C:\IdeaProjects\ftest\build\app\outputs\apk\app.apk
AndroidManifest.xml
[   +1 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.pedromassango.ftest" (Raw: "com.pedromassango.ftest")
               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)="ftest" (Raw: "ftest")
                 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.pedromassango.ftest.MainActivity" (Raw: "com.pedromassango.ftest.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: intent-filter (line=35)
                     E: action (line=36)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=38)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=45)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +2 ms] Stopping app 'app.apk' on Galaxy S9.
[   +1 ms] executing: C:\src\android\platform-tools\adb.exe -s 192.168.68.101:5555 shell am force-stop com.pedromassango.ftest
[ +124 ms] executing: C:\src\android\platform-tools\adb.exe -s 192.168.68.101:5555 shell pm list packages com.pedromassango.ftest
[ +644 ms] D/FlutterView( 2384): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@6a69966
[  +41 ms] package:com.pedromassango.ftest
[   +8 ms] executing: C:\src\android\platform-tools\adb.exe -s 192.168.68.101:5555 shell cat /data/local/tmp/sky.com.pedromassango.ftest.sha1
[  +64 ms] 7474c4fae1cc3f45bc203dd0c1061020024dc110
[   +2 ms] Installing APK.
[   +3 ms] executing: C:\src\android\platform-tools\adb.exe version
[  +35 ms] Android Debug Bridge version 1.0.41
           Version 30.0.0-6374843
           Installed as C:\src\android\platform-tools\adb.exe
[   +2 ms] executing: C:\src\android\platform-tools\adb.exe start-server
[  +47 ms] Installing build\app\outputs\apk\app.apk...
[   +2 ms] executing: C:\src\android\platform-tools\adb.exe -s 192.168.68.101:5555 install -t -r C:\IdeaProjects\ftest\build\app\outputs\apk\app.apk
[+9372 ms] Performing Streamed Install
                    Success
[   +2 ms] Installing build\app\outputs\apk\app.apk... (completed in 9.4s)
[   +2 ms] executing: C:\src\android\platform-tools\adb.exe -s 192.168.68.101:5555 shell echo -n 5a37e1f4f35d114ea524930fd8f6cebd5361dab7 >
/data/local/tmp/sky.com.pedromassango.ftest.sha1
[  +62 ms] Galaxy S9 startApp
[   +4 ms] executing: C:\src\android\platform-tools\adb.exe -s 192.168.68.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.pedromassango.ftest/com.pedromassango.ftest.MainActivity
[ +133 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.pedromassango.ftest/.MainActivity (has extras) }
[   +1 ms] Waiting for observatory port to be available...
[ +453 ms] D/FlutterActivity( 5371): Using the launch theme as normal theme.
[   +6 ms] D/FlutterActivityAndFragmentDelegate( 5371): Setting up FlutterEngine.
[   +1 ms] D/FlutterActivityAndFragmentDelegate( 5371): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this
FlutterFragment.
[+1586 ms] D/FlutterActivityAndFragmentDelegate( 5371): Attaching FlutterEngine to the Activity that owns this Fragment.
[  +18 ms] Observatory URL on device: http://127.0.0.1:46848/FyL_hgMSXVM=/
[   +7 ms] executing: C:\src\android\platform-tools\adb.exe -s 192.168.68.101:5555 forward tcp:0 tcp:46848
[  +78 ms] 52879
[   +3 ms] Forwarded host port 52879 to device port 46848 for Observatory
[  +26 ms] Connecting to service protocol: http://127.0.0.1:52879/FyL_hgMSXVM=/
[  +37 ms] D/FlutterView( 5371): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@6a69966
[   +2 ms] D/FlutterActivityAndFragmentDelegate( 5371): Executing Dart entrypoint: main, and sending initial route: /
[ +458 ms] Successfully connected to service protocol: http://127.0.0.1:52879/FyL_hgMSXVM=/
[   +5 ms] Sending to VM service: getVM({})
[  +15 ms] Result: {type: VM, name: vm, architectureBits: 32, hostCPU: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz, operatingSystem: android, targetCPU:
ia32, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_ia32", _profilerMode: VM, _nativeZoneMemoryUsage: ...
[   +8 ms] Sending to VM service: getIsolate({isolateId: isolates/3732832802242019})
[   +6 ms] Sending to VM service: _flutter.listViews({})
[  +37 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xe093f390, isolate: {type: @Isolate, fixedId: true, id:
isolates/3732832802242019, name: main.dart$main-3732832802242019, number: 3732832802242019}}]}
[  +17 ms] DevFS: Creating new filesystem on the device (null)
[   +1 ms] Sending to VM service: _createDevFS({fsName: ftest})
[ +184 ms] Result: {type: FileSystem, name: ftest, uri: file:///data/user/0/com.pedromassango.ftest/code_cache/ftestJRQERP/ftest/}
[   +1 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.pedromassango.ftest/code_cache/ftestJRQERP/ftest/)
[   +2 ms] Updating assets
[ +170 ms] Syncing files to device Galaxy S9...
[   +6 ms] Scanning asset files
[   +5 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[  +25 ms] C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe C:\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot
--sdk-root C:\src\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter
-Ddart.developer.causal_async_stacks=true --output-dill
C:\Users\PEDROM~1\AppData\Local\Temp\flutter_tool.7708ccc4-8ed1-11ea-8859-f439092ec75d\app.dill --packages C:\IdeaProjects\ftest\.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
[   +9 ms] E/eglCodecCommon( 5371): glUtilsParamSize: unknow param 0x000082da
[   +1 ms] E/eglCodecCommon( 5371): glUtilsParamSize: unknow param 0x00008cdf
[   +1 ms] E/eglCodecCommon( 5371): glUtilsParamSize: unknow param 0x00008824
[  +34 ms] Result: {type: Isolate, id: isolates/3732832802242019, name: main, number: 3732832802242019, _originNumber: 3732832802242019, startTime:
1588684121269, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 2, avgCollectionPeriodMillis...
[  +36 ms] <- compile package:ftest/main.dart
[ +285 ms] D/        ( 5371): HostConnection::get() New Host Connection established 0xe32232c0, tid 5431
[  +40 ms] D/EGL_emulation( 5371): eglCreateContext: 0xe3205120: maj 3 min 1 rcv 4
[ +234 ms] E/eglCodecCommon( 5371): glUtilsParamSize: unknow param 0x000082da
[   +3 ms] E/eglCodecCommon( 5371): glUtilsParamSize: unknow param 0x00008cdf
[   +2 ms] E/eglCodecCommon( 5371): glUtilsParamSize: unknow param 0x00008824
[  +17 ms] E/eglCodecCommon( 5371): glUtilsParamSize: unknow param 0x000087fe
[+2205 ms] E/eglCodecCommon( 5371): glUtilsParamSize: unknow param 0x00008741
[  +21 ms] E/eglCodecCommon( 5371): glUtilsParamSize: unknow param 0x00008741
[  +27 ms] D/FlutterView( 2384): Detaching from a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@6a69966
[  +38 ms] I/1.io    ( 5371): type=1400 audit(0.0:1764): avc: denied { rename } for
name="CAZAAAACAAAAAAIAAAABGAABAAOAAFAACUAAGAH7777777777777777777777777EAAAGAAAAAAAAAAAAAAAEAAAAAYAAWAA.temp" dev="sdb3" ino=89658
scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0:c512,c768 tclass=file permissive=1
[  +17 ms] E/eglCodecCommon( 5371): glUtilsParamSize: unknow param 0x00008741
[ +532 ms] I/chatty  ( 5371): uid=10009(u0_a9) 1.gpu identical 18 lines
[   +2 ms] E/eglCodecCommon( 5371): glUtilsParamSize: unknow param 0x00008741
[+3975 ms] Updating files
[ +134 ms] DevFS: Sync finished
[   +1 ms] Syncing files to device Galaxy S9... (completed in 7,660ms, longer than expected)
[   +1 ms] Synced 0.9MB.
[   +1 ms] Sending to VM service: _flutter.listViews({})
[   +4 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xe093f390, isolate: {type: @Isolate, fixedId: true, id:
isolates/3732832802242019, name: main.dart$main-3732832802242019, number: 3732832802242019}}]}
[   +1 ms] <- accept
[        ] Connected to _flutterView/0xe093f390.
[   +3 ms] �  To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
[   +2 ms] An Observatory debugger and profiler on Galaxy S9 is available at: http://127.0.0.1:52879/FyL_hgMSXVM=/
[   +1 ms] For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
C:\IdeaProjects\ftest>flutter analyze
Malformed line in ndk source.properties: "Pkg.UserSrc=false".
Malformed line in ndk source.properties: "Pkg.Revision=30.0.0".
Analyzing ftest...
No issues found! (ran in 7.5s)
C:\IdeaProjects\ftest>flutter doctor -v
Malformed line in ndk source.properties: "Pkg.UserSrc=false".
Malformed line in ndk source.properties: "Pkg.Revision=30.0.0".
[√] Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft Windows [Version 10.0.18362.778], locale en-US)
    • Flutter version 1.12.13+hotfix.9 at C:\src\flutter
    • Framework revision f139b11009 (5 weeks ago), 2020-03-30 13:57:30 -0700
    • Engine revision af51afceb8
    • Dart version 2.7.2


[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at C:\src\android
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = C:\src\android
    • Java binary at: C:\Program Files\Java\jdk1.8.0_241\bin\java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
    • All Android licenses accepted.

[√] Android Studio (version 3.6)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[!] Android Studio (version 4.1)
    • Android Studio at C:\Users\Pedro Massango\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-1\193.6423924
    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_242-release-1644-b01)

[!] Android Studio
    • Android Studio at C:\Program
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    X android-studio-dir = C:\Program
    X Android Studio not found at C:\Program
    • Try updating or re-installing Android Studio.
    • Consider removing your android-studio-dir setting by running:
      flutter config --android-studio-dir=

[√] IntelliJ IDEA Community Edition (version 2019.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.1.1
    • Flutter plugin version 45.0.2
    • Dart plugin version 193.6911.31

[√] VS Code (version 1.44.1)
    • VS Code at C:\Users\Pedro Massango\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.9.1

[√] Connected device (1 available)
    • Galaxy S9 • 192.168.68.101:5555 • android-x86 • Android 8.0.0 (API 26)

! Doctor found issues in 2 categories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: text inputEntering text in a text field or keyboard related problemsf: material designflutter/packages/flutter/material repository.found in release: 1.18Occurs in 1.18frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions