Repository: flutter
Issue: [Camera Plugin] Issue of zooming when auto-rotation is turned on but already mentioned SystemChrome in main()
Labels: p: camera,package,a: layout,team-ecosystem,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,triaged-ecosystem

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce
1. Create a simple app using Camera plugin where you can startVideoRecording(). 
2. Restrict the device orientation by writing `SystemChrome.setPreferredOrientations([
    DeviceOrientation.portraitUp,
    DeviceOrientation.portraitDown,
  ]);`
3. Now, turn on auto-rotation of your device.
4. startVideoRecording() and turn your device to landscape mode.
5. In landscape mode itself, stopVideoRecording()
6. Here, the preview will be zoomed and out of orientation. Even if you again change your orientation.
7. <a href="https://github.com/AbhishekDoshi26/camera-issue">Reproducible Code</a>
<br>
<!-- You must include full steps to reproduce so that we can reproduce the problem. -->

**Expected results:** CameraPreview should not get zoomed in landscape. <a href="https://github.com/AbhishekDoshi26/camera-issue/blob/main/expected_result.gif"> Output </a>

**Actual results:** CameraPreview gets zoomed in landscape. <a href="https://github.com/AbhishekDoshi26/camera-issue/blob/main/actual_result.gif">Output</a>

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```

G:\Flutter_Projects\initial_project>flutter run -v
[  +84 ms] executing: [C:\Flutter\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +89 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
[   +1 ms] executing: [C:\Flutter\flutter/] git tag --points-at c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
[ +112 ms] Exit code 0 from: git tag --points-at c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
[   +2 ms] 2.0.1
[  +48 ms] executing: [C:\Flutter\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +58 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\Flutter\flutter/] git ls-remote --get-url origin
[  +51 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +100 ms] executing: [C:\Flutter\flutter/] git rev-parse --abbrev-ref HEAD
[  +54 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +3 ms] stable
[ +100 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 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.
[   +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +71 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[  +51 ms] List of devices attached
           ZXHASO69OV4HRKWS       device product:1907 model:vivo_1907 device:1907 transport_id:9
[   +7 ms] C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZXHASO69OV4HRKWS shell getprop
[  +97 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +6 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.
[   +1 ms] 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.
[  +89 ms] Skipping pub get: version match.
[  +29 ms] Found plugin camera at C:\Users\adosh\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\camera-0.8.1\
[+2549 ms] Found plugin camera at C:\Users\adosh\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\camera-0.8.1\
[  +32 ms] Generating
G:\Flutter_Projects\initial_project\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +68 ms] ro.hardware = mt6768
[        ] ro.build.characteristics = default
[  +49 ms] Initializing file store
[  +10 ms] Skipping target: gen_localizations
[   +7 ms] complete
[   +7 ms] Launching lib\main.dart on vivo 1907 in debug mode...
[   +5 ms] C:\Flutter\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Flutter\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Flutter\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter
--debugger-module-names --experimental-emit-debug-metadata --output-dill
C:\Users\adosh\AppData\Local\Temp\flutter_tools.8dbc38f5\flutter_tool.ac7e0efa\app.dill --packages
G:\Flutter_Projects\initial_project\.dart_tool\package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false        
--enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill
build\cache.dill.track.dill
[  +21 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\build-tools\30.0.2\aapt dump xmltree
G:\Flutter_Projects\initial_project\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +16 ms] Exit code 0 from: C:\Users\adosh\AppData\Local\Android\Sdk\build-tools\30.0.2\aapt dump xmltree
G:\Flutter_Projects\initial_project\build\app\outputs\flutter-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)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.initial_project" (Raw: "com.example.initial_project")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=15)
                 A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA")
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.RECORD_AUDIO" (Raw: "android.permission.RECORD_AUDIO")   
               E: application (line=18)
                 A: android:label(0x01010001)="initial_project" (Raw: "initial_project")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=23)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.initial_project.MainActivity" (Raw:
                   "com.example.initial_project.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=37)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw:
                     "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=47)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw:
                     "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=51)
                     E: action (line=52)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")       
                     E: category (line=54)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw:
                       "android.intent.category.LAUNCHER")
                 E: meta-data (line=61)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +20 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZXHASO69OV4HRKWS shell -x logcat
-v time -t 1
[  +18 ms] <- compile package:initial_project/main.dart
[ +178 ms] --------- beginning of main
                    04-21 23:15:30.620 I/mali_config(18143): @get_buffer_dataspace_setting: update dataspace (0x10010000  
                    -> 0x08020000)
[  +22 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe version
[  +27 ms] Android Debug Bridge version 1.0.41
           Version 30.0.2-6538114
           Installed as C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe
[   +8 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server
[  +29 ms] Building APK
[  +22 ms] Running Gradle task 'assembleDebug'...
[   +5 ms] Using gradle from G:\Flutter_Projects\initial_project\android\gradlew.bat.
[   +1 ms] G:\Flutter_Projects\initial_project\android\gradlew.bat mode: 33279 rwxrwxrwx.
[  +18 ms] executing: C:\Program Files\Android\Android Studio1\jre\bin\java -version
[ +277 ms] Exit code 0 from: C:\Program Files\Android\Android Studio1\jre\bin\java -version
[   +1 ms] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
           OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[   +3 ms] executing: C:\Program Files\Android\Android Studio1\jre\bin\java -version
[ +110 ms] Exit code 0 from: C:\Program Files\Android\Android Studio1\jre\bin\java -version
[   +1 ms] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
           OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[   +7 ms] executing: [G:\Flutter_Projects\initial_project\android/]
G:\Flutter_Projects\initial_project\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm64
-Ptarget=G:\Flutter_Projects\initial_project\lib\main.dart -Ptrack-widget-creation=true
-Pfilesystem-scheme=org-dartlang-root assembleDebug
[+4906 ms] > Task :camera:preBuild UP-TO-DATE
[   +1 ms] > Task :camera:preDebugBuild UP-TO-DATE
[   +1 ms] > Task :camera:compileDebugAidl NO-SOURCE
[   +1 ms] > Task :camera:packageDebugRenderscript NO-SOURCE
[   +1 ms] > Task :camera:writeDebugAarMetadata UP-TO-DATE
[   +1 ms] > Task :camera:mergeDebugShaders UP-TO-DATE
[   +1 ms] > Task :camera:compileDebugShaders NO-SOURCE
[        ] > Task :camera:generateDebugAssets UP-TO-DATE
[   +1 ms] > Task :camera:packageDebugAssets UP-TO-DATE
[   +1 ms] > Task :camera:compileDebugRenderscript NO-SOURCE
[   +1 ms] > Task :camera:generateDebugResValues UP-TO-DATE
[   +1 ms] > Task :camera:generateDebugResources UP-TO-DATE
[   +1 ms] > Task :camera:packageDebugResources UP-TO-DATE
[   +1 ms] > Task :camera:extractDeepLinksDebug UP-TO-DATE
[ +176 ms] > Task :camera:processDebugManifest UP-TO-DATE
[   +2 ms] > Task :camera:compileDebugLibraryResources UP-TO-DATE
[ +605 ms] > Task :camera:parseDebugLocalResources UP-TO-DATE
[ +595 ms] > Task :app:compileFlutterBuildDebug UP-TO-DATE
[+1499 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[   +1 ms] > Task :app:preBuild UP-TO-DATE
[   +1 ms] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[   +1 ms] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :app:javaPreCompileDebug UP-TO-DATE
[ +461 ms] W/FlutterJNI(18143): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++.
Could not send. Channel: flutter.io/cameraPlugin/device. Response ID: 0
[  +32 ms] W/FlutterJNI(18143): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++.
Could not send. Channel: flutter.io/cameraPlugin/device. Response ID: 0
[  +76 ms] W/FlutterJNI(18143): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++.
Could not send. Channel: flutter.io/cameraPlugin/device. Response ID: 0
[  +28 ms] > Task :camera:generateDebugRFile UP-TO-DATE
[   +1 ms] > Task :camera:generateDebugBuildConfig UP-TO-DATE
[   +1 ms] > Task :camera:javaPreCompileDebug UP-TO-DATE
[ +188 ms] W/FlutterJNI(18143): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++.
Could not send. Channel: flutter.io/cameraPlugin/device. Response ID: 0
[   +6 ms] W/FlutterJNI(18143): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++.
Could not send. Channel: flutter.io/cameraPlugin/device. Response ID: 0
[ +256 ms] W/FlutterJNI(18143): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++.
Could not send. Channel: flutter.io/cameraPlugin/device. Response ID: 0
[  +74 ms] W/FlutterJNI(18143): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++.
Could not send. Channel: flutter.io/cameraPlugin/device. Response ID: 0
[  +14 ms] W/FlutterJNI(18143): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++.
Could not send. Channel: flutter.io/cameraPlugin/device. Response ID: 0
[ +162 ms] > Task :camera:compileDebugJavaWithJavac UP-TO-DATE
[   +1 ms] > Task :app:checkDebugAarMetadata UP-TO-DATE
[   +1 ms] > Task :camera:bundleLibCompileToJarDebug UP-TO-DATE
[   +1 ms] > Task :camera:processDebugJavaRes NO-SOURCE
[   +1 ms] > Task :camera:bundleLibResDebug NO-SOURCE
[   +1 ms] > Task :camera:bundleLibRuntimeToJarDebug UP-TO-DATE
[        ] > Task :camera:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :camera:mergeDebugNativeLibs NO-SOURCE
[   +1 ms] > Task :camera:stripDebugDebugSymbols NO-SOURCE
[   +1 ms] > Task :app:cleanMergeDebugAssets
[   +1 ms] > Task :camera:copyDebugJniLibsProjectOnly UP-TO-DATE
[   +1 ms] > Task :app:mergeDebugShaders UP-TO-DATE
[   +1 ms] > Task :camera:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE
[   +1 ms] > Task :app:compileDebugShaders NO-SOURCE
[   +1 ms] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[  +78 ms] > Task :camera:extractDebugAnnotations UP-TO-DATE
[   +1 ms] > Task :camera:mergeDebugGeneratedProguardFiles UP-TO-DATE
[   +1 ms] > Task :camera:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :camera:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :camera:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :camera:syncDebugLibJars UP-TO-DATE
[        ] > Task :camera:bundleDebugAar UP-TO-DATE
[ +883 ms] > Task :camera:mergeDebugResources UP-TO-DATE
[   +1 ms] > Task :camera:compileDebugSources UP-TO-DATE
[   +1 ms] > Task :camera:assembleDebug UP-TO-DATE
[+7298 ms] > Task :app:copyFlutterAssetsDebug
[   +1 ms] > Task :app:generateDebugResValues UP-TO-DATE
[   +1 ms] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :app:mergeDebugResources UP-TO-DATE
[   +1 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :app:processDebugMainManifest UP-TO-DATE
[   +1 ms] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugManifestForPackage UP-TO-DATE
[ +503 ms] > Task :app:processDebugResources UP-TO-DATE
[   +1 ms] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[   +1 ms] > Task :app:compileDebugSources UP-TO-DATE
[   +1 ms] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[        ] > Task :app:compressDebugAssets UP-TO-DATE
[   +1 ms] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[        ] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[+2176 ms] > Task :app:mergeExtDexDebug UP-TO-DATE
[   +1 ms] > Task :app:dexBuilderDebug UP-TO-DATE
[        ] > Task :app:mergeLibDexDebug UP-TO-DATE
[        ] > Task :app:mergeProjectDexDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[        ] > Task :app:packageDebug UP-TO-DATE
[ +898 ms] > Task :app:assembleDebug
[  +94 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[   +1 ms] 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 20s
[+2601 ms] 58 actionable tasks: 4 executed, 54 up-to-date
[+1029 ms] Running Gradle task 'assembleDebug'... (completed in 25.1s)
[  +69 ms] calculateSha: LocalDirectory: 'G:\Flutter_Projects\initial_project\build\app\outputs\flutter-apk'/app.apk
[  +57 ms] calculateSha: reading file took 55us
[ +799 ms] calculateSha: computing sha took 797us
[   +6 ms] √ Built build\app\outputs\flutter-apk\app-debug.apk.
[  +10 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\build-tools\30.0.2\aapt dump xmltree
G:\Flutter_Projects\initial_project\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +25 ms] Exit code 0 from: C:\Users\adosh\AppData\Local\Android\Sdk\build-tools\30.0.2\aapt dump xmltree
G:\Flutter_Projects\initial_project\build\app\outputs\flutter-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)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.initial_project" (Raw: "com.example.initial_project")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=15)
                 A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA")
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.RECORD_AUDIO" (Raw: "android.permission.RECORD_AUDIO")   
               E: application (line=18)
                 A: android:label(0x01010001)="initial_project" (Raw: "initial_project")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=23)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.initial_project.MainActivity" (Raw:
                   "com.example.initial_project.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=37)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw:
                     "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=47)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw:
                     "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=51)
                     E: action (line=52)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")       
                     E: category (line=54)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw:
                       "android.intent.category.LAUNCHER")
                 E: meta-data (line=61)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +9 ms] Stopping app 'app.apk' on vivo 1907.
[   +1 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZXHASO69OV4HRKWS shell am
force-stop com.example.initial_project
[ +203 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZXHASO69OV4HRKWS shell pm list
packages com.example.initial_project
[ +109 ms] package:com.example.initial_project
[   +2 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZXHASO69OV4HRKWS shell cat
/data/local/tmp/sky.com.example.initial_project.sha1
[  +48 ms] 0dfa8c23247db0c4bd1c52151cf737f43d6d79c9
[   +1 ms] Latest build already installed.
[   +1 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZXHASO69OV4HRKWS shell -x logcat 
-v time -t 1
[ +110 ms] --------- beginning of main
                    04-21 23:16:08.776 I/cmd     (18775): oneway function results will be dropped but finished with status                    OK and parcel size 4
[  +12 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZXHASO69OV4HRKWS 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.initial_project/com.example.initial_project.MainActivity
[  +79 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.initial_project/.MainActivity
(has extras) }
[   +1 ms] Waiting for observatory port to be available...
[ +467 ms] Observatory URL on device: http://127.0.0.1:32805/ndN4S4bzKZM=/
[   +1 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZXHASO69OV4HRKWS forward tcp:0
tcp:32805
[  +30 ms] 53496
[   +1 ms] Forwarded host port 53496 to device port 32805 for Observatory
[  +11 ms] Caching compiled dill
[ +487 ms] Connecting to service protocol: http://127.0.0.1:53496/ndN4S4bzKZM=/
[ +274 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:53496/ndN4S4bzKZM=/.
[ +125 ms] DDS is listening at http://127.0.0.1:53506/iiHFP8pAmaU=/.
[  +68 ms] Successfully connected to service protocol: http://127.0.0.1:53496/ndN4S4bzKZM=/
[ +951 ms] DevFS: Creating new filesystem on the device (null)
[   +5 ms] E/CameraManagerGlobal(18805): Camera 4 is not available. Ignore physical camera status change
[  +16 ms] V/CameraManager(18805): isNormalCamera packageName = com.example.initial_project
[   +1 ms] V/CameraManager(18805): isTopActivity
[   +3 ms] I/CameraManager(18805): isTopActivity: pkgname: com.example.initial_project
[   +1 ms] V/CameraManager(18805): isNormalCamera isTopActivity true
[   +1 ms] V/CameraManager(18805): sendOpenCameraBroadCast isNormalCamera = true
[   +1 ms] V/CameraManager(18805): sendStartPreviewBroadCast
[   +1 ms] V/CameraDevice-JV-0(18805): mIsNormalCamera true isNormalCamera true
[  +15 ms] DevFS: Created new filesystem on the device
(file:///data/user/0/com.example.initial_project/code_cache/initial_projectAMIDIK/initial_project/)
[   +7 ms] Updating assets
[ +126 ms] Syncing files to device vivo 1907...
[   +5 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +3 ms] <- recompile package:initial_project/main.dart cdc71678-5bc5-4c1b-a323-c507f115de9a
[   +1 ms] <- cdc71678-5bc5-4c1b-a323-c507f115de9a
[  +85 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +48 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +15 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +32 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +32 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +32 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +49 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +32 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[+3287 ms] W/initial_project(18805): type=1400 audit(0.0:757126): avc: denied { search } for name="bbkcore"
dev="mmcblk0p41" ino=3801089 scontext=u:r:untrusted_app:s0:c32,c259,c512,c768 tcontext=u:object_r:vivo_data_file:s0       
tclass=dir permissive=0 app=com.example.initial_project
[   +3 ms] D/MediaRecorder(18805): constructor E 0xb400007408e5db00
[   +1 ms] V/MediaRecorder(18805): doCleanUp
[   +1 ms] D/MediaRecorder(18805): constructor X 0xb400007408e5db00
[        ] V/MediaRecorder(18805): setListener
[        ] V/MediaRecorder(18805): setClientName
[   +1 ms] V/MediaRecorder(18805): setAudioSource(1)
[        ] V/MediaRecorder(18805): Call init() since the media recorder is not initialized yet
[        ] D/MediaRecorder(18805): init E 0xb400007408e5db00
[   +6 ms] D/MediaRecorder(18805): init X 0xb400007408e5db00
[   +3 ms] V/MediaRecorder(18805): setVideoSource(2)
[   +1 ms] V/MediaRecorder(18805): setOutputFormat(2)
[   +1 ms] V/MediaRecorder(18805): setAudioEncoder(3)
[        ] V/MediaRecorder(18805): setParameters(audio-param-encoding-bitrate=128000)
[   +1 ms] V/MediaRecorder(18805): setParameters(audio-param-sampling-rate=48000)
[   +1 ms] V/MediaRecorder(18805): setVideoEncoder(2)
[   +1 ms] V/MediaRecorder(18805): setParameters(video-param-encoding-bitrate=9000000)
[   +1 ms] V/MediaRecorder(18805): setVideoFrameRate(30)
[   +1 ms] V/MediaRecorder(18805): setVideoSize(1280, 720)
[   +2 ms] V/MediaRecorder(18805): setParameters(video-param-rotation-angle-degrees=90)
[   +1 ms] I/MediaRecorder(18805): prepare begin
[   +1 ms] I/MediaRecorder(18805): prepare _setOutputFile
[   +1 ms] V/MediaRecorder(18805): setOutputFile(119)
[   +1 ms] D/MediaRecorder(18805): prepare E 0xb400007408e5db00
[ +112 ms] D/MediaRecorder(18805): prepare X 0xb400007408e5db00
[   +1 ms] I/MediaRecorder(18805): prepare end
[   +2 ms] W/H2BGraphicBufferProducer(18805): getConsumerUsage is not fully supported
[ +299 ms] D/MediaRecorder(18805): start E 0xb400007408e5db00
[  +43 ms] D/MediaRecorder(18805): start X 0xb400007408e5db00
[ +194 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +61 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +35 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +31 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +34 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +24 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +34 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[+2596 ms] D/MediaRecorder(18805): stop E 0xb400007408e5db00
[  +11 ms] V/MediaRecorder(18805): message received msg=101, ext1=536871912, ext2=-1011
[   +1 ms] V/MediaRecorder(18805): callback application
[   +1 ms] V/MediaRecorder(18805): back from callback
[  +61 ms] V/MediaRecorder(18805): message received msg=101, ext1=268436456, ext2=0
[   +2 ms] V/MediaRecorder(18805): callback application
[   +3 ms] V/MediaRecorder(18805): back from callback
[  +98 ms] V/MediaRecorder(18805): doCleanUp
[   +1 ms] D/MediaRecorder(18805): stop X 0xb400007408e5db00
[   +1 ms] D/MediaRecorder(18805): reset E 0xb400007408e5db00
[   +1 ms] V/MediaRecorder(18805): doCleanUp
[        ] D/MediaRecorder(18805): reset X 0xb400007408e5db00
[ +487 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +32 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +46 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +35 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +33 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +36 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +26 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[  +62 ms] I/mali_config(18805): @get_buffer_dataspace_setting: update dataspace (0x10010000 -> 0x08020000)
[+10026 ms] Updating files.
[   +1 ms] DevFS: Sync finished
[   +1 ms] Syncing files to device vivo 1907... (completed in 18.1s)
[   +1 ms] Synced 0.0MB.
[   +1 ms] <- accept
[  +22 ms] Connected to _flutterView/0xb40000747c9eb820.
[   +3 ms] Flutter run key commands.
[   +4 ms] r Hot reload. 
[   +3 ms] R Hot restart.
[   +1 ms] h Repeat this help message.
[   +1 ms] d Detach (terminate "flutter run" but leave application running).
[   +1 ms] c Clear the screen
[   +1 ms] q Quit (terminate the application on the device).
[        ] An Observatory debugger and profiler on vivo 1907 is available at: http://127.0.0.1:53506/iiHFP8pAmaU=/        
[   +2 ms]
           Flutter DevTools, a Flutter debugger and profiler, on vivo 1907 is available at:
           http://127.0.0.1:9101?uri=http%3A%2F%2F127.0.0.1%3A53506%2FiiHFP8pAmaU%3D%2F
[   +1 ms] Running with unsound null safety
[        ] For more information see https://dart.dev/null-safety/unsound-null-safety
[+4640 ms] DevFS: Deleting filesystem on the device
(file:///data/user/0/com.example.initial_project/code_cache/initial_projectAMIDIK/initial_project/)
[  +29 ms] DevFS: Deleted filesystem on the device
(file:///data/user/0/com.example.initial_project/code_cache/initial_projectAMIDIK/initial_project/)
[ +284 ms] Service protocol connection closed.
[   +1 ms] Application finished.
[   +3 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZXHASO69OV4HRKWS forward --list  
[  +22 ms] Exit code 0 from: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZXHASO69OV4HRKWS forward  
--list
[   +2 ms] ZXHASO69OV4HRKWS tcp:53278 tcp:36523
           ZXHASO69OV4HRKWS tcp:53496 tcp:32805
[   +2 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZXHASO69OV4HRKWS forward --removetcp:53278
[  +27 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZXHASO69OV4HRKWS forward --removetcp:53496
[  +26 ms] executing: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZXHASO69OV4HRKWS forward --list  
[  +25 ms] Exit code 0 from: C:\Users\adosh\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ZXHASO69OV4HRKWS forward  
--list
[   +2 ms] "flutter run" took 56,071ms.
[ +237 ms] ensureAnalyticsSent: 234ms
[   +2 ms] Running shutdown hooks
[   +1 ms] Shutdown hook priority 4
[   +1 ms] Shutdown hooks complete
[   +1 ms] exiting with code 0
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->
### Flutter Analyze
```
G:\Flutter_Projects\initial_project>flutter analyze
Analyzing initial_project...                                            
No issues found! (ran in 99.6s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

### Flutter Doctor
```
G:\Flutter_Projects\initial_project>flutter doctor -v
[√] Flutter (Channel stable, 2.0.1, on Microsoft Windows [Version 10.0.19042.867], locale en-IN)
    • Flutter version 2.0.1 at C:\Flutter\flutter
    • Framework revision c5a4b4029c (7 weeks ago), 2021-03-04 09:47:48 -0800
    • Engine revision 40441def69
    • Dart version 2.12.0

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2) 
    • Android SDK at C:\Users\adosh\AppData\Local\Android\Sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = C:\Users\adosh\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java      
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe      

[√] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • Flutter plugin version 50.0.1
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.55.1)
    • VS Code at C:\Users\adosh\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.21.0

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.104
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 89.0.774.77 

• No issues found!
```

</details>