Repository: flutter
Issue: Ink.image fitWidth property not working with flexible parents
Labels: framework,f: material design,a: images,has reproducible steps,found in release: 3.0,found in release: 3.1,team-design,triaged-design

## Steps to Reproduce

1. Create an `Ink.image` inside a `Column`
2. Set width property to `double.infinity`
3. Set fit to `BoxFit.fitWidth`
4. See that it doesn't change the height of the image, only keep it as non-declared (0)

**Expected results:** 

I would like to see the `fitWidth` property working exactly as in any image widget.

**Actual results:** 

I see the height not fitting to the width, different from what happens in any image widget.

## Code samples and investigation

### Error sample (with column)

<img src="https://user-images.githubusercontent.com/7780770/170075443-61e85de9-501a-4990-b1d6-9826b29fb382.png" height="400px"> <img src="https://user-images.githubusercontent.com/7780770/170075461-84acfa2b-a3e6-4ed3-b0f6-8074c6baf275.png" height="400px">

First image: no height set
Second image: height set as 40 (as mentioned in the code) [works]

```dart
Scaffold(
  body: Column(
    children: [
      Ink.image(
        fit: BoxFit.fitWidth,
        width: double.infinity,
        // height: 40, // notice that if you uncomment this, it will work
        image: const NetworkImage(
          "https://github.com/flutter/website/raw/archived-master/src/_assets/image/flutter-lockup-bg.jpg?raw=true",
        ),
      ),
    ],
  ),
);
```

### Working sample (without column)

<img src="https://user-images.githubusercontent.com/7780770/170077076-6c15c282-4a8a-46ab-be10-933813002226.png" height="400px">

```dart
Scaffold(
  body: Ink.image(
    fit: BoxFit.fitWidth,
    width: double.infinity,
    image: const NetworkImage(
      "https://github.com/flutter/website/raw/archived-master/src/_assets/image/flutter-lockup-bg.jpg?raw=true",
    ),
  ),
);
```

### Image with all same properties inside column sample (works as expected)

<img src="https://user-images.githubusercontent.com/7780770/170077148-cb5b6c7a-01c8-4e8c-b6d3-94ff4b8cb6a8.png" height="400px">

```dart
Scaffold(
  body: Column(
    children: [
      Image.network(
        "https://github.com/flutter/website/raw/archived-master/src/_assets/image/flutter-lockup-bg.jpg?raw=true",
        fit: BoxFit.fitWidth,
        width: double.infinity,
      ),
    ],
  ),
);
```

Please notice that the `Ink.image` is used with the `InkWell`, but I'm ommiting it here to be more clear.

### Thoughts

Seems that `Ink.image` is having problems to deal with dynamic size parents.

<details>
  <summary>Logs</summary>

  All logs are from `Ink.image` and `Column` example.

```
[  +47 ms] executing: [C:\Users\enzodtz\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +159 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] db747aa1331bd95bc9b3874c842261ca2d302cd5
[        ] executing: [C:\Users\enzodtz\flutter/] git tag --points-at db747aa1331bd95bc9b3874c842261ca2d302cd5
[  +17 ms] Exit code 0 from: git tag --points-at db747aa1331bd95bc9b3874c842261ca2d302cd5
[        ] 2.10.1
[   +5 ms] executing: [C:\Users\enzodtz\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +12 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\Users\enzodtz\flutter/] git ls-remote --get-url origin
[   +9 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +62 ms] executing: [C:\Users\enzodtz\flutter/] git rev-parse --abbrev-ref HEAD
[  +12 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +43 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.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' 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.
[  +40 ms] executing: C:\Users\enzodtz\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +23 ms] List of devices attached
           192.168.40.101:5555    device product:vbox86p model:Google_Pixel_3 device:vbox86p transport_id:1       
[   +4 ms] C:\Users\enzodtz\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.40.101:5555 shell getprop
[  +26 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.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' 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.
[  +87 ms] Skipping pub get: version match.
[  +18 ms] Found plugin flutter_secure_storage at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage-5.0.2\
[   +5 ms] Found plugin flutter_secure_storage_linux at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage_linux-1.1.0\
[   +1 ms] Found plugin flutter_secure_storage_macos at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage_macos-1.1.0\
[   +2 ms] Found plugin flutter_secure_storage_web at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage_web-1.0.2\
[   +1 ms] Found plugin flutter_secure_storage_windows at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage_windows-1.1.2\
[  +43 ms] Found plugin flutter_secure_storage at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage-5.0.2\
[   +1 ms] Found plugin flutter_secure_storage_linux at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage_linux-1.1.0\
[        ] Found plugin flutter_secure_storage_macos at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage_macos-1.1.0\
[   +1 ms] Found plugin flutter_secure_storage_web at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage_web-1.0.2\
[   +1 ms] Found plugin flutter_secure_storage_windows at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage_windows-1.1.2\
[  +18 ms] Generating
C:\Users\enzodtz\pet_home_app\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +38 ms] ro.hardware = vbox86
[        ] ro.build.characteristics = nosdcard
[  +27 ms] Initializing file store
[   +8 ms] Skipping target: gen_localizations
[   +3 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs
have updated contents: C:\Users\enzodtz\pet_home_app\.dart_tool\package_config_subset}
[   +9 ms] Found plugin flutter_secure_storage at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage-5.0.2\
[   +1 ms] Found plugin flutter_secure_storage_linux at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage_linux-1.1.0\
[        ] Found plugin flutter_secure_storage_macos at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage_macos-1.1.0\
[   +1 ms] Found plugin flutter_secure_storage_web at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage_web-1.0.2\
[        ] Found plugin flutter_secure_storage_windows at
C:\Users\enzodtz\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_secure_storage_windows-1.1.2\
[  +11 ms] gen_dart_plugin_registrant: Complete
[   +1 ms] Skipping target: _composite
[   +1 ms] complete
[   +5 ms] Launching lib\main.dart on Google Pixel 3 in debug mode...
[   +3 ms] C:\Users\enzodtz\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\enzodtz\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\enzodtz\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter    
--debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill
C:\Users\enzodtz\AppData\Local\Temp\flutter_tools.8a2591d\flutter_tool.bb27db2f\app.dill --packages
C:\Users\enzodtz\pet_home_app\.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\c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy[   +6 ms] executing: C:\Users\enzodtz\AppData\Local\Android\sdk\build-tools\32.1.0-rc1\aapt dump xmltree
C:\Users\enzodtz\pet_home_app\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[   +8 ms] Exit code 0 from: C:\Users\enzodtz\AppData\Local\Android\sdk\build-tools\32.1.0-rc1\aapt dump xmltree  
C:\Users\enzodtz\pet_home_app\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)0x1f
               A: android:compileSdkVersionCodename(0x01010573)="12" (Raw: "12")
               A: package="com.example.pet_home_app" (Raw: "com.example.pet_home_app")
               A: platformBuildVersionCode=(type 0x10)0x1f
               A: platformBuildVersionName=(type 0x10)0xc
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x12
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1f
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")   
               E: application (line=16)
                 A: android:label(0x01010001)="pet_home_app" (Raw: "pet_home_app")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="android.app.Application" (Raw: "android.app.Application")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:        
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=22)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.pet_home_app.MainActivity" (Raw:
                   "com.example.pet_home_app.MainActivity")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   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=37)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw:
                     "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: intent-filter (line=41)
                     E: action (line=42)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw:
                       "android.intent.action.MAIN")
                     E: category (line=44)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw:
                       "android.intent.category.LAUNCHER")
                 E: meta-data (line=51)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: uses-library (line=55)
                   A: android:name(0x01010003)="androidx.window.extensions" (Raw: "androidx.window.extensions")   
                   A: android:required(0x0101028e)=(type 0x12)0x0
                 E: uses-library (line=58)
                   A: android:name(0x01010003)="androidx.window.sidecar" (Raw: "androidx.window.sidecar")
                   A: android:required(0x0101028e)=(type 0x12)0x0
[   +8 ms] executing: C:\Users\enzodtz\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.40.101:5555    
shell -x logcat -v time -t 1
[  +13 ms] <- compile package:pet_home_app/main.dart
[  +32 ms] --------- beginning of main
           05-24 11:29:00.007 D/hwcomposer(  296): hw_composer sent 24 syncs in 60s
[  +13 ms] executing: C:\Users\enzodtz\AppData\Local\Android\sdk\platform-tools\adb.exe version
[  +17 ms] Android Debug Bridge version 1.0.41
           Version 32.0.0-8006631
           Installed as C:\Users\enzodtz\AppData\Local\Android\sdk\platform-tools\adb.exe
[   +2 ms] executing: C:\Users\enzodtz\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[  +18 ms] Building APK
[  +10 ms] Running Gradle task 'assembleDebug'...
[   +3 ms] Using gradle from C:\Users\enzodtz\pet_home_app\android\gradlew.bat.
[   +9 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[  +87 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[        ] openjdk version "11.0.11" 2021-04-20
           OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
           OpenJDK 64-Bit Server VM (build 11.0.11+9-b60-7590822, mixed mode)
[   +1 ms] executing: [C:\Users\enzodtz\pet_home_app\android/] C:\Users\enzodtz\pet_home_app\android\gradlew.bat  
-Pverbose=true -Ptarget-platform=android-x86 -Ptarget=C:\Users\enzodtz\pet_home_app\lib\main.dart
-Pbase-application-name=android.app.Application -Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==
-Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false
-Pfilesystem-scheme=org-dartlang-root assembleDebug
[ +484 ms] Welcome to Gradle 6.7!
[        ] Here are the highlights of this release:
[        ]  - File system watching is ready for production use
[        ]  - Declare the version of Java your build requires
[        ]  - Java 15 support
[        ] For more details see https://docs.gradle.org/6.7/release-notes.html
[+2589 ms] > Task :app:compileFlutterBuildDebug
[        ] [  +44 ms] executing: [C:\Users\enzodtz\flutter/] git -c log.showSignature=false log -n 1
--pretty=format:%H
[        ] [ +158 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] db747aa1331bd95bc9b3874c842261ca2d302cd5
[        ] [        ] executing: [C:\Users\enzodtz\flutter/] git tag --points-at
db747aa1331bd95bc9b3874c842261ca2d302cd5
[        ] [  +16 ms] Exit code 0 from: git tag --points-at db747aa1331bd95bc9b3874c842261ca2d302cd5
[        ] [        ] 2.10.1
[        ] [   +5 ms] executing: [C:\Users\enzodtz\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [  +11 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [C:\Users\enzodtz\flutter/] git ls-remote --get-url origin
[        ] [   +9 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +36 ms] executing: [C:\Users\enzodtz\flutter/] git rev-parse --abbrev-ref HEAD
[        ] [  +11 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +39 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.
[        ] [   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] [        ] 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.
[        ] [        ] 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] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [   +2 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 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' 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.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[        ] [  +56 ms] Initializing file store
[        ] [  +12 ms] Done initializing file store
[        ] [  +27 ms] Skipping target: gen_localizations
[        ] [   +7 ms] Skipping target: gen_dart_plugin_registrant
[   +1 ms] [ +415 ms] kernel_snapshot: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs  
have updated contents:
C:\Users\enzodtz\pet_home_app\lib\main.dart,C:\Users\enzodtz\pet_home_app\lib\screens\home_screen\widgets\home_app_bar.dart,C:\Users\enzodtz\pet_home_app\lib\screens\home_screen\widgets\pets_list.dart,C:\Users\enzodtz\pet_home_app\lib\screens\home_screen\widgets\pets_list_item.dart,C:\Users\enzodtz\pet_home_app\lib\screens\login\widgets\login_app_bar.dart,C:\Users\enzodtz\pet_home_app\lib\utils\capitalize_extension.dart}
[   +1 ms] [   +8 ms] C:\Users\enzodtz\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\enzodtz\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\enzodtz\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter
--no-print-incremental-dependencies -DFLUTTER_WEB_AUTO_DETECT=true -Ddart.vm.profile=false -Ddart.vm.product=false--enable-asserts --track-widget-creation --no-link-platform --packages
C:\Users\enzodtz\pet_home_app\.dart_tool\package_config.json --output-dill
C:\Users\enzodtz\pet_home_app\.dart_tool\flutter_build\d73c98172d3c595106d248aafef235c4\app.dill --depfile        
C:\Users\enzodtz\pet_home_app\.dart_tool\flutter_build\d73c98172d3c595106d248aafef235c4\kernel_snapshot.d
package:pet_home_app/main.dart
[+6077 ms] [+6751 ms] kernel_snapshot: Complete
[ +400 ms] [ +395 ms] debug_android_application: Starting due to {InvalidatedReasonKind.inputChanged: The
following inputs have updated contents:
C:\Users\enzodtz\pet_home_app\.dart_tool\flutter_build\d73c98172d3c595106d248aafef235c4\app.dill}
[ +201 ms] [ +146 ms] debug_android_application: Complete
[ +198 ms] [ +212 ms] Persisting file store
[        ] [   +6 ms] Done persisting file store
[        ] [   +3 ms] build succeeded.
[        ] [   +8 ms] "flutter assemble" took 8.141ms.
[  +98 ms] [ +139 ms] ensureAnalyticsSent: 136ms
[        ] [        ] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +199 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :flutter_secure_storage:preBuild UP-TO-DATE
[        ] > Task :flutter_secure_storage:preDebugBuild UP-TO-DATE
[        ] > Task :flutter_secure_storage:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :flutter_secure_storage:packageDebugRenderscript NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :flutter_secure_storage:writeDebugAarMetadata 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 :flutter_secure_storage:mergeDebugShaders UP-TO-DATE
[        ] > Task :flutter_secure_storage:compileDebugShaders NO-SOURCE
[        ] > Task :flutter_secure_storage:generateDebugAssets UP-TO-DATE
[        ] > Task :flutter_secure_storage:packageDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +293 ms] > Task :app:copyFlutterAssetsDebug
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :flutter_secure_storage:compileDebugRenderscript NO-SOURCE
[        ] > Task :flutter_secure_storage:generateDebugResValues UP-TO-DATE
[        ] > Task :flutter_secure_storage:generateDebugResources UP-TO-DATE
[        ] > Task :flutter_secure_storage:packageDebugResources UP-TO-DATE
[        ] > Task :app:mergeDebugResources UP-TO-DATE
[        ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :flutter_secure_storage:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :flutter_secure_storage:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugMainManifest UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugManifestForPackage UP-TO-DATE
[        ] > Task :flutter_secure_storage:compileDebugLibraryResources UP-TO-DATE
[        ] > Task :flutter_secure_storage:parseDebugLocalResources UP-TO-DATE
[        ] > Task :flutter_secure_storage:generateDebugRFile UP-TO-DATE
[  +94 ms] > Task :app:processDebugResources UP-TO-DATE
[   +1 ms] > Task :flutter_secure_storage:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :flutter_secure_storage:javaPreCompileDebug UP-TO-DATE
[        ] > Task :flutter_secure_storage:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :flutter_secure_storage:bundleLibCompileToJarDebug 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:processDebugJavaRes NO-SOURCE
[        ] > Task :flutter_secure_storage:processDebugJavaRes NO-SOURCE
[        ] > Task :flutter_secure_storage:bundleLibResDebug NO-SOURCE
[  +94 ms] > Task :app:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :flutter_secure_storage:bundleLibRuntimeToJarDebug UP-TO-DATE
[        ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[        ] > Task :app:dexBuilderDebug UP-TO-DATE
[  +98 ms] > 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 :flutter_secure_storage:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :flutter_secure_storage:mergeDebugNativeLibs NO-SOURCE
[        ] > Task :flutter_secure_storage:stripDebugDebugSymbols NO-SOURCE
[        ] > Task :flutter_secure_storage:copyDebugJniLibsProjectOnly UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[        ] > Task :flutter_secure_storage:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE
[        ] > Task :flutter_secure_storage:extractDebugAnnotations UP-TO-DATE
[        ] > Task :flutter_secure_storage:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :flutter_secure_storage:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :flutter_secure_storage:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :flutter_secure_storage:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :flutter_secure_storage:syncDebugLibJars UP-TO-DATE
[        ] > Task :flutter_secure_storage:bundleDebugAar UP-TO-DATE
[        ] > Task :flutter_secure_storage:compileDebugSources UP-TO-DATE
[        ] > Task :flutter_secure_storage:assembleDebug UP-TO-DATE
[ +392 ms] > Task :app:compressDebugAssets
[ +401 ms] > Task :app:packageDebug
[ +149 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 11s
[        ] 57 actionable tasks: 7 executed, 50 up-to-date
[ +351 ms] Running Gradle task 'assembleDebug'... (completed in 12,3s)
[  +33 ms] calculateSha: LocalDirectory: 'C:\Users\enzodtz\pet_home_app\build\app\outputs\flutter-apk'/app.apk
[ +418 ms] √  Built build\app\outputs\flutter-apk\app-debug.apk.
[   +2 ms] executing: C:\Users\enzodtz\AppData\Local\Android\sdk\build-tools\32.1.0-rc1\aapt dump xmltree
C:\Users\enzodtz\pet_home_app\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[   +9 ms] Exit code 0 from: C:\Users\enzodtz\AppData\Local\Android\sdk\build-tools\32.1.0-rc1\aapt dump xmltree
C:\Users\enzodtz\pet_home_app\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)0x1f
               A: android:compileSdkVersionCodename(0x01010573)="12" (Raw: "12")
               A: package="com.example.pet_home_app" (Raw: "com.example.pet_home_app")
               A: platformBuildVersionCode=(type 0x10)0x1f
               A: platformBuildVersionName=(type 0x10)0xc
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x12
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1f
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")   
               E: application (line=16)
                 A: android:label(0x01010001)="pet_home_app" (Raw: "pet_home_app")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="android.app.Application" (Raw: "android.app.Application")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:        
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=22)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.pet_home_app.MainActivity" (Raw:
                   "com.example.pet_home_app.MainActivity")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   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=37)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw:
                     "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: intent-filter (line=41)
                     E: action (line=42)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw:
                       "android.intent.action.MAIN")
                     E: category (line=44)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw:
                       "android.intent.category.LAUNCHER")
                 E: meta-data (line=51)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: uses-library (line=55)
                   A: android:name(0x01010003)="androidx.window.extensions" (Raw: "androidx.window.extensions")   
                   A: android:required(0x0101028e)=(type 0x12)0x0
                 E: uses-library (line=58)
                   A: android:name(0x01010003)="androidx.window.sidecar" (Raw: "androidx.window.sidecar")
                   A: android:required(0x0101028e)=(type 0x12)0x0
[   +4 ms] Stopping app 'app.apk' on Google Pixel 3.
[        ] executing: C:\Users\enzodtz\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.40.101:5555    
shell am force-stop com.example.pet_home_app
[  +22 ms] executing: C:\Users\enzodtz\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.40.101:5555
shell pm list packages com.example.pet_home_app
[  +21 ms] package:com.example.pet_home_app
[   +1 ms] executing: C:\Users\enzodtz\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.40.101:5555
shell cat /data/local/tmp/sky.com.example.pet_home_app.sha1
[  +16 ms] a641d911e8956434055966bd955b3c13cd06d665
[        ] Installing APK.
[        ] Installing build\app\outputs\flutter-apk\app.apk...
[        ] executing: C:\Users\enzodtz\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.40.101:5555    
install -t -r C:\Users\enzodtz\pet_home_app\build\app\outputs\flutter-apk\app.apk
[ +607 ms] Performing Streamed Install
                    Success
[   +1 ms] Installing build\app\outputs\flutter-apk\app.apk... (completed in 608ms)
[        ] executing: C:\Users\enzodtz\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.40.101:5555    
shell echo -n fcc0c8af06837a93d6339705ce8d0aebc7230a2e > /data/local/tmp/sky.com.example.pet_home_app.sha1        
[  +16 ms] executing: C:\Users\enzodtz\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.40.101:5555
shell -x logcat -v time -t 1
[  +18 ms] --------- beginning of main
           05-24 11:29:15.939 D/CarrierConfigLoader(  934): mHandler: 9 phoneId: 0
[   +3 ms] executing: C:\Users\enzodtz\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.40.101:5555
shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-dart-profiling true --ez enable-checked-modetrue --ez verify-entry-points true com.example.pet_home_app/com.example.pet_home_app.MainActivity
[  +23 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000
cmp=com.example.pet_home_app/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[ +469 ms] Observatory URL on device: http://127.0.0.1:42245/jtqC9GxXW1I=/
[   +1 ms] executing: C:\Users\enzodtz\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.40.101:5555
forward tcp:0 tcp:42245
[  +17 ms] 54673
[        ] Forwarded host port 54673 to device port 42245 for Observatory
[   +5 ms] Caching compiled dill
[  +33 ms] Connecting to service protocol: http://127.0.0.1:54673/jtqC9GxXW1I=/
[ +180 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:54673/jtqC9GxXW1I=/.
[  +83 ms] DDS is listening at http://127.0.0.1:54679/96L1BeTt_kA=/.
[  +42 ms] Successfully connected to service protocol: http://127.0.0.1:54673/jtqC9GxXW1I=/
[  +39 ms] DevFS: Creating new filesystem on the device (null)
[  +18 ms] DevFS: Created new filesystem on the device
(file:///data/user/0/com.example.pet_home_app/code_cache/pet_home_appKMPUPF/pet_home_app/)
[   +2 ms] Updating assets
[  +66 ms] Syncing files to device Google Pixel 3...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] Processing bundle.
[        ] <- recompile package:pet_home_app/main.dart 7d01de4f-ee85-4bef-8675-bb647c828993
[        ] <- 7d01de4f-ee85-4bef-8675-bb647c828993
[   +1 ms] Bundle processing done.
[  +62 ms] Updating files.
[        ] DevFS: Sync finished
[        ] Syncing files to device Google Pixel 3... (completed in 67ms)
[        ] Synced 0.0MB.
[   +1 ms] <- accept
[   +2 ms] Connected to _flutterView/0xedc73c10.
[   +1 ms] Flutter run key commands.
[   +1 ms] r Hot reload. 
[        ] R Hot restart.
[        ] h List all available interactive commands.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ]  Running with sound null safety 
[        ] An Observatory debugger and profiler on Google Pixel 3 is available at:
http://127.0.0.1:54679/96L1BeTt_kA=/
[ +346 ms] The Flutter DevTools debugger and profiler on Google Pixel 3 is available at:
                    http://127.0.0.1:9101?uri=http://127.0.0.1:54679/96L1BeTt_kA=/
```

The analyze errors are not being actually called, since I'm putting the example directly on `main.dart`

```
Analyzing pet_home_app...                                               

   info - Unused import: 'dart:async' - lib\main.dart:1:8 - unused_import
   info - Prefer const with constant constructors - lib\main.dart:21:12 - prefer_const_constructors
   info - Prefer const with constant constructors - lib\main.dart:21:30 - prefer_const_constructors
   info - Dead code - lib\main.dart:22:5 - dead_code
   info - Unused import: 'package:pet_home_app/models/user_model.dart' - lib\models\pet.dart:1:8 - unused_import  
   info - Avoid empty catch blocks - lib\models\user_model.dart:68:21 - empty_catches
   info - Unused import: 'package:pet_home_app/exceptions/server_exception.dart' -
          lib\screens\home_screen\bloc\home_bloc.dart:3:8 - unused_import
   info - Unused import: 'package:mask_text_input_formatter/mask_text_input_formatter.dart' -
          lib\screens\register\bloc\register_bloc.dart:3:8 - unused_import
   info - Unused import: 'package:mask_text_input_formatter/mask_text_input_formatter.dart' -
          lib\screens\register\register_screen.dart:12:8 - unused_import
   info - Prefer const with constant constructors - lib\screens\register\register_screen.dart:163:37 -
          prefer_const_constructors

10 issues found. (ran in 1.3s)
```

```
[√] Flutter (Channel stable, 2.10.1, on Microsoft Windows [versÃ£o 10.0.19044.1706], locale pt-BR)
    • Flutter version 2.10.1 at C:\Users\enzodtz\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db747aa133 (3 months ago), 2022-02-09 13:57:35 -0600
    • Engine revision ab46186b24
    • Dart version 2.16.1
    • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at C:\Users\enzodtz\AppData\Local\Android\sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    • All Android licenses accepted.

[√] Android Studio (version 2021.1)
    • Android Studio at C:\Program Files\Android\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.11+9-b60-7590822)

[√] VS Code (version 1.67.2)
    • VS Code at C:\Users\enzodtz\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.40.0

[√] Connected device (1 available)
    • Google Pixel 3 (mobile) • 192.168.40.101:5555 • android-x86 • Android 10 (API 29)

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```

</details>


<!--
      Consider also attaching screenshots and/or videos to better
      illustrate the issue.

      You can upload them directly on GitHub.
      Beware that video file size is limited to 10MB.
-->