Repository: flutter
Issue: iconTheme defaults to null
Labels: framework,f: material design,a: first hour,has reproducible steps,found in release: 3.3,found in release: 3.7,team-design,triaged-design


## Steps to Reproduce

1. Run `flutter create bug`.
2. Update the files as follows: 
```
import 'package:flutter/material.dart';
void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.light(),
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        //backgroundColor: Theme.of(context).appBarTheme.iconTheme.color,
        backgroundColor: Theme.of(context).appBarTheme.color,
      ),
    );
  }
}
```

3. switch between commented and uncommented background color




**results:** 

I'm very confused about the default theming data used in flutter. It seems like some cases do have default styles, others don't
I ran into this problem creating a completely custom bottom navigation bar, but wanting to use default BottomNavigationBarThemeData for easy integration with existing theming. If you use the BottomNavigationbar and not add any specific theming it applies default theming perfectly fine. But when applying `Theme.of(context).BottomNamigationBarTheme.selectedIconTheme.color` to your custom icon (not in a BottomNavigationBarItem), it will throw an error stating `selectedIconTheme `is null. The documentation states that `If null, [AppBar] uses [ThemeData.primaryIconTheme].` but that only applies when using the build in widgets? 

this seems to me like a problem or a missing feature.

<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.
-->

```
flutter run --verbose
[ +147 ms] executing: [D:\ProgramData\Android\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +113 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] 1aafb3a8b9b0c36241c5f5b34ee914770f015818
[   +1 ms] executing: [D:\ProgramData\Android\flutter/] git tag --points-at HEAD
[ +117 ms] Exit code 0 from: git tag --points-at HEAD
[   +1 ms] 1.22.4
[  +15 ms] executing: [D:\ProgramData\Android\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +83 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [D:\ProgramData\Android\flutter/] git ls-remote --get-url origin
[  +59 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[ +103 ms] executing: [D:\ProgramData\Android\flutter/] git rev-parse --abbrev-ref HEAD
[  +59 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] stable
[  +93 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +1 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.
[   +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +9 ms] 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.
[  +13 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +92 ms] executing: D:\ProgramData\android\platform-tools\adb.exe devices -l
[  +64 ms] List of devices attached
           192.168.0.233:5555     device product:OP7ProNRSpr model:GM1925 device:OP7ProNRSpr transport_id:1
[   +8 ms] D:\ProgramData\android\platform-tools\adb.exe -s 192.168.0.233:5555 shell getprop
[ +129 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +6 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[  +12 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[  +14 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[  +32 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[  +20 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +334 ms] Generating C:\Users\casva\Desktop\test\theme_test\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +71 ms] ro.hardware = qcom
[  +66 ms] Starting incremental build...
[   +4 ms] Initializing file store
[  +27 ms] Skipping target: gen_localizations
[  +19 ms] complete
[  +12 ms] Launching lib\main.dart on GM1925 in debug mode...
[  +11 ms] D:\ProgramData\Android\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev D:\ProgramData\Android\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot
--sdk-root D:\ProgramData\Android\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata
-Ddart.developer.causal_async_stacks=true --output-dill C:\Users\casva\AppData\Local\Temp\flutter_tools.3421314c\flutter_tool.fa5f0526\app.dill --packages .packages -Ddart.vm.profile=false
-Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts
--track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build\cache.dill.track.dill
[  +34 ms] executing: D:\ProgramData\android\build-tools\28.0.3\aapt dump xmltree C:\Users\casva\Desktop\test\theme_test\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +97 ms] Exit code 0 from: D:\ProgramData\android\build-tools\28.0.3\aapt dump xmltree C:\Users\casva\Desktop\test\theme_test\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)0x1d
               A: android:compileSdkVersionCodename(0x01010573)="10" (Raw: "10")
               A: package="com.example.theme_test" (Raw: "com.example.theme_test")
               A: platformBuildVersionCode=(type 0x10)0x1d
               A: platformBuildVersionName=(type 0x10)0xa
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1d
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="theme_test" (Raw: "theme_test")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.theme_test.MainActivity" (Raw: "com.example.theme_test.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=42)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=52)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=56)
                     E: action (line=57)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=59)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=66)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +54 ms] executing: D:\ProgramData\android\platform-tools\adb.exe -s 192.168.0.233:5555 shell -x logcat -v time -t 1
[ +344 ms] Exit code 0 from: D:\ProgramData\android\platform-tools\adb.exe -s 192.168.0.233:5555 shell -x logcat -v time -t 1
[   +1 ms] --------- beginning of main
           12-20 16:31:12.211 D/OPS_SERVICE(  611): before calling ioctl to read the next ops_cmd
[  +16 ms] executing: D:\ProgramData\android\platform-tools\adb.exe -s 192.168.0.233:5555 shell -x logcat -v time -t 1
[ +583 ms] Exit code 0 from: D:\ProgramData\android\platform-tools\adb.exe -s 192.168.0.233:5555 shell -x logcat -v time -t 1
[   +1 ms] --------- beginning of main
           12-20 16:31:12.211 D/OPS_SERVICE(  611): before calling ioctl to read the next ops_cmd
[  +39 ms] <- compile package:theme_test/main.dart
[  +17 ms] executing: D:\ProgramData\android\platform-tools\adb.exe version
[  +77 ms] Android Debug Bridge version 1.0.41
           Version 29.0.5-5949299
           Installed as D:\ProgramData\android\platform-tools\adb.exe
[   +4 ms] executing: D:\ProgramData\android\platform-tools\adb.exe start-server
[  +71 ms] Building APK
[  +25 ms] Running Gradle task 'assembleDebug'...
[   +3 ms] gradle.properties already sets `android.enableR8`
[   +8 ms] Using gradle from C:\Users\casva\Desktop\test\theme_test\android\gradlew.bat.
[  +17 ms] C:\Users\casva\Desktop\test\theme_test\android\gradlew.bat mode: 33279 rwxrwxrwx.
[  +12 ms] executing: [C:\Users\casva\Desktop\test\theme_test\android/] C:\Users\casva\Desktop\test\theme_test\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm64
-Ptarget=C:\Users\casva\Desktop\test\theme_test\lib\main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+5224 ms] > Task :app:compileFlutterBuildDebug
[   +1 ms] [ +139 ms] executing: [D:\ProgramData\Android\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +25 ms] [ +102 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] [        ] 1aafb3a8b9b0c36241c5f5b34ee914770f015818
[   +1 ms] [        ] executing: [D:\ProgramData\Android\flutter/] git tag --points-at HEAD
[   +1 ms] [ +118 ms] Exit code 0 from: git tag --points-at HEAD
[   +1 ms] [        ] 1.22.4
[   +1 ms] [   +9 ms] executing: [D:\ProgramData\Android\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] [  +53 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] [        ] origin/stable
[  +54 ms] [        ] executing: [D:\ProgramData\Android\flutter/] git ls-remote --get-url origin
[   +1 ms] [  +54 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] [        ] https://github.com/flutter/flutter.git
[  +92 ms] [ +123 ms] executing: [D:\ProgramData\Android\flutter/] git rev-parse --abbrev-ref HEAD
[  +99 ms] [  +59 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] [        ] stable
[   +1 ms] [  +48 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[  +12 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[  +14 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[  +14 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[  +21 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +1 ms] [  +19 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] 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.
[  +21 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] [   +6 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.
[   +1 ms] [        ] 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 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[   +1 ms] [  +99 ms] Initializing file store
[  +88 ms] [  +34 ms] Done initializing file store
[        ] [  +59 ms] Skipping target: gen_localizations
[+1100 ms] [+1082 ms] kernel_snapshot: Starting due to {InvalidatedReason.inputChanged}
[  +97 ms] [  +30 ms] D:\ProgramData\Android\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
D:\ProgramData\Android\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root D:\ProgramData\Android\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/  
--target=flutter -Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation
--no-link-platform --packages C:\Users\casva\Desktop\test\theme_test\.packages --output-dill C:\Users\casva\Desktop\test\theme_test\.dart_tool\flutter_build\79d93e2d7b09c52a87e3c75008c21c03\app.dill--depfile C:\Users\casva\Desktop\test\theme_test\.dart_tool\flutter_build\79d93e2d7b09c52a87e3c75008c21c03\kernel_snapshot.d package:theme_test/main.dart
[+8000 ms] [+8018 ms] kernel_snapshot: Complete
[+1000 ms] [+1075 ms] debug_android_application: Starting due to {InvalidatedReason.inputChanged}
[ +298 ms] [ +281 ms] debug_android_application: Complete
[ +700 ms] [ +651 ms] Persisting file store
[   +1 ms] [  +16 ms] Done persisting file store
[        ] [  +11 ms] build succeeded.
[  +17 ms] [  +20 ms] "flutter assemble" took 11,428ms.
[   +1 ms] [   +4 ms] ensureAnalyticsSent: 0ms
[   +1 ms] [   +1 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +282 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[  +19 ms] > Task :app:preBuild UP-TO-DATE
[   +5 ms] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:checkDebugManifest UP-TO-DATE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[  +68 ms] > Task :app:generateDebugBuildConfig UP-TO-DATE
[   +1 ms] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders UP-TO-DATE
[  +13 ms] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +406 ms] > Task :app:copyFlutterAssetsDebug
[   +1 ms] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[   +3 ms] > Task :app:generateDebugResValues UP-TO-DATE
[   +8 ms] > Task :app:generateDebugResources UP-TO-DATE
[   +1 ms] > Task :app:mergeDebugResources UP-TO-DATE
[        ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[  +57 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[   +1 ms] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugResources UP-TO-DATE
[  +98 ms] > Task :app:compileDebugKotlin UP-TO-DATE
[   +1 ms] > Task :app:javaPreCompileDebug UP-TO-DATE
[        ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[   +1 ms] > Task :app:compileDebugSources UP-TO-DATE
[        ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[  +98 ms] > Task :app:mergeExtDexDebug UP-TO-DATE
[  +15 ms] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[   +1 ms] > Task :app:mergeDexDebug UP-TO-DATE
[  +13 ms] > Task :app:validateSigningDebug UP-TO-DATE
[   +1 ms] > Task :app:signingConfigWriterDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[  +64 ms] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[   +1 ms] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] Compatible side by side NDK version was not found.
[+2298 ms] > Task :app:packageDebug
[ +199 ms] > Task :app:assembleDebug
[ +700 ms] BUILD SUCCESSFUL in 20s
[   +2 ms] 31 actionable tasks: 6 executed, 25 up-to-date
[ +443 ms] Running Gradle task 'assembleDebug'... (completed in 21.8s)
[ +131 ms] calculateSha: LocalDirectory: 'C:\Users\casva\Desktop\test\theme_test\build\app\outputs\flutter-apk'/app.apk
[  +42 ms] calculateSha: reading file took 41us
[ +718 ms] calculateSha: computing sha took 717us
[  +14 ms] √ Built build\app\outputs\flutter-apk\app-debug.apk.
[   +5 ms] executing: D:\ProgramData\android\build-tools\28.0.3\aapt dump xmltree C:\Users\casva\Desktop\test\theme_test\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +54 ms] Exit code 0 from: D:\ProgramData\android\build-tools\28.0.3\aapt dump xmltree C:\Users\casva\Desktop\test\theme_test\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[   +2 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)0x1d
               A: android:compileSdkVersionCodename(0x01010573)="10" (Raw: "10")
               A: package="com.example.theme_test" (Raw: "com.example.theme_test")
               A: platformBuildVersionCode=(type 0x10)0x1d
               A: platformBuildVersionName=(type 0x10)0xa
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1d
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="theme_test" (Raw: "theme_test")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.theme_test.MainActivity" (Raw: "com.example.theme_test.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=42)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=52)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=56)
                     E: action (line=57)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=59)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=66)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +28 ms] Stopping app 'app.apk' on GM1925.
[  +14 ms] executing: D:\ProgramData\android\platform-tools\adb.exe -s 192.168.0.233:5555 shell am force-stop com.example.theme_test
[ +330 ms] executing: D:\ProgramData\android\platform-tools\adb.exe -s 192.168.0.233:5555 shell pm list packages com.example.theme_test
[ +155 ms] package:com.example.theme_test
[   +3 ms] executing: D:\ProgramData\android\platform-tools\adb.exe -s 192.168.0.233:5555 shell cat /data/local/tmp/sky.com.example.theme_test.sha1
[  +83 ms] beb1c957a35d9fd68486dab19bffed38017dcc3c
[   +1 ms] Installing APK.
[  +14 ms] executing: D:\ProgramData\android\platform-tools\adb.exe version
[  +35 ms] Android Debug Bridge version 1.0.41
           Version 29.0.5-5949299
           Installed as D:\ProgramData\android\platform-tools\adb.exe
[   +3 ms] executing: D:\ProgramData\android\platform-tools\adb.exe start-server
[  +48 ms] Installing build\app\outputs\flutter-apk\app.apk...
[   +9 ms] executing: D:\ProgramData\android\platform-tools\adb.exe -s 192.168.0.233:5555 install -t -r C:\Users\casva\Desktop\test\theme_test\build\app\outputs\flutter-apk\app.apk
[+42990 ms] Performing Streamed Install
                     Success
[   +1 ms] Installing build\app\outputs\flutter-apk\app.apk... (completed in 43.0s)
[   +2 ms] executing: D:\ProgramData\android\platform-tools\adb.exe -s 192.168.0.233:5555 shell echo -n fc423435683e3f5a47aede5b14cf9b9479f5d5b4 > /data/local/tmp/sky.com.example.theme_test.sha1
[  +75 ms] GM1925 startApp
[   +4 ms] executing: D:\ProgramData\android\platform-tools\adb.exe -s 192.168.0.233: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.theme_test/com.example.theme_test.MainActivity
[ +119 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.theme_test/.MainActivity (has extras) }
[   +1 ms] Waiting for observatory port to be available...
[+1039 ms] Observatory URL on device: http://127.0.0.1:42591/XbRqMOHyLXY=/
[   +2 ms] executing: D:\ProgramData\android\platform-tools\adb.exe -s 192.168.0.233:5555 forward tcp:0 tcp:42591
[  +38 ms] 54220
[   +1 ms] Forwarded host port 54220 to device port 42591 for Observatory
[   +6 ms] Caching compiled dill
[  +37 ms] Connecting to service protocol: http://127.0.0.1:54220/XbRqMOHyLXY=/
[   +2 ms] DDS is currently disabled due to https://github.com/flutter/flutter/issues/62507
[ +263 ms] I/flutter (15636): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
[   +2 ms] I/flutter (15636): The following NoSuchMethodError was thrown building MyApp(dirty):
[+1182 ms] I/flutter (15636): The getter 'color' was called on null.
[   +1 ms] I/flutter (15636): Receiver: null
[   +1 ms] I/flutter (15636): Tried calling: color
[  +24 ms] I/flutter (15636): 
[   +1 ms] I/flutter (15636): The relevant error-causing widget was:
[   +1 ms] I/flutter (15636):   MyApp file:///C:/Users/casva/Desktop/test/theme_test/lib/main.dart:3:10
[   +1 ms] I/flutter (15636): 
[   +1 ms] I/flutter (15636): When the exception was thrown, this was the stack:
[        ] I/flutter (15636): #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
[        ] I/flutter (15636): #1      MyApp.build (package:theme_test/main.dart:13:66)
[   +1 ms] I/flutter (15636): #2      StatelessElement.build (package:flutter/src/widgets/framework.dart:4701:28)
[        ] I/flutter (15636): #3      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4627:15)
[  +26 ms] I/flutter (15636): #4      Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
[   +1 ms] I/flutter (15636): #5      ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4606:5)
[  +24 ms] Successfully connected to service protocol: http://127.0.0.1:54220/XbRqMOHyLXY=/
[   +6 ms] Waiting for GM1925 to report its views...
[   +3 ms] I/flutter (15636): #6      ComponentElement.mount (package:flutter/src/widgets/framework.dart:4601:5)
[   +1 ms] I/flutter (15636): #7      Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
[   +1 ms] I/flutter (15636): #8      Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
[   +1 ms] I/flutter (15636): #9      RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1252:16)
[  +25 ms] I/flutter (15636): #10     RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1223:5)
[   +1 ms] I/flutter (15636): #11     RenderObjectToWidgetAdapter.attachToRenderTree.<anonymous closure> (package:flutter/src/widgets/binding.dart:1165:17)
[        ] I/flutter (15636): #12     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2683:19)
[        ] I/flutter (15636): #13     RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1164:13)
[        ] I/flutter (15636): #14     WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:974:7)
[        ] I/flutter (15636): #15     WidgetsBinding.scheduleAttachRootWidget.<anonymous closure> (package:flutter/src/widgets/binding.dart:955:7)
[        ] I/flutter (15636): (elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)
[        ] I/flutter (15636): 
[        ] I/flutter (15636): ════════════════════════════════════════════════════════════════════════════════════════════════════
[ +189 ms] Waiting for GM1925 to report its views... (completed in 227ms, longer than expected)
[  +56 ms] DevFS: Creating new filesystem on the device (null)
[  +61 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.theme_test/code_cache/theme_testANMKCU/theme_test/)
[   +3 ms] Updating assets
[ +126 ms] Syncing files to device GM1925...
[   +3 ms] Scanning asset files
[  +24 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +3 ms] <- recompile package:theme_test/main.dart 49bba523-98ba-410c-a559-b5086a9f6eb8
[  +22 ms] <- 49bba523-98ba-410c-a559-b5086a9f6eb8
[ +160 ms] Updating files
[ +235 ms] DevFS: Sync finished
[   +2 ms] Syncing files to device GM1925... (completed in 450ms)
[  +23 ms] Synced 1.8MB.
[   +2 ms] <- accept
[  +31 ms] Connected to _flutterView/0x722bf78020.
[  +19 ms] Flutter run key commands.
[  +37 ms] r Hot reload. 
[  +22 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).
[   +3 ms] An Observatory debugger and profiler on GM1925 is available at: http://127.0.0.1:54220/XbRqMOHyLXY=/

```

<!--
     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 theme_test...
No issues found! (ran in 4.9s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.18363.1256], locale en-GB)
    • Flutter version 1.22.4 at D:\ProgramData\Android\flutter
    • Framework revision 1aafb3a8b9 (5 weeks ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4


[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at D:\ProgramData\android
    • Platform android-29, build-tools 28.0.3
    • ANDROID_HOME = D:\ProgramData\Android\sdk
    • ANDROID_SDK_ROOT = D:\ProgramData\Android\sdk
    • Java binary at: C:\Program Files\Java\jdk1.8.0_201\bin\java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
    • All Android licenses accepted.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.49.1)
    • VS Code at C:\Users\casva\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.16.0

[√] VS Code, 64-bit edition (version 1.47.3)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.16.0

[√] Connected device (1 available)
    • GM1925 (mobile) • 192.168.0.233:5555 • android-arm64 • Android 10 (API 29)

! Doctor found issues in 1 category.
```

</details>