Repository: flutter
Issue: App throws `package:flutter/src/painting/text_style.dart': Failed assertion: line 1031 pos 12: 'a == null || b            == null || a.inherit == b.inherit': is not true` exception upon launch.
Labels: framework,f: material design,a: error message,has reproducible steps,found in release: 2.5,found in release: 2.6,team-design,triaged-design

We have been seeing this error on the startup of our app for a while.  I does not seem to have any impact.
It happens very early on.
With the update to flutter 2.5 the error is more detailed, but still the stack trace does not really indicate where in our code the exception is being thrown from.

full output of flutter run --verbose attached.


<details>
  <summary>Logs</summary>

```
           ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
           The following assertion was thrown building AnimatedTheme(duration: 200ms, dirty, dependencies:
           [_EffectiveTickerMode], state: _AnimatedThemeState#eadb2(ticker active,
           ThemeDataTween(ThemeData#fb5bf → ThemeData#37575))):
           'package:flutter/src/painting/text_style.dart': Failed assertion: line 1031 pos 12: 'a == null || b
           == null || a.inherit == b.inherit': is not true.

           Either the assertion indicates an error in the framework itself, or we should provide substantially
           more information in this error message to help you determine and fix the underlying cause.
           In either case, please report this assertion by filing a bug on GitHub:
             https://github.com/flutter/flutter/issues/new?template=2_bug.md

           The relevant error-causing widget was:
             MaterialApp MaterialApp:file:///nvme/csh/work/secure-mobile/core/lib/application.dart:45:16

           When the exception was thrown, this was the stack:
           #2      TextStyle.lerp (package:flutter/src/painting/text_style.dart:1031:12)
           #3      TextTheme.lerp (package:flutter/src/material/text_theme.dart:432:28)
           #4      Typography.lerp (package:flutter/src/material/typography.dart:289:17)
           #5      ThemeData.lerp (package:flutter/src/material/theme_data.dart:1711:30)
           #6      ThemeDataTween.lerp (package:flutter/src/material/theme.dart:174:41)
           #7      Tween.transform (package:flutter/src/animation/tween.dart:327:12)
           #8      Animatable.evaluate (package:flutter/src/animation/tween.dart:53:46)
           #9      _AnimatedThemeState.build (package:flutter/src/material/theme.dart:230:20)
           #10     StatefulElement.build (package:flutter/src/widgets/framework.dart:4782:27)
           #11     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4665:15)
           #12     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840:11)
           #13     Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
           #14     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2620:33)
           #15     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:882:21)
           #16     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:319:5)
           #17     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
           #18     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1080:9)
           #19     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:996:5)
           #23     _invoke (dart:ui/hooks.dart:166:10)
           #24     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:270:5)
           #25     _drawFrame (dart:ui/hooks.dart:129:31)
           (elided 5 frames from class _AssertionError and dart:async)

           ════════════════════════════════════════════════════════════════════════════════════════════════════

```

```
flutter analyze                                                           
The plugins `device_unlock, flutter_app_badger, flutter_incall_manager, flutter_ringtone_player,
flutter_voip_push_notification, image_gallery_saver, proximity_plugin` use a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2
embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding:
https://flutter.dev/go/android-plugin-migration.
Analyzing lochbox...                                                    
No issues found! (ran in 4.3s)

```

```
[✓] Flutter (Channel stable, 2.5.0, on Fedora 34 (Thirty Four) 5.13.12-200.fc34.x86_64, locale en_US.UTF-8)
    • Flutter version 2.5.0 at /server/home/csh/lib/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cc385b4b8 (4 days ago), 2021-09-07 23:01:49 -0700
    • Engine revision f0826da7ef
    • Dart version 2.14.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /home/csh/Android/Sdk
    • Platform android-31, build-tools 30.0.2
    • Java binary at: /server/home/csh/lib/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 12.0.1 (Fedora 12.0.1-1.fc34)
    • cmake version 3.20.5
    • ninja version 1.8.2
    • pkg-config version 1.7.3

[✓] Android Studio (version 2020.3)
    • Android Studio at /server/home/csh/lib/android-studio
    • Flutter plugin version 58.0.2
    • Dart plugin version 203.8292
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.60.0)
    • VS Code at /usr/share/code
    • Flutter extension version 3.26.0

[✓] Connected device (6 available)
    • G5 (mobile)                           • 7080018019007106 • android-arm64  • Android 9 (API 28)
    • sdk gphone64 x86 64 (mobile)          • emulator-5554    • android-x64    • Android 11 (API 30) (emulator)
    • Android SDK built for x86 (mobile)    • emulator-5556    • android-x86    • Android 10 (API 29) (emulator)
    • Android SDK built for x86 64 (mobile) • emulator-5558    • android-x64    • Android 9 (API 28) (emulator)
    • Linux (desktop)                       • linux            • linux-x64      • Fedora 34 (Thirty Four)
      5.13.12-200.fc34.x86_64
    • Chrome (web)                          • chrome           • web-javascript • Google Chrome 93.0.4577.63
    ! Device ZY224KQLWQ is not authorized.
      You might need to check your device for an authorization dialog.

• No issues found!
[bug-report.txt](https://github.com/flutter/flutter/files/7150012/bug-report.txt)

```

</details>