Repository: flutter
Issue: PageTransitionsTheme reverts to Flutter defaults after returning with edge swiping gesture of MaterialPageRoute with CupertinoPageTransitionsBuilder() on Android
Labels: platform-android,framework,f: material design,f: cupertino,f: routes,has reproducible steps,P2,found in release: 2.2,found in release: 2.3,team-design,triaged-design

<!-- 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

`main.dart`
```dart
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        pageTransitionsTheme: PageTransitionsTheme(
          builders: {TargetPlatform.android: CupertinoPageTransitionsBuilder()},
        ),
      ),
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(),
        body: Center(
          child: Page1(),
        ),
      ),
    );
  }
}

class Page1 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return ElevatedButton(
      child: Text("Go to Page 2"),
      onPressed: () {
        Navigator.push(
          context,
          MaterialPageRoute(
            builder: (context) => Page2(),
          ),
        );
      },
    );
  }
}

// Use swipe back gesture here and the app will either freeze or the PageTransitionsTheme will revert back to FadeUpwardTransition (Default one for android)
class Page2 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
    appBar: AppBar(),
    );
  }
}

```

**Expected results:** <!-- what did you want to see? -->
Page pops with reverse animation of CupertinoPageTransition.

**Actual results:** <!-- what did you see? -->
App either freezes or the when device back button pressed (or Navigator.pop(context) is called) the PageTransitionsTheme reverts to Flutter defaults (FadeUpwardTransition for Android)

<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.
-->

```
[  +80 ms] executing: [/home/gagan/applications/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
[   +1 ms] 4d7946a68d26794349189cf21b3f68cc6fe61dcb
[   +3 ms] executing: [/home/gagan/applications/flutter/] git tag --points-at 4d7946a68d26794349189cf21b3f68cc6fe61dcb
[ +215 ms] Exit code 0 from: git tag --points-at 4d7946a68d26794349189cf21b3f68cc6fe61dcb
[   +3 ms] 2.0.3
[  +52 ms] executing: [/home/gagan/applications/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/gagan/applications/flutter/] git ls-remote --get-url origin
[   +6 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +43 ms] executing: [/home/gagan/applications/flutter/] git rev-parse --abbrev-ref HEAD
[   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +62 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 '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.
[ +115 ms] executing: /home/gagan/Android/Sdk/platform-tools/adb devices -l
[  +34 ms] List of devices attached
           192.168.0.100:5555     device product:OnePlus7T model:HD1901 device:OnePlus7T transport_id:4
[   +5 ms] /home/gagan/Android/Sdk/platform-tools/adb -s 192.168.0.100:5555 shell getprop
[ +172 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] 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.
[        ] 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.
[  +24 ms] Changing current working directory to: /home/gagan/Desktop/bug
[  +68 ms] Skipping pub get: version match.
[ +146 ms] Generating /home/gagan/Desktop/bug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +37 ms] ro.hardware = qcom
[  +37 ms] Initializing file store
[  +15 ms] Skipping target: gen_localizations
[   +6 ms] complete
[   +4 ms] Launching lib/main.dart on HD1901 in debug mode...
[   +6 ms] /home/gagan/applications/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/gagan/applications/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/gagan/applications/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names
--experimental-emit-debug-metadata --output-dill /tmp/flutter_tools.LMUMDH/flutter_tool.KSKKNN/app.dill --packages
/home/gagan/Desktop/bug/.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
[  +12 ms] executing: /home/gagan/Android/Sdk/build-tools/30.0.2/aapt dump xmltree /home/gagan/Desktop/bug/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[   +6 ms] Exit code 0 from: /home/gagan/Android/Sdk/build-tools/30.0.2/aapt dump xmltree /home/gagan/Desktop/bug/build/app/outputs/flutter-apk/app.apk
AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.bug" (Raw: "com.example.bug")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="bug" (Raw: "bug")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=21)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.bug.MainActivity" (Raw: "com.example.bug.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=35)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=45)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=49)
                     E: action (line=50)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=52)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=59)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +9 ms] executing: /home/gagan/Android/Sdk/platform-tools/adb -s 192.168.0.100:5555 shell -x logcat -v time -t 1
[   +7 ms] <- compile package:bug/main.dart
[ +336 ms] --------- beginning of main
                    05-23 00:05:41.289 I//vendor/bin/hw/vendor.qti.hardware.servicetracker@1.0-service(  930): total connections for client :
                    com.google.android.googlequicksearchbox:searchare :2
[  +15 ms] executing: /home/gagan/Android/Sdk/platform-tools/adb version
[   +7 ms] Android Debug Bridge version 1.0.41
           Version 30.0.4-6686687
           Installed as /home/gagan/Android/Sdk/platform-tools/adb
[   +2 ms] executing: /home/gagan/Android/Sdk/platform-tools/adb start-server
[   +8 ms] Building APK
[  +22 ms] Running Gradle task 'assembleDebug'...
[   +4 ms] Using gradle from /home/gagan/Desktop/bug/android/gradlew.
[   +1 ms] /home/gagan/Desktop/bug/android/gradlew mode: 33277 rwxrwxr-x.
[  +18 ms] executing: /home/gagan/applications/android-studio/jre/bin/java -version
[  +68 ms] Exit code 0 from: /home/gagan/applications/android-studio/jre/bin/java -version
[        ] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
           OpenJDK 64-Bit Server VM (build 25.242-b3-6222593, mixed mode)
[   +3 ms] executing: [/home/gagan/Desktop/bug/android/] /home/gagan/Desktop/bug/android/gradlew -Pverbose=true -Ptarget-platform=android-arm64
-Ptarget=/home/gagan/Desktop/bug/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+3664 ms] > Task :app:compileFlutterBuildDebug
[        ] [  +82 ms] executing: [/home/gagan/applications/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +41 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 4d7946a68d26794349189cf21b3f68cc6fe61dcb
[        ] [        ] executing: [/home/gagan/applications/flutter/] git tag --points-at 4d7946a68d26794349189cf21b3f68cc6fe61dcb
[        ] [  +15 ms] Exit code 0 from: git tag --points-at 4d7946a68d26794349189cf21b3f68cc6fe61dcb
[        ] [        ] 2.0.3
[        ] [  +45 ms] executing: [/home/gagan/applications/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [/home/gagan/applications/flutter/] git ls-remote --get-url origin
[        ] [   +5 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +51 ms] executing: [/home/gagan/applications/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [  +11 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +75 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 '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.
[        ] [  +83 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' 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.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [   +5 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.
[        ] [   +1 ms] 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.
[        ] [   +1 ms] 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.
[        ] [  +77 ms] Initializing file store
[        ] [  +22 ms] Done initializing file store
[        ] [  +46 ms] Skipping target: gen_localizations
[        ] [ +511 ms] kernel_snapshot: Starting due to {InvalidatedReason.inputChanged}
[   +1 ms] [  +10 ms] /home/gagan/applications/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/gagan/applications/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/gagan/applications/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -Ddart.vm.profile=false
-Ddart.vm.product=false --enable-asserts --track-widget-creation --no-link-platform --packages /home/gagan/Desktop/bug/.dart_tool/package_config.json --output-dill
/home/gagan/Desktop/bug/.dart_tool/flutter_build/31083c82453ae3a0df4e88c93970c0bd/app.dill --depfile
/home/gagan/Desktop/bug/.dart_tool/flutter_build/31083c82453ae3a0df4e88c93970c0bd/kernel_snapshot.d package:bug/main.dart
[+8961 ms] [+9406 ms] kernel_snapshot: Complete
[ +700 ms] [ +677 ms] debug_android_application: Starting due to {InvalidatedReason.inputChanged}
[ +299 ms] [ +294 ms] debug_android_application: Complete
[ +299 ms] [ +337 ms] Persisting file store
[        ] [   +9 ms] Done persisting file store
[        ] [   +5 ms] build succeeded.
[        ] [  +11 ms] "flutter assemble" took 11,550ms.
[        ] [   +4 ms] ensureAnalyticsSent: 0ms
[        ] [   +1 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +198 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[ +198 ms] > 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
[  +98 ms] > Task :app:mergeDebugAssets
[ +298 ms] > Task :app:copyFlutterAssetsDebug
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :app:mergeDebugResources UP-TO-DATE
[        ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :app:processDebugMainManifest UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugManifestForPackage UP-TO-DATE
[  +97 ms] > Task :app:processDebugResources UP-TO-DATE
[ +100 ms] > 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 :app:mergeDebugJavaResource UP-TO-DATE
[  +98 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[        ] > Task :app:dexBuilderDebug UP-TO-DATE
[  +99 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
[  +98 ms] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[ +499 ms] > Task :app:compressDebugAssets
[ +899 ms] > Task :app:packageDebug
[+1300 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 17s
[        ] 32 actionable tasks: 7 executed, 25 up-to-date
[ +425 ms] Running Gradle task 'assembleDebug'... (completed in 18.4s)
[+1352 ms] calculateSha: LocalDirectory: '/home/gagan/Desktop/bug/build/app/outputs/flutter-apk'/app.apk
[  +55 ms] calculateSha: reading file took 53us
[ +759 ms] calculateSha: computing sha took 758us
[   +4 ms] ✓ Built build/app/outputs/flutter-apk/app-debug.apk.
[   +3 ms] executing: /home/gagan/Android/Sdk/build-tools/30.0.2/aapt dump xmltree /home/gagan/Desktop/bug/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[   +9 ms] Exit code 0 from: /home/gagan/Android/Sdk/build-tools/30.0.2/aapt dump xmltree /home/gagan/Desktop/bug/build/app/outputs/flutter-apk/app.apk
AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.bug" (Raw: "com.example.bug")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="bug" (Raw: "bug")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=21)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.bug.MainActivity" (Raw: "com.example.bug.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=35)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=45)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=49)
                     E: action (line=50)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=52)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=59)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +1 ms] Stopping app 'app.apk' on HD1901.
[        ] executing: /home/gagan/Android/Sdk/platform-tools/adb -s 192.168.0.100:5555 shell am force-stop com.example.bug
[ +160 ms] executing: /home/gagan/Android/Sdk/platform-tools/adb -s 192.168.0.100:5555 shell pm list packages com.example.bug
[ +163 ms] package:com.example.bug
[   +6 ms] executing: /home/gagan/Android/Sdk/platform-tools/adb -s 192.168.0.100:5555 shell cat /data/local/tmp/sky.com.example.bug.sha1
[ +114 ms] a54e895f6ccbef85352519b3620bdbee94a6fc65
[   +2 ms] Installing APK.
[   +4 ms] Installing ../build/app/outputs/flutter-apk/app.apk...
[        ] executing: /home/gagan/Android/Sdk/platform-tools/adb -s 192.168.0.100:5555 install -t -r /home/gagan/Desktop/bug/build/app/outputs/flutter-apk/app.apk
[+32495 ms] Performing Streamed Install
                     Success
[        ] Installing ../build/app/outputs/flutter-apk/app.apk... (completed in 32.5s)
[   +6 ms] executing: /home/gagan/Android/Sdk/platform-tools/adb -s 192.168.0.100:5555 shell echo -n 32840fad22b45f53afaf2775b669f976557f6990 >
/data/local/tmp/sky.com.example.bug.sha1
[  +62 ms] executing: /home/gagan/Android/Sdk/platform-tools/adb -s 192.168.0.100:5555 shell -x logcat -v time -t 1
[ +214 ms] --------- beginning of main
                    05-23 00:06:37.311 I//vendor/bin/hw/vendor.qti.hardware.servicetracker@1.0-service(  930): unbindService is called for service :
                    com.google.android.googlequicksearchbox/com.google.android.apps.gsa.search.core.service.SearchService and for client
                    com.google.android.googlequicksearchbox:interactor
[  +52 ms] executing: /home/gagan/Android/Sdk/platform-tools/adb -s 192.168.0.100:5555 shell am start -a android.intent.action.RUN -f 0x20000000 --ez
enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true
com.example.bug/com.example.bug.MainActivity
[ +123 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.bug/.MainActivity (has extras) }
[   +1 ms] Waiting for observatory port to be available...
[ +563 ms] Observatory URL on device: http://127.0.0.1:42291/PbBY0Brei7I=/
[   +5 ms] executing: /home/gagan/Android/Sdk/platform-tools/adb -s 192.168.0.100:5555 forward tcp:0 tcp:42291
[  +34 ms] 42161
[   +3 ms] Forwarded host port 42161 to device port 42291 for Observatory
[  +42 ms] Caching compiled dill
[ +260 ms] Connecting to service protocol: http://127.0.0.1:42161/PbBY0Brei7I=/
[ +240 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:42161/PbBY0Brei7I=/.
[ +523 ms] DDS is listening at http://127.0.0.1:35197/qjq5wFahUqw=/.
[  +74 ms] Successfully connected to service protocol: http://127.0.0.1:42161/PbBY0Brei7I=/
[ +528 ms] DevFS: Creating new filesystem on the device (null)
[  +97 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.bug/code_cache/bugSLMQSF/bug/)
[   +4 ms] Updating assets
[  +77 ms] Syncing files to device HD1901...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:bug/main.dart 29a658f9-cee0-440a-b43c-25787d5a4708
[        ] <- 29a658f9-cee0-440a-b43c-25787d5a4708
[ +257 ms] Updating files.
[        ] DevFS: Sync finished
[   +6 ms] Syncing files to device HD1901... (completed in 264ms)
[   +2 ms] Synced 0.0MB.
[   +4 ms] <- accept
[  +74 ms] Connected to _flutterView/0x6fb7350820.
[   +6 ms] Flutter run key commands.
[   +6 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 HD1901 is available at: http://127.0.0.1:35197/qjq5wFahUqw=/
[   +1 ms] 
           Flutter DevTools, a Flutter debugger and profiler, on HD1901 is available at: http://127.0.0.1:9101?uri=http%3A%2F%2F127.0.0.1%3A35197%2Fqjq5wFahUqw%3D%2F
[   +1 ms] Running with unsound null safety
[        ] For more information see https://dart.dev/null-safety/unsound-null-safety
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
Analyzing givnotes...                                                   

   info • Unused import: 'package:givnotes/screens/src/editor/editor_screen.dart' • lib/screens/src/notes/widgets/notes_card.dart:6:8 • unused_import
   info • Unused import: 'package:lottie/lottie.dart' • lib/screens/src/settings_page/settings.dart:7:8 • unused_import
   info • Unused import: 'package:givnotes/models/models.dart' • lib/screens/src/settings_page/settings.dart:11:8 • unused_import

3 issues found. (ran in 4.9s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[✓] Flutter (Channel stable, 2.0.3, on Linux, locale en_GB.UTF-8)
    • Flutter version 2.0.3 at /home/gagan/applications/flutter
    • Framework revision 4d7946a68d (9 weeks ago), 2021-03-18 17:24:33 -0700
    • Engine revision 3459eb2436
    • Dart version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /home/gagan/Android/Sdk/
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /home/gagan/Android/Sdk
    • Java binary at: /home/gagan/applications/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /home/gagan/applications/android-studio
    • Flutter plugin version 48.1.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (2 available)
    • HD1901 (mobile) • 192.168.0.100:5555 • android-arm64  • Android 10 (API 29)
    • Chrome (web)    • chrome             • web-javascript • Google Chrome 90.0.4430.212

• No issues found!
```

</details>