Skip to content

iOS add-to-app fullscreen example can not hot reload until hot restart #94681

Closed

Description

@SShayashi

Overview

When I run hot reload in add-to-app fullscreen example in iOS, it can not work showing the following error. However, after running hot restart, hot reload worked.

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY
╞═══════════════════════════════════════════════════════════
The following NoSuchMethodError was thrown building MyApp(dirty):
No constructor 'MaterialApp.' with matching arguments declared in class 'MaterialApp'.
Receiver: MaterialApp
Tried calling: new MaterialApp.()
Found: new MaterialApp.({Key? key, GlobalKey<NavigatorState>? navigatorKey,
GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey, Widget? home, Map<String,
(BuildContext) =>
Widget> routes, String? initialRoute, ((RouteSettings) => Route<dynamic>?)?
onGenerateRoute,
((String) => List<Route<dynamic>>)? onGenerateInitialRoutes, ((RouteSettings) =>
Route<dynamic>?)?
onUnknownRoute, List<NavigatorObserver> navigatorObservers, ((BuildContext, Widget?) =>
Widget)?
builder, String title, ((BuildContext) => String)? onGenerateTitle, Color? color,
ThemeData? theme,
ThemeData? darkTheme, ThemeData? highContrastTheme, ThemeData? highContrastDarkTheme,
ThemeMode?
themeMode, Locale? locale, Iterable<LocalizationsDelegate<dynamic>>?
localizationsDelegates,
((List<Locale>?, Iterable<Locale>) => Locale?)? localeListResolutionCallback,
((Locale?,
Iterable<Locale>) => Locale?)? localeResolutionCallback, Iterable<Locale>
supportedLocales, bool
debugShowMaterialGrid, bool showPerformanceOverlay, bool checkerboardRasterCacheImages,
bool
checkerboardOffscreenLayers, bool showSemanticsDebugger, bool
debugShowCheckedModeBanner,
Map<ShortcutActivator, Intent>? shortcuts, Map<Type, Action<Intent>>? actions, String?
restorationScopeId, ScrollBehavior? scrollBehavior, bool useInheritedMediaQuery}) =>
MaterialApp

Widget creation tracking is currently disabled. Enabling it enables improved error
messages. It can
be enabled by passing `--track-widget-creation` to `flutter run` or `flutter test`.

When the exception was thrown, this was the stack:
#0      NoSuchMethodError._throwNew (dart:core-patch/errors_patch.dart:214:5)
#1      MyApp.build (package:flutter_module/main.dart)
#2      StatelessElement.build (package:flutter/src/widgets/framework.dart:4739:28)
#3      ComponentElement.performRebuild
(package:flutter/src/widgets/framework.dart:4665:15)
#4      Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
#5      BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2620:33)
#6      WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:882:21)
#7      RendererBinding._handlePersistentFrameCallback
(package:flutter/src/rendering/binding.dart:319:5)
#8      SchedulerBinding._invokeFrameCallback
(package:flutter/src/scheduler/binding.dart:1143:15)
#9      SchedulerBinding.handleDrawFrame
(package:flutter/src/scheduler/binding.dart:1080:9)
#10     SchedulerBinding.scheduleWarmUpFrame.<anonymous closure>
(package:flutter/src/scheduler/binding.dart:863:7)
(elided 4 frames from class _RawReceivePortImpl, class _Timer, and dart:async-patch)

═══════════════════════════════════════════════════════════════════════════════════════
═════════════
Performing hot reload...
Reloaded 1 of 569 libraries in 345ms.
flutter doctor -v
$ flutter doctor -v
[✓] Flutter (Channel stable, 2.5.1, on macOS 11.5.2 20G95 darwin-x64, locale ja)
    • Flutter version 2.5.1 at /Users/sshayashi/fvm/versions/2.5.1
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ffb2ecea52 (2 months ago), 2021-09-17 15:26:33 -0400
    • Engine revision b3af521a05
    • Dart version 2.14.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/sshayashi/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode13beta5.app/Contents/Developer
    • Xcode 13.0, Build version 13A5212g
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 51.0.1
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.60.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.27.0

[✓] Connected device (2 available)
    • iPod touch (7th generation) (mobile) • C830390E-B470-4EC4-9F15-23477CACF678 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)
    • Chrome (web)                         • chrome                               • web-javascript • Google Chrome 96.0.4664.55

• No issues found!
sshayashi@MacBook-Pro:~/Programs/baseline_reprodution »

How to reproduce

git clone --depth 1 https://github.com/flutter/samples.git
cd samples/add_to_app/fullscreen/flutter_module/
flutter pub get
cd ../ios_fullscreen
pod install
open IOSFullScreen.xcworkspace
# run IOSFullScreen app

cd ../flutter_module
flutter attach
# change something and run hot reload
# show the error

Activity

  1. maheshj01 commented on Dec 6, 2021

    @maheshj01
    Member

    Hi @SShayashi, Thanks for filing the issue. Can you please try upgrading to latest stable 2.5.3 and see if there is any difference?

    Thanks

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 6, 2021
  3. SShayashi commented on Dec 9, 2021

    @SShayashi
    Author

    @maheshmnj
    I tried stable 2.5.3, but there was not any difference.

    flutter doctor -v
    [email protected]:/Users/sshayashi $ flutter doctor -v
    [✓] Flutter (Channel stable, 2.5.3, on macOS 11.5.2 20G95 darwin-x64, locale ja)
        • Flutter version 2.5.3 at /Users/sshayashi/fvm/versions/2.5.3
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 18116933e7 (8 weeks ago), 2021-10-15 10:46:35 -0700
        • Engine revision d3ea636dc5
        • Dart version 2.14.4
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
        • Android SDK at /Users/sshayashi/Library/Android/sdk
        • Platform android-30, build-tools 30.0.3
        • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS
        • Xcode at /Applications/Xcode13beta5.app/Contents/Developer
        • Xcode 13.0, Build version 13A5212g
        • CocoaPods version 1.11.2
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 4.0)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin version 51.0.1
        • Dart plugin version 193.7547
        • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    
    [✓] VS Code (version 1.62.3)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.29.0
    
    [✓] Connected device (3 available)
        • sdk gphone x86 (mobile)              • emulator-5554                        • android-x86    • Android 11 (API 30) (emulator)
        • iPod touch (7th generation) (mobile) • 61733405-7333-4F77-8ACA-3047AA2A7ABF • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
        • Chrome (web)                         • chrome                               • web-javascript • Google Chrome 96.0.4664.93
    
    • No issues found!
    
    Error Log
    ➜   flutter attach
    Multiple devices found:
    sdk gphone x86 (mobile)              • emulator-5554                        • android-x86 • Android 11 (API 30)
    (emulator)
    iPod touch (7th generation) (mobile) • 61733405-7333-4F77-8ACA-3047AA2A7ABF • ios         •
    com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    [1]: sdk gphone x86 (emulator-5554)
    [2]: iPod touch (7th generation) (61733405-7333-4F77-8ACA-3047AA2A7ABF)
    Please choose one (To quit, press "q/Q"): 2
    
    Syncing files to device iPod touch (7th generation)...              7.2s
    
    Flutter run key commands.
    r Hot reload. 🔥🔥🔥
    R Hot restart.
    h List all available interactive commands.
    d Detach (terminate "flutter run" but leave application running).
    c Clear the screen
    q Quit (terminate the application on the device).
    
    💪 Running with sound null safety 💪
    
    An Observatory debugger and profiler on iPod touch (7th generation) is available at:
    http://127.0.0.1:52817/6wB_SghCZZ0=/
    The Flutter DevTools debugger and profiler on iPod touch (7th generation) is available at:
    http://127.0.0.1:9100?uri=http://127.0.0.1:52817/6wB_SghCZZ0=/
    
    Performing hot reload...                                                
    Reloaded 0 libraries in 180ms.
    
    Performing hot reload...                                                
    Reloaded 0 libraries in 53ms.
    
    
    ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
    The following NoSuchMethodError was thrown building MyApp(dirty):
    No constructor 'MaterialApp.' with matching arguments declared in class 'MaterialApp'.
    Receiver: MaterialApp
    Tried calling: new MaterialApp.()
    Found: new MaterialApp.({Key? key, GlobalKey<NavigatorState>? navigatorKey,
    GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey, Widget? home, Map<String, (BuildContext) =>
    Widget> routes, String? initialRoute, ((RouteSettings) => Route<dynamic>?)? onGenerateRoute,
    ((String) => List<Route<dynamic>>)? onGenerateInitialRoutes, ((RouteSettings) => Route<dynamic>?)?
    onUnknownRoute, List<NavigatorObserver> navigatorObservers, ((BuildContext, Widget?) => Widget)?
    builder, String title, ((BuildContext) => String)? onGenerateTitle, Color? color, ThemeData? theme,
    ThemeData? darkTheme, ThemeData? highContrastTheme, ThemeData? highContrastDarkTheme, ThemeMode?
    themeMode, Locale? locale, Iterable<LocalizationsDelegate<dynamic>>? localizationsDelegates,
    ((List<Locale>?, Iterable<Locale>) => Locale?)? localeListResolutionCallback, ((Locale?,
    Iterable<Locale>) => Locale?)? localeResolutionCallback, Iterable<Locale> supportedLocales, bool
    debugShowMaterialGrid, bool showPerformanceOverlay, bool checkerboardRasterCacheImages, bool
    checkerboardOffscreenLayers, bool showSemanticsDebugger, bool debugShowCheckedModeBanner,
    Map<ShortcutActivator, Intent>? shortcuts, Map<Type, Action<Intent>>? actions, String?
    restorationScopeId, ScrollBehavior? scrollBehavior, bool useInheritedMediaQuery}) => MaterialApp
    
    Widget creation tracking is currently disabled. Enabling it enables improved error messages. It can
    be enabled by passing `--track-widget-creation` to `flutter run` or `flutter test`.
    
    When the exception was thrown, this was the stack:
    #0      NoSuchMethodError._throwNew (dart:core-patch/errors_patch.dart:214:5)
    #1      MyApp.build (package:flutter_module/main.dart)
    #2      StatelessElement.build (package:flutter/src/widgets/framework.dart:4739:28)
    #3      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4665:15)
    #4      Element.rebuild (package:flutter/src/widgets/framework.dart:4355:5)
    #5      BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2620:33)
    #6      WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:882:21)
    #7      RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:319:5)
    #8      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143:15)
    #9      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1080:9)
    #10     SchedulerBinding.scheduleWarmUpFrame.<anonymous closure>
    (package:flutter/src/scheduler/binding.dart:863:7)
    (elided 4 frames from class _RawReceivePortImpl, class _Timer, and dart:async-patch)
    
    ════════════════════════════════════════════════════════════════════════════════════════════════════
    
    
  4. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 9, 2021
  5. maheshj01 commented on Dec 9, 2021

    @maheshj01
    Member

    Thanks for the info @SShayashi, I am unable to verify this issue running
    flutter attach --app-id dev.flutter.example.IOSFullScreen -v does not show hot reload, also on running the app it gets stuck when opening the flutter view on the simulator same as #88968, This happens 100% of the time verified on stable 2.8.0, 2.5.3, and the master channel.

    Screen.Recording.2021-12-09.at.7.04.47.PM.mov

    flutter attach logs

    flutter doctor -v
    [✓] Flutter (Channel stable, 2.8.0, on macOS 12.0.1 21A559 darwin-arm, locale en-GB)
        • Flutter version 2.8.0 at /Users/mahesh/Documents/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision cf44000065 (15 hours ago), 2021-12-08 14:06:50 -0800
        • Engine revision 40a99c5951
        • Dart version 2.15.0
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
        • Android SDK at /Users/mahesh/Library/Android/sdk
        • Platform android-31, build-tools 31.0.0
        • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 13.1)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • CocoaPods version 1.10.2
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 4.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.8+10-b944.6916264)
    
    [✓] IntelliJ IDEA Community Edition (version 2021.2.1)
        • IntelliJ at /Applications/IntelliJ IDEA CE.app
        • Flutter plugin version 60.1.4
        • Dart plugin version 212.5080.8
    
    [✓] VS Code (version 1.61.2)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.29.0
    
    [✓] Connected device (3 available)
        • iPhone 11 (mobile) • FC644E6C-7F02-40E5-9998-1F0CD162FBD8 • ios            •
          com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
        • macOS (desktop)    • macos                                • darwin-arm64   • macOS 12.0.1
          21A559 darwin-arm
        • Chrome (web)       • chrome                               • web-javascript • Google Chrome
          96.0.4664.93
    
    • No issues found!
    
    [✓] Flutter (Channel stable, 2.5.3, on macOS 12.0.1 21A559 darwin-arm, locale en-GB)
        • Flutter version 2.5.3 at /Users/mahesh/Documents/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 18116933e7 (12 days ago), 2021-10-15 10:46:35 -0700
        • Engine revision d3ea636dc5
        • Dart version 2.14.4
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
        • Android SDK at /Users/mahesh/Library/Android/sdk
        • Platform android-31, build-tools 31.0.0
        • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Xcode 13.0, Build version 13A233
        • CocoaPods version 1.10.2
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 4.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.8+10-b944.6916264)
    
    [✓] IntelliJ IDEA Community Edition (version 2021.2.1)
        • IntelliJ at /Applications/IntelliJ IDEA CE.app
        • Flutter plugin version 60.1.4
        • Dart plugin version 212.5080.8
    
    [✓] VS Code (version 1.59.1)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.27.0
    
    [✓] Connected device (3 available)
        • sdk gphone arm64 (mobile) • emulator-5554 • android-arm64  • Android 11 (API 30) (emulator)
        • macOS (desktop)           • macos         • darwin-arm64   • macOS 12.0.1 21A559 darwin-arm
        • Chrome (web)              • chrome        • web-javascript • Google Chrome 95.0.4638.54
    
    • No issues found!
    
    [✓] Flutter (Channel master, 2.6.0-12.0.pre.975, on macOS 12.0.1 21A559 darwin-arm, locale en-GB)
        • Flutter version 2.6.0-12.0.pre.975 at /Users/mahesh/Documents/flutter_master
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 9b1bbdbd16 (9 hours ago), 2021-12-09 00:04:07 -0500
        • Engine revision 30b0105c72
        • Dart version 2.16.0 (build 2.16.0-85.0.dev)
        • DevTools version 2.9.1
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
        • Android SDK at /Users/mahesh/Library/Android/sdk
        • Platform android-31, build-tools 31.0.0
        • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 13.1)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • CocoaPods version 1.10.2
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 4.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.8+10-b944.6916264)
    
    [✓] IntelliJ IDEA Community Edition (version 2021.2.1)
        • IntelliJ at /Applications/IntelliJ IDEA CE.app
        • Flutter plugin version 60.1.4
        • Dart plugin version 212.5080.8
    
    [✓] VS Code (version 1.61.2)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.29.0
    
    [✓] Connected device (3 available)
        • iPhone 11 (mobile) • FC644E6C-7F02-40E5-9998-1F0CD162FBD8 • ios            •
          com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
        • macOS (desktop)    • macos                                • darwin-arm64   • macOS 12.0.1
          21A559 darwin-arm
        • Chrome (web)       • chrome                               • web-javascript • Google Chrome
          96.0.4664.93
    
    • No issues found!
    

    Leaving this issue open for further investigation.

    cc: @jmagman

  6. added
    a: existing-appsIntegration with existing apps via the add-to-app flow
    platform-iosiOS applications specifically
    t: hot reloadReloading code during "flutter run"
    toolAffects the "flutter" command-line tool. See also t: labels.
    and removed
    in triagePresently being triaged by the triage team
    on Dec 9, 2021
  7. SShayashi commented on Dec 12, 2021

    @SShayashi
    Author

    @maheshmnj
    Thanks for your response, I tried stable 2.8.0 and the result was the same.
    Regarding #88968, I did not reproduce.

  8. kimmy-wang commented on Mar 4, 2022

    @kimmy-wang

    same issue

    [✓] Flutter (Channel stable, 2.10.3, on macOS 11.6.3 20G415 darwin-x64, locale
        zh-Hans-CN)
        • Flutter version 2.10.3 at /Users/ying/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 7e9793dee1 (2 天前), 2022-03-02 11:23:12 -0600
        • Engine revision bd539267b4
        • Dart version 2.16.1
        • DevTools version 2.9.2
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
        • Android SDK at /Users/ying/Library/Android/sdk
        • Platform android-32, build-tools 30.0.3
        • ANDROID_HOME = /Users/ying/Library/Android/sdk
        • Java binary at: /Applications/Android
          Studio.app/Contents/jre/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • CocoaPods version 1.11.2
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2021.1)
        • 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.11+0-b60-7590822)
    
    [☠] IntelliJ IDEA Ultimate Edition (the doctor check crashed)
        ✗ Due to an error, the doctor check did not complete. If the error message below
          is not helpful, please let us know about this issue at
          https://github.com/flutter/flutter/issues.
        ✗ FormatException: Unexpected extension byte (at offset 5)
        • #0      _Utf8Decoder.convertSingle
          (dart:convert-patch/convert_patch.dart:1789:7)
          #1      Utf8Decoder.convert (dart:convert/utf.dart:351:42)
          #2      InputStream.readString
          (package:archive/src/util/input_stream.dart:207:30)
          #3      new ZipDirectory.read
          (package:archive/src/zip/zip_directory.dart:40:30)
          #4      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:19:30)
          #5      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:14:12)
          #6      IntelliJPlugins._findPluginXml
          (package:flutter_tools/src/intellij/intellij.dart:130:44)
          #7      IntelliJPlugins._readPackageVersion
          (package:flutter_tools/src/intellij/intellij.dart:141:40)
          #8      IntelliJPlugins.validatePackage
          (package:flutter_tools/src/intellij/intellij.dart:63:35)
          #9      IntelliJValidator.validate
          (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
          #10     asyncGuard.<anonymous closure>
          (package:flutter_tools/src/base/async_guard.dart:111:32)
          #11     asyncGuard.<anonymous closure>
          (package:flutter_tools/src/base/async_guard.dart:109:18)
          #12     _rootRun (dart:async/zone.dart:1426:13)
          #13     _CustomZone.run (dart:async/zone.dart:1328:19)
          #14     _runZoned (dart:async/zone.dart:1861:10)
          #15     runZonedGuarded (dart:async/zone.dart:1849:12)
          #16     runZoned (dart:async/zone.dart:1780:12)
          #17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
          #18     Doctor.startValidatorTasks
          (package:flutter_tools/src/doctor.dart:205:9)
          #19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:309:47)
          #20     DoctorCommand.runCommand
          (package:flutter_tools/src/commands/doctor.dart:50:48)
          #21     FlutterCommand.verifyThenRunCommand
          (package:flutter_tools/src/runner/flutter_command.dart:1320:12)
          <asynchronous suspension>
          #22     FlutterCommand.run.<anonymous closure>
          (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
          <asynchronous suspension>
          #23     AppContext.run.<anonymous closure>
          (package:flutter_tools/src/base/context.dart:150:19)
          <asynchronous suspension>
          #24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
          <asynchronous suspension>
          #25     FlutterCommandRunner.runCommand.<anonymous closure>
          (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
          <asynchronous suspension>
          #26     AppContext.run.<anonymous closure>
          (package:flutter_tools/src/base/context.dart:150:19)
          <asynchronous suspension>
          #27     FlutterCommandRunner.runCommand
          (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
          <asynchronous suspension>
          #28     run.<anonymous closure>.<anonymous closure>
          (package:flutter_tools/runner.dart:62:9)
          <asynchronous suspension>
          #29     AppContext.run.<anonymous closure>
          (package:flutter_tools/src/base/context.dart:150:19)
          <asynchronous suspension>
          #30     main (package:flutter_tools/executable.dart:94:3)
          <asynchronous suspension>
    
    
    [✓] VS Code (version 1.63.1)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension can be installed from:
          🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
    
    [✓] Connected device (2 available)
        • iPhone 13 (mobile) • CB91AE8E-0BD7-4978-A246-BA593BFDD6F6 • ios            •
          com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
        • Chrome (web)       • chrome                               • web-javascript •
          Google Chrome 98.0.4758.109
        ! Error: Failed to prepare device for development. Please unlock and reconnect
          the device. (code 806)
    
    [✓] HTTP Host Availability
        • All required HTTP hosts are available
    
    ! Doctor found issues in 1 category.
    
    Syncing files to device iPhone 13...                                7.4s
    
    Flutter run key commands.
    r Hot reload. 🔥🔥🔥
    R Hot restart.
    h List all available interactive commands.
    d Detach (terminate "flutter run" but leave application running).
    c Clear the screen
    q Quit (terminate the application on the device).
    
    💪 Running with sound null safety 💪
    
    An Observatory debugger and profiler on iPhone 13 is available at: http://127.0.0.1:55699/kPhVouQz86I=/
    The Flutter DevTools debugger and profiler on iPhone 13 is available at: http://127.0.0.1:9100?uri=http://127.0.0.1:55699/kPhVouQz86I=/
    
    
    ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
    The following NoSuchMethodError was thrown building MyApp(dirty):
    No constructor 'MaterialApp.' with matching arguments declared in class 'MaterialApp'.
    Receiver: MaterialApp
    Tried calling: new MaterialApp.()
    Found: new MaterialApp.({Key? key, GlobalKey<NavigatorState>? navigatorKey,
    GlobalKey<ScaffoldMessengerState>? scaffoldMessengerKey, Widget? home, Map<String, (BuildContext) =>
    Widget> routes, String? initialRoute, ((RouteSettings) => Route<dynamic>?)? onGenerateRoute,
    ((String) => List<Route<dynamic>>)? onGenerateInitialRoutes, ((RouteSettings) => Route<dynamic>?)?
    onUnknownRoute, List<NavigatorObserver> navigatorObservers, ((BuildContext, Widget?) => Widget)?
    builder, String title, ((BuildContext) => String)? onGenerateTitle, Color? color, ThemeData? theme,
    ThemeData? darkTheme, ThemeData? highContrastTheme, ThemeData? highContrastDarkTheme, ThemeMode?
    themeMode, Locale? locale, Iterable<LocalizationsDelegate<dynamic>>? localizationsDelegates,
    ((List<Locale>?, Iterable<Locale>) => Locale?)? localeListResolutionCallback, ((Locale?,
    Iterable<Locale>) => Locale?)? localeResolutionCallback, Iterable<Locale> supportedLocales, bool
    debugShowMaterialGrid, bool showPerformanceOverlay, bool checkerboardRasterCacheImages, bool
    checkerboardOffscreenLayers, bool showSemanticsDebugger, bool debugShowCheckedModeBanner,
    Map<ShortcutActivator, Intent>? shortcuts, Map<Type, Action<Intent>>? actions, String?
    restorationScopeId, ScrollBehavior? scrollBehavior, bool useInheritedMediaQuery}) => MaterialApp
    
    Widget creation tracking is currently disabled. Enabling it enables improved error messages. It can
    be enabled by passing `--track-widget-creation` to `flutter run` or `flutter test`.
    
    When the exception was thrown, this was the stack:
    #0      NoSuchMethodError._throwNew (dart:core-patch/errors_patch.dart:222:5)
    #1      MyApp.build (package:flutter_module/main.dart)
    #2      StatelessElement.build (package:flutter/src/widgets/framework.dart:4827:28)
    #3      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4754:15)
    #4      Element.rebuild (package:flutter/src/widgets/framework.dart:4477:5)
    #5      BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2659:19)
    #6      WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:882:21)
    #7      RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:363:5)
    #8      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
    #9      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1081:9)
    #10     SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:862:7)
    (elided 4 frames from class _RawReceivePortImpl, class _Timer, and dart:async-patch)
    
    ════════════════════════════════════════════════════════════════════════════════════════════════════
    Performing hot reload...                                                
    Reloaded 1 of 594 libraries in 409ms.
    
  9. added
    r: fixedIssue is closed as already fixed in a newer version
    on Apr 12, 2022
  10. github-actions commented on Apr 26, 2022

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  11. locked as resolved and limited conversation to collaborators on Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: existing-appsIntegration with existing apps via the add-to-app flowplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versiont: hot reloadReloading code during "flutter run"toolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions