Repository: flutter
Issue: [Add2App] No constructor 'Text.' with matching arguments declared in class 'Text'.
Labels: c: crash,platform-ios,tool,dependency: dart,a: existing-apps,has reproducible steps,P2,found in release: 3.0,found in release: 3.1,team-ios,triaged-ios

I'm using flutter module in my existing iOS app. While making changes Text, I use hot reload to see the output. It was working bad, Whether I use an emulator or iphone.（only way it work fine，it‘s using ’flutter run‘ directly rather than using xcode run） its giving me the exception like this:

======== Exception caught by widgets library =======================================================
The following NoSuchMethodError was thrown building ContainerMain(dirty, state: _ContainerMain#f0c96):
No constructor 'Text.' with matching arguments declared in class 'Text'.
Receiver: Text
Tried calling: new Text.()
Found: new Text.(String, {Key? key, TextStyle? style, StrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior}) => Text

example code:

```
void main() {
  runZonedGuarded<Future<Null>>(() async {
    runApp(ContainerMain(inApp: true, appType: global.AppType.xxxxx,));

    }, (dynamic error, StackTrace stackTrace) async {
      if (kReleaseMode) {
        reportError(error, stackTrace);
      }
  });
}
```

```
class _ContainerMain extends State<ContainerMain> {
  bool? inApp;

  _ContainerMain({bool inApp = true}) {
    this.inApp = inApp;
  }

  @override
  void initState() {

    if (!this.inApp!) {
      super.initState();
    }
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      // builder: Hybrid.init(),
      home: Container(alignment: Alignment.center, child: Text("tetetet2"), color: Colors.yellow,),
    );
  }
}
```

evironment:
1、flutter
[✓] Flutter (Channel stable, 3.0.3, on macOS 12.5 21G72 darwin-x64, locale
    zh-Hans-CN)
    • Flutter version 3.0.3 at /Users/xxxxx/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 676cefaaff (8 weeks ago), 2022-06-22 11:34:49 -0700
    • Engine revision ffe7b86a1e
    • Dart version 2.17.5
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version
    32.1.0-rc1)
    • Android SDK at /Users/xxxxx/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      11.0.12+0-b1504.28-7817840)
in flutter module